Hi I'm getting the error:
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in c:\phpdev5\www\tracking\display-contents.php on line 20
From this code:
<?php
include 'connect.php';
$company = $_POST['company'];
echo "Results for ".$company."<br /><br />";
$query = mysql_query("SELECT * FROM link_log WHERE link_log.company_id = link_company.id;");
echo "<table cellspacing=\"0\" cellpadding=\"0\">\n";
echo "<tr>\n";
while($row = mysql_fetch_array($query)) {
echo "<td>".$company."</td><td>$row[date]<\td>\n";
}
echo "</tr>\n";
echo "</table>\n";
?>
Can anyone spot what is wrong with this? 😕
Thanks
Will