|
Posted by Jim Moseby on 12/21/05 15:11
>
> Can someone tell me why this select is wrong please---ive
> tried everything.
> the $cat is the tablename .
>
>
> $query=" SELECT title FROM $cat WHERE id='$id'";
>
>
Apparently, either $cat or $id is not the value you think it is. First, I
would try changing
$result=mysql_query($query);
to read:
$result=mysql_query($query) or die(mysql_error());
This will, no doubt, lend some insight into where your error is.
JM
Navigation:
[Reply to this message]
|