Jump to content

Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resour


justoneguy

Recommended Posts

please help this error comes up i have no idea ???

 

Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in /right.php on line 105

 

 

<?
if ($crew =="1") {
$bb = mysql_query("SELECT * FROM replys WHERE idto='$viewtopic' forum='$forum' AND crew='$fetch->crew'");
}else{
$bb = mysql_query("SELECT * FROM replys WHERE idto='$viewtopic' forum='$forum'");
}
while($success1 = mysql_fetch_row($bb)){ [color=red]line105[/color]
     $username11 = $success1[1];
 $text = $success1[2];
 $made1 = $success1[5];
 } 
 ?>

You query is failing.

 

<?php

if ($crew =="1") {
$bb = mysql_query("SELECT * FROM replys WHERE idto='$viewtopic' forum='$forum' AND crew='$fetch->crew'") or die(mysql_error());
}else{
$bb = mysql_query("SELECT * FROM replys WHERE idto='$viewtopic' forum='$forum'") or die(mysql_error());
}
while($success1 = mysql_fetch_row($bb)){ [color=red]line105[/color]
     $username11 = $success1[1];
 $text = $success1[2];
 $made1 = $success1[5];
 }

?>

<?php

if ($crew =="1") {
$bb = mysql_query("SELECT * FROM replys WHERE idto='$viewtopic' && forum='$forum' AND crew='$fetch->crew'") or die(mysql_error());
}else{
$bb = mysql_query("SELECT * FROM replys WHERE idto='$viewtopic' && forum='$forum'") or die(mysql_error());
}
while($success1 = mysql_fetch_row($bb)){ [color=red]line105[/color]
     $username11 = $success1[1];
 $text = $success1[2];
 $made1 = $success1[5];
 }

?>

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.