I get the same error the complete source for my php file is:
<?php
$server= "127.0.0.1"; /* Address of 1&1 database server */
$database= "computer_room"; /* name of database */
$table1= "intranet";
$table2= "intranet_subjects";
/* Accessing the server */
MYSQL_CONNECT($server) or die ( "Server unreachable");
MYSQL_SELECT_DB($database) or die ( "database not existent");
$result=mysql_query("SELECT distinct subject, subject_ID FROM $table1, $table2 WHERE $table2.Subject_ID = $table1.sub_FK AND $table2.Del = 0 AND $table1.Del = 0 ORDER BY subject");
while ($row = mysql_fetch_array($result, MYSQL_NUM)) {
echo "
";
echo "$row[0]";
$subjectName = $row[1];
$result1=MYSQL_QUERY("SELECT URL, Display_Text FROM $table1 WHERE Sub_FK = $subjectName And Del = 0 ");
while ($row2 = mysql_fetch_array($result1, MYSQL_NUM)) {
echo " $row2[1]";
}
}
/* Close SQL-connection */
MYSQL_CLOSE();
include('url.php3');
?>
i have another copy of it using a different table which works so i don't understand why this doesn't work