5 messages in com.mysql.lists.win32Not enough returns
FromSent OnAttachments
Wade16 Nov 2004 11:52 
Ali, Firasath16 Nov 2004 11:53 
Mike Hillyer16 Nov 2004 11:56 
Wade16 Nov 2004 12:03 
Wade16 Nov 2004 13:23 
Subject:Not enough returns
From:Wade (wa@wadesmart.com)
Date:11/16/2004 01:23:25 PM
List:com.mysql.lists.win32

11162004 1514 GMT_6

Ok, based upon my mistake before I created this:

*$sql = "SELECT name, accounts.acct_holderid, fname FROM accounts, acct_holder WHERE accounts.acct_holderid = acct_holder.acct_holderid ORDER BY fname ASC"; * What I want to do is pull ALL the accounts but order them by the account holder. What I have only pulls one record.

Wade

Mike Hillyer wrote:

You have not specified any relation between the two tables you query, so you get one row combination for every row in the two tables (a cartesian product).

$sql = "SELECT accounts.accountsid, name, number, balance, payment FROM accounts, billing WHERE accounts.accountsid = billing.accountsid ORDER BY accounts.accountsid";

That should do it.