# Should be simple (PHP)... PHP noob

**URL:** <https://forum.kirupa.com/t/should-be-simple-php-php-noob/179199>\
**Category:** Uncategorized\
**Created:** [February 17, 2006, 3:28pm UTC](https://forum.kirupa.com/t/should-be-simple-php-php-noob/179199 "2006-02-17T15:28:15Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![natronp](https://avatars.discourse-cdn.com/v4/letter/n/87869e/32.png) [@natronp](https://forum.kirupa.com/u/natronp)\
**Post date:** [February 17, 2006, 3:28pm UTC](https://forum.kirupa.com/t/should-be-simple-php-php-noob/179199/1 "2006-02-17T15:28:15Z")

</div>

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
<?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() );
   }
?> 

```
