אוקי ככה יש לי קוד שבדוק אם הID נימצא בטבלאה או לא לשם חיפוש...
אוקי
PHP קוד:
$idcheck = mysql_query("select * from `table` where id = $id");
$idcheck = mysql_num_rows($idcheck);
if (!$idcheck) {
echo"לא נמצא במערכת כזה רישיון";
}else{
זה פועל והכול אבל תמיד מראה לי את השגיאה הבאה:
Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/amospeled/domains/amospeled.com/public_html/prog/index.php on line 24
אבל זה פועל \=
יש למישהו רעיון אין לטפל בזה?