> > 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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php