my PHP page (just sending one var from flash and trying to insert into db) is throwing this error:
Parse error: parse error, unexpected $ in /home/virtual/site382/fst/var/www/html/php/notification.php on line 20
line 20 is where i close the php block with ?>
here’s my code if anybody can help it would be most appreciated!:
<?php
//this line includes the database connection variables
include_once("config.php");
$email=$_POST['email'];
if ($email){
$query= "INSERT INTO 'notification' ('email') VALUES ( '$email')";
$results = mysql_query( $query );
// print out the results
if( $results )
{
echo( "Successfully saved the entry." );
}
else
{
die( "Trouble saving information to the database: " . mysql_error() );
}
?>