Jump to content

mysql_fetch_assoc(): supplied arg..... error


forumnz

Recommended Posts

What could be causing this?

include('dbcon.php');

$sql = "SELECT buzzname FROM cmads WHERE buzzname LIKE '%" . $_POST['search'] . "%' OR WHERE keywords LIKE '%" . $_POST['search'] . "%' LIMIT 12";
$rs = mysql_query($sql);

?>

<ul>

<? while($data = mysql_fetch_assoc($rs)) { ?>
  <li><? echo stripslashes($data['buzzname']);?></li>
<? } ?>

</ul>

 

Thank you,

Sam.

Link to comment
https://forums.phpfreaks.com/topic/83617-mysql_fetch_assoc-supplied-arg-error/
Share on other sites

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.