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? Quote Link to comment 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? Quote Link to comment Share on other sites More sharing options...
aznjay Posted November 21, 2006 Author Share Posted November 21, 2006 basically show info from two table Quote Link to comment 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.