Hello Everybody,
First of all thanks for reading. I've a (small) problem with my calculation script. I know there's another possibility with another database set-up, but since I'm a starter with PHP and SQL combined I'd like to fix this script, but it didn't work out so far.
This is the script I'm currently working with:
<?php
mysql_connect("<Removed>", "<Removed>", "<Removed>") or die(mysql_error());
mysql_select_db("<Removed>") or die(mysql_error());
$result3 = mysql_query("SELECT * FROM <Table1>")
or die(mysql_error());
while($row3 = mysql_fetch_array( $result3 ))
$result2 = mysql_query("SELECT * FROM <Table2>")
or die(mysql_error());
while($row = mysql_fetch_array( $result2 ))
{
print $row3['week_19'] + $row['week_19'];
}
?>
Does anyone know why he only calculates the results of Table2, and not the results of Table1?
Thanks in advance,
Jim