Computer Science Canada mysql_fetch_assoc error |
Author: | unknowngiver [ Sat Jun 17, 2006 7:32 pm ] | ||||
Post subject: | mysql_fetch_assoc error | ||||
hey i am getting this error
i dont know how to fix it here is the code:
|
Author: | rdrake [ Sat Jun 17, 2006 8:05 pm ] | ||
Post subject: | |||
You must put quotes around "localhost" in your script. Unless stored in a variable, you need those quotes. Also, as I recall it's the following, without the spaces. [syntax = "php"] <?php echo "This is PHP"; ?> [/syntax] So you'd get:
|
Author: | JackTruong [ Sun Jun 18, 2006 4:29 pm ] | ||||
Post subject: | |||||
Maybe change that to:
Unless username is of type int... |