SELECT * FROM table1,table2 WHERE table1.id = $id AND table2.pid = table1.id

the code above loads all info out of table1 and table2.

Now when I parse the id with the URL ../something.php3?id=1 the page doesn't display anything from the tables...
However after I have filled some cells into table2 with a pid..only then all info appears. Whats up?