Jump to content

[SOLVED] Syntax Error ?


nathan1

Recommended Posts

Hi guys, i have an error and i dont have a clue why...any ideas would be appreciated! cheers...

 

 


if(isset($_POST['event_add'])) {

  $user_id = $_POST['user_id'];
  $date_pz = date("d.m.y");
  $debit_pz = '0'; 
  $event_desc = '0';
  $transp = $_POST['price_two']; 

$query = "INSERT INTO hdebit (user_id, date_p, debit, desc, price_two) VALUES ('$user_id', '$date_pz', '$debit_pz', '$event_desc', '$transp')";

    $result = mysql_query($query) or die(mysql_error());

echo 'added.';

}

Link to comment
https://forums.phpfreaks.com/topic/120311-solved-syntax-error/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.