WmZilla - Webmaster and Marketplace

The Next Generation Webmaster and Trade Forum

Error: mysql_fetch_array() Expects ERROR!!

Datriox

New member

0

0%

Status

Offline

Posts

40

Likes

0

Rep

0

Bits

210

3

Months of Service

0%
Hello friends; I received the following error: Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in /home/*****/public_html/index.php on line 156. This is the error I got. function create_url ($url="var_dump(mysql_error());") { $TR=array('ç','Ç','?','?','?','?','?','?','ö','Ö','ü','Ü'); $EN=array('c','c','i','i','s','s','g','g','o','o','u','u'); $url= str_replace($TR,$EN,$url); $url=mb_strtolower($url,'UTF-8'); $url=preg_replace('#[^-a-zA-Z0-9_ ]#','',$url); $url=trim($url); $url= preg_replace('#[-_ ]+#','-',$url); return $url; } $son_haber_sorgu=mysql_query("select * from haberler order by id desc limit 12"); while ($son_haber=mysql_fetch_array($son_haber_sorgu)) { $haber_link=create_url($son_haber["baslik"])."-".$son_haber["id"]; echo ""; if($son_haber["resim"]!=""){ echo ""; echo "$son_haber[baslik]"; echo ""; echo "Read More..."; } else{ echo ""; echo "$son_haber[baslik]"; echo ""; echo "Read More..."; } echo ""; } ?> These are the codes, how can I resolve this error? I am waiting for your help. Share
 

249

6,622

6,642

Top