MySQL Forums
Forum List  »  PHP

sql query in php
Posted by: Rick Haden
Date: March 12, 2009 03:52AM

Can anyone explain why I get two different results when I use an SQL query direct in phpMyadmin and from a php web page? The query is

SELECT * From `payments`, `members WHERE payments.CardNumber=members.CardNumber AND `Year` = '2009'

In phpMtAdmin I get the correct 885 records. In a php page I get an array of 26 records.

Confused

Rick

Options: ReplyQuote


Subject
Written By
Posted
sql query in php
March 12, 2009 03:52AM
March 12, 2009 09:52PM
March 13, 2009 12:47PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.