Hey every one..
Does some one knows how to make a calculation from echo $myrow['number']
in this field.
<?php
$conn1 = mysql_connect("localhost", "root", "");
mysql_select_db('news_sql', $conn1);
$conn2 = mysql_connect("localhost", "root", "");
mysql_select_db('news_sql2', $conn2);
?>
<?php
$result = mysql_query("SELECT * FROM news", $conn2);
while( $myrow = mysql_fetch_array($result) ) {
echo '
<td>' . $myrow['number1'] . '</td>
<td>' . $myrow['number2'] . '</td>
<td>' . $myrow['number3'] . '</td>
</tr>';
}
?>
I have a calculation form a previus php code it's $Tax = round ($number1 + $number2.... etc. etc. this code is calculated from a
Total.: <input name="number1" size="4" mazleggth="5" value="<? echo $number1; ?>">
This calculator does not function in $myrow['number']