aznjay Posted November 21, 2006 Share Posted November 21, 2006 [code]$result6e = mysql_query("SELECT * FROM news ORDER BY date") or die(mysql_error()); $result65 = mysql_query("SELECT * FROM pages ORDER BY id") or die(mysql_error()); echo "<table>";while($row6e = mysql_fetch_array( $result6e,$result65 )){[/code]How come this doesn't WoRk? Link to comment https://forums.phpfreaks.com/topic/27945-anyone-think-can-solve-this/ Share on other sites More sharing options...
btherl Posted November 21, 2006 Share Posted November 21, 2006 You can't get rows from two results at once like that.What are you trying to do? Link to comment https://forums.phpfreaks.com/topic/27945-anyone-think-can-solve-this/#findComment-127817 Share on other sites More sharing options...
aznjay Posted November 21, 2006 Author Share Posted November 21, 2006 basically show info from two table Link to comment https://forums.phpfreaks.com/topic/27945-anyone-think-can-solve-this/#findComment-127819 Share on other sites More sharing options...
btherl Posted November 21, 2006 Share Posted November 21, 2006 [code=php:0]while ($row6e = mysql_fetch_array($result6e)) { print "<tr><td>{$row6e['column']}</td></tr>"}while ($row65 = mysql_fetch_array($result65)) { print "<tr><td>{$row65['column']}</td></tr>"}[/code]Where "column" is the column name you want to display. Link to comment https://forums.phpfreaks.com/topic/27945-anyone-think-can-solve-this/#findComment-127820 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.