Jump to content

Select multiple SQL tables for 1 while loop


matthijs110

Recommended Posts

Hello,

 

How can I select multiple SQL tables? For example like this:
 

$result = mysqli_query($con, "SELECT Username, Wins FROM Table1, Table2 ORDER BY Wins DESC");

I want to use it in 1:
 

while ($row = mysqli_fetch_assoc($result)) {

I know this is possible, but I can't find a clear way. 

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.