Re: simple issue

From: Date: Wed, 22 Nov 2006 06:47:56 +0000
Subject: Re: simple issue
References: 1 2 3 4  Groups: php.db 
Request: Send a blank email to php-db+get-42713@lists.php.net to get a copy of this message
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/

« previous php.db (#42713) next »