Hi there...I'm pretty new at the PHP game, I've basically taught myself everything from looking at examples scripts and Google, and I've only been tinkering with scripts for about a week. Therefore, I'm confused about the error I'm getting when I try and run this part of the script. Basically, I'm trying to update a record in a database through an html form, but it's failing to load the data from the database...so here's hoping for some help. The specific error the web browser has in it when I run the script is an unexpected T_STRING error. First Name Last Name, etc. are the fields in the database. Thanks in advance!
code:
echo "User Authenticated<br>";
mysql_connect($hostname,$db_name,$pwd);
@mysql_select_db($db_name) or die( "Unable to select database");
$query="SELECT * FROM members WHERE id='$idnum'";
$result=mysql_query($query);
$row = mysql_fetch_object($result);
$first = $row->First Name;
$last = $row->Last Name;
$femail = $row->Father's Email;
$r_state = $row->Return State/Zip;