0810
10-19-2002, 06:02 AM
hi how are you doing? What I am trying is to do is that I try to take mypicture, link, comment from my database randomly. But I got an error
Here it is
Parse error: parse error, unexpected T_STRING, expecting ',' or ';' in c:\ito\kkk.php on line 17
my php is 4.22. Thank you very much
here is my code
$images[]=array("pic"=>$row['pic']);
}
for ($i = 0; $i < 1; $i++)
{
$count=count($images)-1;
$pick=rand(0,$count);
echo "<a href=\"".$image[$pick]["link"]."\"><img src=\"".$images[$pick]["pic"]."\" border=0 alt=\"\" $images[$pick]["comment"]."\" width=200 height=200 style=\"margin-left:100;\". ><br>\n";
}
Here it is
Parse error: parse error, unexpected T_STRING, expecting ',' or ';' in c:\ito\kkk.php on line 17
my php is 4.22. Thank you very much
here is my code
$images[]=array("pic"=>$row['pic']);
}
for ($i = 0; $i < 1; $i++)
{
$count=count($images)-1;
$pick=rand(0,$count);
echo "<a href=\"".$image[$pick]["link"]."\"><img src=\"".$images[$pick]["pic"]."\" border=0 alt=\"\" $images[$pick]["comment"]."\" width=200 height=200 style=\"margin-left:100;\". ><br>\n";
}