php_begins Posted February 1, 2012 Share Posted February 1, 2012 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 More sharing options...
trq Posted February 1, 2012 Share Posted February 1, 2012 This ls like your 4th or $5th post along these similar lines. If you can't understand the examples within Zends documentation I would suggest the framework might be a little over your head. Link to comment https://forums.phpfreaks.com/topic/256206-mysql-query-in-a-zend-framework/#findComment-1313429 Share on other sites More sharing options...
php_begins Posted February 1, 2012 Author Share Posted February 1, 2012 hmmm ok..thank you anyways Link to comment https://forums.phpfreaks.com/topic/256206-mysql-query-in-a-zend-framework/#findComment-1313435 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.