Jump to content

query 2 tables


CanMan2004

Recommended Posts

Hi all

I have a query which im trying to get to search two tables rather than one, the code ive used is

sql = "SELECT * FROM friends,customers ORDER BY RAND() LIMIT 34";

but for somereason it is only searching the "customers" table and is ignoring the "friends" table, what am I doing wrong?

Thanks in advance

Dave
Link to comment
https://forums.phpfreaks.com/topic/11216-query-2-tables/
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.