Hi can someone tell me whats wrong with this? I\'m trying to return an associative array of ID;VALUE pairs.
while($row=mysql_fetch_row($result)) { $links.=\"$row[0] => $row[1]\"; }
Cheers
Nick
Try something like...
while($row=mysql_fetch_row($result)){ $links[$row[0]] = $row[1]; }
HTH
Paul
Thanks paul, that seems sensible, I'll try it. I can't understand why my method wouldn't work though?