[thelist] PHP/mysql - What am I missing?
CDitty
mail at redhotsweeps.com
Wed Jun 6 21:50:49 CDT 2001
Actually, I just didn't put that in.
I figured it out. It was because I was calling the $sql variable further
down in the loop and that would kill the loop.
Thanks anyhow.
Chris
At 09:38 PM 6/6/2001, you wrote:
> > $sql = mysql_query("select * from users") or die(mysql_error());
>
>Well, the database link is missing. I was just working on the same thing.
>Here's a snippet of my code:
>
>$result = mysql_query($strsql, $db) or die ('The query failed');
>
>Very similar, except for that $db, which comes from
>mysql_connect("localhost", $username, $password).
>
>--Jim McNulty
>
>
>
>---------------------------------------
>For unsubscribe and other options, including
>the Tip Harvester and archive of TheList go to:
>http://lists.evolt.org Workers of the Web, evolt !
More information about the thelist
mailing list