Hello,
I am getting an error message and I cannot figure out why.
My code looks like this:
<?
session_start();
if ( empty( $first_name ) ) {
?> Welcome Guest, You Can Login <a href="index.htm">Here</a>, Or Signup For Your
Free Account
<?
} else {include 'nav.php'; include 'db.php'; echo "Welcome,
". $_SESSION['first_name'] .". ";
//Edit this one line to effect the entire page results 1pagenameedit is the name of the page name in the mysql title.
$pagenameedit = page1;
//Get the page details
$result = mysql_query("SELECT * FROM pages WHERE pagename='$pagenameedit'") or die(mysql_error());
//Display the page contents
$row = mysql_fetch_array( $result );
$pagename1 = $row['pagename'];
$pagetitle1 = $row['pagetitle'];
$pagecontent1 = $row['pagecontentsql'];
?>
Page Name:
<br>
<?
echo "$pagename1";
?>
<br><br>
Page Title:
<br>
<?
echo "$pagetitle1";
?>
Page Content:
<br>
<?
echo "$pagecontent1";
?>
The message I get is:
Parse error: parse error, unexpected $ in /home2/godsbibl/public_html/mysql/edit_page1.php on line 34
Can anyone see where the error is?
Thanks in advance,