Hello.
Can anybody tell me what's wrong with this script?
$ids="1,2,3,4";
$sql=mysql_query("SELECT name FROM table WHERE id IN ('$ids')");
while ($row=mysql_fetch_array($sql))
{
$name=''.$row['name'].'';
echo $name;
}
It only echoes the first name, not all 4 .
Thanks.