efc_90 Posted October 8, 2010 Share Posted October 8, 2010 Hi guys, $query = "SELECT * from Intranet, Bank"; $result = mysql_query($query) or die(mysql_error()); while($row = mysql_fetch_array($result)){ $bank_ID = $row['bank_ID']; $bank_date = $row['Date']; $bank_amount = $row['Amount']; } to select the rows from Bank, can I list it in the same while statement? or do I have to start a new array? cheers Link to comment https://forums.phpfreaks.com/topic/215454-help/ Share on other sites More sharing options...
Pikachu2000 Posted October 8, 2010 Share Posted October 8, 2010 Do you mean you want to echo it? If so, then all you have to do is insert the echos . . . while($row = mysql_fetch_array($result)){ echo $row['bank_ID'] . '<br>'; echo $row['Date'] . '<br>'; echo $row['Amount']; } Link to comment https://forums.phpfreaks.com/topic/215454-help/#findComment-1120380 Share on other sites More sharing options...
fenway Posted October 10, 2010 Share Posted October 10, 2010 More significantly, you have no join condition. And I don't understand the question. Link to comment https://forums.phpfreaks.com/topic/215454-help/#findComment-1120795 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.