Re: Help?
| From: | Julie Meloni | Date: | Mon, 31 Jul 2000 18:11:54 +0000 |
| Subject: | Re: Help? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-9218@lists.php.net to get a copy of this message | ||
Wee Chua wrote:
>
> Hi everyone,
> Thanks for previous emails everyone, I have tried Julie's solution but I
> still didn't work. I have tried
> $result = mysql_query("Select * from $Game", $db)
> $result = mysql_query("Select * from '$Game'", $db)
>
> They all didn't work and gave me the same error. What is wrong with my code,
> please help? Thanks.
At this point, it would probably help if you showed the _rest_ of your
code. We who are trying to help you are assuming things such as
sucessful connection, successful database selection, valid table
structure, etc.
1) re this: $result = mysql_query("Select * from '$Game'", $db)
is wrong. Don't put your table name in quotes.
2) Did you put a die(mysql_error()) after the mysql_query function, to
echo a MySQL error? If so, what was that error message?
+------------------------------------------------+
| Julie Meloni (jcm@i2ii.com) |
| Tech. Director, i2i Interactive (www.i2ii.com) |
| |
| "PHP Essentials" & "PHP Fast & Easy" |
| http://www.thickbook.com/ |
+------------------------------------------------+