i developed php website connected to mysql database , when the client make a new search the results show in a table like this
look at the colume total time in hr the result appears at the first row i want it to be in the last row for that lawyer like this
i hope any one can help me . and i will include the code i used :
[code]$tempLawName="";
$tempsumName="";
$mysql_query1 = (“SELECT * FROM invoice
ORDER BY lawname ASC, date ASC”);
$result = mysql_query($mysql_query1) or die(mysql_error());
while($row=mysql_fetch_array($result)){
$lawname = stripslashes($row[‘lawyername’]);
if($tempLawName!=$lawname)
{
$tempLawName=$lawname;
?>