I have a very simple script - however no matter what I do I can not seem to get rid of this error that I keep getting:
Parse error: syntax error, unexpected $end in /home/ghanabla/public_html/scripts/subscribe.php on line 168
I have pasted the code below:
----code below----
<?php
#ensure all fields have entries
if ($email)
{
#connect to mysql
$conn=@mysql_connect("localhost", "ghanabla_gbsnweb", "ghana50") or die ("Err:Conn");
#select the specified database
$rs = @mysql_select_db("ghanabla_gbsn", $conn) or die ("Err:Conn");
#create the query
$sql="INSERT INTO subscribed_emails(email) VALUES ($email)";
#execute query
$rs=mysql_query($sql,$conn);
#confirm the added record details
if($rs) { echo("Thankyou for registering with the GBSN"); }
}
?>
----Ment2Excel (M2E)----
--LEARN BY EXAMPLE--
Parse error: syntax error, unexpected $end in /home/ghanabla/public_html/scripts/subscribe.php on line 168
I have pasted the code below:
----code below----
<?php
#ensure all fields have entries
if ($email)
{
#connect to mysql
$conn=@mysql_connect("localhost", "ghanabla_gbsnweb", "ghana50") or die ("Err:Conn");
#select the specified database
$rs = @mysql_select_db("ghanabla_gbsn", $conn) or die ("Err:Conn");
#create the query
$sql="INSERT INTO subscribed_emails(email) VALUES ($email)";
#execute query
$rs=mysql_query($sql,$conn);
#confirm the added record details
if($rs) { echo("Thankyou for registering with the GBSN"); }
}
?>
----Ment2Excel (M2E)----
--LEARN BY EXAMPLE--