I am pulling messages from mysql using PHP to be displayed on a specific page. Instead of displaying the title of the message in the designated title bar and the message in the designated body text box...there is no content displayed and its displaying the title in the url. What am I missing in my query? Or what is going on?
/*--Here is my query--*/
$query = "SELECT * FROM `Messages` WHERE `id` = '" .$messageid. "'";
$request = mysql_query($query,$connection) or die(mysql_error());
$Readmessages = mysql_fetch_array($request);
$query = "SELECT * FROM `Users` WHERE `id` = '".$Readmessages['sentFrom'] ."'";
$request2 = mysql_query($query,$connection);
$sender = mysql_fetch_array($request2);
/*--Here is my code--*/