Re: simple issue

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

while ($row = $result->fetch_array())
{
 $compname=$row["CompanyName"];
 $conname=$row["ContactName"];
 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
odbc.

--
Postgresql & php tutorials
http://www.designmagick.com/


--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux