I'm new at Programming, so I have a question about selecting a data in MySQL. All the answer is about merging and joining that I'm not really looking for. returns
First table containing all the user data, and second table showing all posts by users.
I've tried doing this:
$sql="select * from wall, maintable where postverification="yes" AND userid='".$_SESSION['userid']."'";
$result=mysql_query($sql);
$row=mysql_fetch_array($result);
The reason I want to get these different data is so i can post to php a hidden field in the form that containing "who post what" in the same page called wall.php (Like a twitter concept, but the timeline showing all user post)
The code that i've tried above only selecting from 1 table whether "wall" or "maintable".
Why is this happening?