Menu
Hi all:
I’m struggling to get this to work in PHP:
[code=php]
$sql = “INSERT INTO data (date, yname, ymail, cpname, ctname, email, ctphone, msg_type, session, session_date, notes)”;
$sql .=”VALUES(NOW(),’$yname’,’$ymail’,’$cpname’,’,’$ctname’,’$email’,’$ctphone’,’$type’,’$session’,’$date’,’$notes’)”;
$result=mysql_query($sql, $cid) or die(mysql_error());
I’m just getting – check your syntax.
What am I doing wrong?