Jump to content

Help


efc_90

Recommended Posts

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

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

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.