>
>How to round the result number after the multiplication, 
>below are the PHP codes, 
>
>any help greatly appreciated .... 
>
>
>
><?php 
>
>If (@$rcurr =="") 
>{ echo (""); 
>
>?> 
><?php 
>
>while ( $row = mysql_fetch_array($result) ) 
>{ echo("<tr>"); 
>echo("<td>" . $row["Room_Category"] . "</td>"); 
>echo("<td>" . $row["Room_Size"] . "</td>"); 
>echo("<td align='right'>" . $row["xsp"] . "</td>"); 
>echo("<td align='right'>" . $row["xan"] . "</td>"); 
>echo("</tr>"); 
>
>} 
>echo("</table>"); 
>
>?> 
><?php 
>} 
>else 
>{ 
>?> 
><?php 
>while ( $row = mysql_fetch_array($result) ) 
>
>{ echo("<tr>"); 
>echo("<td>" . $row["Room_Category"] . "</td>"); 
>echo("<td>" . $row["Room_Size"] . "</td>"); 
>echo("<td align='right'>" . $row["xsp"]*$rcurr . "</td>"); 
>echo("<td align='right'>" . $row["xan"]*$rcurr . "</td>"); 
>echo("</tr>"); 
>
>} 
>echo("</table>"); 
>
>} 
>
>
>?> 
>
>


---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to