mysql_fetch_array(): supplied argument is not a valid
Posted: Sun Aug 12, 2007 8:06 pm
Hi
I get this error:
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in g:\programs new\easyphp\www\adcenter\bid.php on line 86
code is:
what's wrong?
thanks
I get this error:
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in g:\programs new\easyphp\www\adcenter\bid.php on line 86
code is:
Code: Select all
<?php
foreach ($lines as $nrow => $keyword){
$getbid="SELECT id FROM listing WHERE keyword LIKE %$keyword% ORDER BY maxb DESC LIMIT 5";
$fivebids=mysql_query($getbid);
//table data inputs goes here
?>
<tr>
<td> <?php $keyword ?> </td>
<td> <?php getcost($keyword, $id) ?> </td>
<td> <?php getrank ($keyword, $id) ?> </td>
<td> Auto Bid</td>
<td> <?php echo $maxb; ?> </td>
<?php while($frow=mysql_fetch_array($fivebids)){ ?>
<td> <?php echo getcost($keyword, $frow['id']) ; ?> </td>
<?php
}
?>
</tr>
<?php
}
?>thanks