I can not get this function to work, when using this
$forum_connect=mysql_connect("127.0.0.1","","") || die("Connection failed");
$myforum=mysql_select_db("forum") || die("Could not find database");
$result=mysql_query("SELECT * FROM postings WHERE forumid='$forumid' && replyto=0 ") ;
if(mysql_num_rows($result)==0)
{
dosomething....
}
it tells me that $result is not a valid MySQL result resource... But I know it is. Please help!