I continue to get an error, "Parse error: syntax error, unexpected T_IF in ....". I can not figure out why this is for the life of me.
I am trying to input data into my DB from a form on my website. The form appears to work fine.
<?php
$con = mysql_connect("localhost","admin","password");
if (!$con)
{
die('Could not connect: ' . mysql_error());
}
mysql_select_db("db_Joomla", $con);
$sql("INSERT INTO posting (jobid, name, job, city, state, salary, email, abstract, requirements, phonenumber, description)
VALUES
('$POST[jobid]','$POST[name]','$POST[job]','$POST[city]','$POST[state]','$POST[salary]','$POST[email]','$POST[abstract]','$POST[requirements]','$POST[phonenumber]','$_POST[description]')"
if (!mysql_query($sql,$con))
{
die('Error: ' . mysql_error());
}
echo "1 record added";
mysql_close($con)
?>
Thanks,
Matt