CanMan2004 Posted June 5, 2006 Share Posted June 5, 2006 Hi allI have a query which im trying to get to search two tables rather than one, the code ive used issql = "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 advanceDave Quote Link to comment https://forums.phpfreaks.com/topic/11216-query-2-tables/ Share on other sites More sharing options...
samshel Posted June 5, 2006 Share Posted June 5, 2006 This query will join the tables, not search the results in both and list them one below another....If you need records from both the tables, use 2 seperate queries... Quote Link to comment https://forums.phpfreaks.com/topic/11216-query-2-tables/#findComment-41958 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.