Welcome Guest, Not a member yet? Register   Sign In
Can't retrieve all records from database [SOLVED]
#5

[eluser]andrewtheandroid[/eluser]
Here's my script i whacked in to test.. i did what u did whacked in 5 items and 5 descriptions.. deleted 3 & 4 and it gave me 1,2 and 5 :S

Code:
CREATE TABLE categories (categoryid INT NOT NULL, categoryname VARCHAR NOT NULL, categorydescription VARCHAR NOT NULL, PRIMARY KEY (categoryid));

CREATE TABLE items (itemid INT NOT NULL AUTO_INCREMENT, itemname VARCHAR(11) NOT NULL, itemdescription VARCHAR NOT NULL, PRIMARY KEY (itemid));

select * from items i, categories c where i.itemid = c.categoryid

when you manually view your data from both tables you sure the item 5 id corresponds?


Messages In This Thread
Can't retrieve all records from database [SOLVED] - by El Forum - 11-05-2009, 08:51 AM
Can't retrieve all records from database [SOLVED] - by El Forum - 11-05-2009, 09:04 AM
Can't retrieve all records from database [SOLVED] - by El Forum - 11-05-2009, 09:25 AM
Can't retrieve all records from database [SOLVED] - by El Forum - 11-05-2009, 09:39 AM
Can't retrieve all records from database [SOLVED] - by El Forum - 11-05-2009, 09:56 AM
Can't retrieve all records from database [SOLVED] - by El Forum - 11-05-2009, 09:57 AM
Can't retrieve all records from database [SOLVED] - by El Forum - 11-05-2009, 10:00 AM
Can't retrieve all records from database [SOLVED] - by El Forum - 11-05-2009, 10:01 AM



Theme © iAndrew 2016 - Forum software by © MyBB