Hi all
Weiss jemand was an meinem Code nicht stimmt?
Der Fehler:
Danke & Gruss
Weiss jemand was an meinem Code nicht stimmt?
PHP-Code:
function smilies(){
$sql="SELECT *
FROM smilies";
$result = mysql_query($sql) or die(mysql_error());
while($smilies = mysql_fetch_array($result))
{
return $smilies;
}
}
$smily = smilies();
foreach($smily["pic"] as $smilie_pic){
echo $smilie_pic," ";
}
Code:
Warning: Invalid argument supplied for foreach() in /home/.../editor.php on line 462
Kommentar