mysql
11-14-2011, 01:32 AM
Hi Believe it or not I am quite new to working with these errors and need a little help :) I have got the error message below and do not know how to fix it. I have got basically the same error message on 11 different lines but the message is the same. I ave showed just a couple of the errors as the only difference is the line number.
Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in /home/content/07/7560507/html/hits/prepend.inc.php on line 15
Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in /home/content/07/7560507/html/hits/prepend.inc.php on line 19
Not sure if I should include all the code if I need to just say and I will but here is the code for the above lines.
$result77 = mysql_query("SELECT startseite FROM `demo_a_texte`");
$myrow77 = mysql_fetch_row($result77);
$starttext = $myrow77[0];
$result12 = mysql_query("SELECT aa, ab, ba, bb, ca, cb, da, db FROM `demo_a_grosse`");
$myrow12 = mysql_fetch_row($result12);
$einsa = $myrow12[0];
$einsb = $myrow12[1];
$zweia = $myrow12[2];
$zweib = $myrow12[3];
$dreia = $myrow12[4];
$dreib = $myrow12[5];
$viera = $myrow12[6];
$vierb = $myrow12[7];
..........................................................................
If some one can see an obvious error in the above code please let me know
Best regards :)
Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in /home/content/07/7560507/html/hits/prepend.inc.php on line 15
Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in /home/content/07/7560507/html/hits/prepend.inc.php on line 19
Not sure if I should include all the code if I need to just say and I will but here is the code for the above lines.
$result77 = mysql_query("SELECT startseite FROM `demo_a_texte`");
$myrow77 = mysql_fetch_row($result77);
$starttext = $myrow77[0];
$result12 = mysql_query("SELECT aa, ab, ba, bb, ca, cb, da, db FROM `demo_a_grosse`");
$myrow12 = mysql_fetch_row($result12);
$einsa = $myrow12[0];
$einsb = $myrow12[1];
$zweia = $myrow12[2];
$zweib = $myrow12[3];
$dreia = $myrow12[4];
$dreib = $myrow12[5];
$viera = $myrow12[6];
$vierb = $myrow12[7];
..........................................................................
If some one can see an obvious error in the above code please let me know
Best regards :)