When running the follow script/SQL query, I get --> MSSQL error: Invalid pseudocolumn "$_POST"
$server = '***';
$connect = mssql_connect($server, 'sa', '***');
mssql_select_db('db_jobs', $connect);
$sql = 'INSERT INTO tbl_jobs VALUES
(
$_POST["id"],
$_POST["company"],
$_POST["location"],
$_POST["title"],
$_POST["desc"],
$_POST["exper"],
$_POST["edu"],
$_POST["link"]
)';
$query = mssql_query($sql);
if (!$query)
{
die('MSSQL error: ' . mssql_get_last_message());
}
What is the problem?
MSSQL error: Invalid pseudocolumn "$_POST"
Moderator: General Moderators
- daedalus__
- DevNet Resident
- Posts: 1925
- Joined: Thu Feb 09, 2006 4:52 pm
Re: MSSQL error: Invalid pseudocolumn "$_POST"
if you dont use code tags the jacka is gonna strangle you in your sleep
Code: Select all
$sql = [b]"[/b]INSERT INTO tbl_jobs VALUES
(
$_POST["id"],
$_POST["company"],
$_POST["location"],
$_POST["title"],
$_POST["desc"],
$_POST["exper"],
$_POST["edu"],
$_POST["link"]
)[b]"[/b];