Howdy folks am new to php but my boss has asked me to have a quick look at something. At the moment i connect to a mysql db do a select statement and print the result set. My boss has asked me though if it is possible to sort on price with minimum first. I would imagine it is i just dont know how. Any ideas would be welcome
cheers
while($row=mysql_fetch_row($answer))
{$k=1;
$price=$row[0];
$gas=$row[1];
$web=$row[2];
print"<tr><td>$price</td><td>$gas</td><td>$web</td></tr>";
}
print"</table>";
if($k==0){print "Sorry no results returned";}
cheers
while($row=mysql_fetch_row($answer))
{$k=1;
$price=$row[0];
$gas=$row[1];
$web=$row[2];
print"<tr><td>$price</td><td>$gas</td><td>$web</td></tr>";
}
print"</table>";
if($k==0){print "Sorry no results returned";}