Jump to content

SQL INNER JOIN problem


Harley1979

Recommended Posts

I have this SQL statement;

 

$confirmDetails = mysql_query("SELECT * FROM orders INNER JOIN reference ON orders.id = reference.box WHERE reference.refNum = $getRefNum");

 

...which works, or did work fine. Today I have a strange problem...

 

... it will only fetch the 6 most recent entries from the database.

 

Does anyone have any idea what this could be? I'm guessing its a wierd MySQL issue but I'm a bit in the dark on these sort of things as I am new to it all really.

 

Any help would be great

 

Regards

 

Harley

Link to comment
https://forums.phpfreaks.com/topic/52263-sql-inner-join-problem/
Share on other sites

definately a coding issue -- in all my years of programming ive never had a database issue be the cause of something like this...  this type of things is usually a problem with the coding.

 

Even if it ends out to be something with the database, the code is the first place i would look to for an answer....

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.