Jump to content

mysql query in a ZEND framework.


php_begins

Recommended Posts

Can someone please tell me how to write the following code in a Zend framework.

$query=mysql_query("SELECT id,username from user where posts='2') or die(mysql_error());
while($row=mysql_fetch_assoc($query))
{
  $id=$row['id'];
  $usernmae=$row['username'];
  echo "<tr><td>".$id."</td><td>".$username."</td></tr>";
}

 

 

Link to comment
https://forums.phpfreaks.com/topic/256206-mysql-query-in-a-zend-framework/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.