I'm having trouble submitting some data to MySQL via php, i get the following error:
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'signal values('123', 'NOW()', 'abc')' at line 1
this is the php code:
<?php
$uid = $_POST['selected_user'];
$signal_type = $_POST['signal_type'];
$query_search = "insert into signal values('$signal_type', NOW(), '$uid')";
$query_exec = mysql_query($query_search) or die (mysql_error());
?>