RE: [PHP-WIN] While loops to build an array

2004-11-30 Thread S.D.Price
AIL PROTECTED] Subject: Re: [PHP-WIN] While loops to build an array Hello S.D.Price, Your syntax is not correct, try this, instead: if (mysql_num_rows($result3) > 0){ while ($row = mysql_fetch_array($result3)) { $days[date(j,$row3['entry_date'])] = $row3['newsid'];

Re: [PHP-WIN] While loops to build an array

2004-11-30 Thread re_action
Hello S.D.Price, Your syntax is not correct, try this, instead: if (mysql_num_rows($result3) > 0){ while ($row = mysql_fetch_array($result3)) { $days[date(j,$row3['entry_date'])] = $row3['newsid']; }; } else { echo "The array has not been built."; }; SDP> Hi, I wonder if you