View Single Post
Old 03-06-2008, 09:40 PM   #13 (permalink)
Alan @ CIT
Member of the Month
The Frequenter
Member of the Month Top Contributor 
 
Alan @ CIT's Avatar
 
Join Date: Apr 2005
Location: South UK
Posts: 483
Thanks: 51
Alan @ CIT is on a distinguished road
Default

oops, my fault - I had a blond moment I'm so used to Zend_Db's fetchAll() method that I forgot that mysql_fetch_array() only returns the first result and that you have to loop through it to get them all

Remove the mysql_fetch_array() line and replace it with this:

PHP Code:
while ($item mysql_fetch_array($rock_result))
{
    
$items[] = $item['cd_artist'];

Hopefully that should work this time

Alan
Send a message via MSN to Alan @ CIT
Alan @ CIT is offline  
Reply With Quote
The Following User Says Thank You to Alan @ CIT For This Useful Post:
StevenF (03-06-2008)