peter s
2006-11-03 16:26:29 UTC
Parse error: parse error, unexpected T_VARIABLE in /home/content/Update.php on line 71
case "Contact Seller":
if (!ereg("^[a-zA-Z0-9 :;%*()£$^!]{6,255}$",$_POST['MESSAGE']))
{
$message = "ERROR only text and numbers allowed. Must be between 6 and 20 characters in length";
include("Contact Seller.inc");
exit();
}
else
{
$connection = mysql_connect($host,$user,$password)
or die ("couldnt connect to server");
$db = mysql_select_db($database, $connection)
or die ("couldnt slect database");
$query = "UPDATE traffic1 SET INBOX=\"" . $_POST['MESSAGE'] . "\",SUBJECT=\"" . $_POST['SUBJECT'] . "\"
WHERE SITENAME=\"" . $_GET['account'] . "\"";
$result = mysql_query($query)
$message = "Message Sent";
include("Contact Seller");
break;
Please help, thanx