[thelist] PHP function problem
Jon Haworth
evolt at laughing-buddha.net
Fri Mar 1 13:23:01 CST 2002
Hi Bill,
> I'm trying to select a database with
> mysql_select_db("database") but instead use
> a variable, that was defined with the database
> name earlier in the code.
Are you sure you're not changing the value of $db between here
> $db="name";
and here?
> mysql_select_db($db) ;
Your code looks fine to me, apart from the mis-spelling of "from" in the
query ;-)
What are you doing with $result? What's the line that actually generates
the error?
Cheers
Jon
More information about the thelist
mailing list