Thanks for your reply; I'm so stressed out...
Gee I do not exactly know what you mean, I am still learning the terminology, but I do know I did it like you suggested I think, see below:
<?php
include’db.php’;
$query = "SELECT messages.user_id, members.username ".
"FROM messages, members ".
"WHERE messages.user_id = members.username";
$result = mysql_query($query) or die(mysql_error());
// Print out the contents of each row into a table
while($row = mysql_fetch_array($result)){
echo $row['username']. " - ". $row['user_id'];
echo "<br />";
}
?>
Even though I have the script above this one confirming the user is in a $_SESSION
it is not understanding it is in a users session... It is just doing as the script states:
And it prints all the users’ names and messages.... do you get what I mean... I am at this for days I am like a mess to say it mild.
How can I correct it that it verifies it is in the users $_SESSION of that specific user and it SELECTS that specific users’ messages only... I need to write it in one script... it seems HELP!
Oh I hope you know the answer, Thanks so much, puddin
Reputation Points: 10
Solved Threads: 0
Junior Poster in Training
Offline 52 posts
since Mar 2006