<?php
$username = $_SESSION['username'];
$result = 'sample';
$con = mysql_connect("localhost","root","");
if (!$con)
{
die('Could not connect: ' . mysql_error());
}
$sql = "Select FirstName from Person Where LoginID = (Select LoginID from UserLogin Where Username = '$username')";
$result = mysql_query($sql,$con);
echo $result;
?>
I'm kinda new to this server-side scripting language (php) and I've been burning the midnight oil trying to figure out, how to get my single value result to display... perhaps any of you out there could help me solve this problem? I would appreciate all the help I can get.