Hi guys,
Just Bought "PHP with MySQL by Nat Macbride and I'm having a few Difficultys.
PHP Code:
<? include 'sqlconnect.php' ; ?>
<? $select = "SELECT first_name, last_name
FROM customers
WHERE id = 1 ;
$result = mysql_query($link,$select);
$row = mysql_fetch_array($result) ;
$fn = $row['first_name'] ;
$ln = $row['last_name'] ;
echo"First Name: $fn
<br/>
Last Name: $ln "
?>
Wrote this code from the book and am getting the following error:
Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in main.php on line 8
please could someone help me solve this issue as im getting really frustrated :angry: