Variables not printing to page
Why isn't this printing the values from the database but instead showing
up blank?
$sqlCommand = "SELECT id,
userid,
from_id,
from_username,
title,
content,
recieve_date
FROM pm_inbox
WHERE id='$pageid2' AND
userid='$pid'";
$query = mysql_query($sqlCommand,$connection) or die (mysql_error());
while ($row = mysql_fetch_array($query))
{
$Hid = $row["id"];
$Huserid = $row["userid"];
$Hfrom_id = $row["from_id"];
$Hfrom_username = $row["from_username"];
$Htitle = $row["title"];
$Hcontent = $row["content"];
$Hrecievedate = $row["recievedate"];
}
Calling the $vars I use:
<?php print $Htitle; ?>
No comments:
Post a Comment