Merhabalar,

Alıntı
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '='78.181.1.79'' at line 1
Bu hatayı neden veriyor acaba?

Sorgu;

 <?
  $site2 = mysql_query("SELECT * FROM `reklam` WHERE durum='0' ORDER BY rand() DESC LIMIT 0,1");
  for($j=1; $site = mysql_fetch_object($site2); $j++)
{
$degisken1 = $site->aciklama;
$rekid = $site->id;
?>	
<?php echo "var reklam=\"$degisken1\"; document.write(reklam);" ?>
<?php}?>