John Comerford wrote:
I'm pretty new to this stuff myself but try this:

while ($row = $result->fetch_array())
 echo "<tr><td>$compname</td>";
 echo "<td>$conname</td></tr>";

$result from mysql_query doesn't return an object, so that won't work -
if he was using mysqli_query it might have worked.

mysql_query and mysqli_query are different interfaces again to mysql and

Postgresql & php tutorials

PHP Database Mailing List (
To unsubscribe, visit:

Reply via email to