[thelist] PHP/mysql - What am I missing?

Jim McNulty jkmcnulty at mediaone.net
Wed Jun 6 21:45:24 CDT 2001

> $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

More information about the thelist mailing list