View Single Post
  #2 (permalink)  
Old 04-26-2008, 10:23 AM
ggggqqqqihc ggggqqqqihc is offline
Newbie
 
Join Date: Apr 2008
Posts: 9
Credits: 0
Rep Power: 0
ggggqqqqihc is on a distinguished road
Default Re: PHP and MYSQL help needed

Here:
PHP Code:
    while($row mysql_fetch_array($result1))
      {
     echo 
'The original property price £' number_format($row['propertyprice'],2);
     
$price $row['propertyprice'];
     echo 
"<br />";
      } 
mysql_fetch_array() returns a normal array, not an associative array. i.e. if you use mysql_fetch_array, you must get data by $row[0], $row[1]... Otherwise, you need to use mysql_fetch_assoc(), it returns an associative array so I think it will work.
Reply With Quote