Hi,
I am working with PHP and PostgresQL and am trying to insert some information into a database. I have the following code.
$query= "INSERT INTO web
(
products,
companyname,
contactperson,
addressone,
addresstwo,
emailaddress,
dayphone,
numservers,
numclients,
numbranches,
businessarea
)
VALUES
(
"ERROR at this line"->' $HTTP_POST_VARS["prdt"]',
' $HTTP_POST_VARS["companyName"]',
' $HTTP_POST_VARS["contactPerson"]',
' $HTTP_POST_VARS["addressOne"]',
' $HTTP_POST_VARS["addressTwo"]',
' $HTTP_POST_VARS["emailAddress"]',
' $HTTP_POST_VARS["dayphone"]',
$HTTP_POST_VARS["numServers"],
$HTTP_POST_VARS["numClients"],
$HTTP_POST_VARS["numBranches"],
' $HTTP_POST_VARS["businessArea"]'
)";
$table=new my_table($db_handle, $query);
It gives me an error:
Parse error: parse error, unexpected '\"', expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/bailey/webpurchase3.php on line 26
Does anybody knows what's happening?
Thanks
I am working with PHP and PostgresQL and am trying to insert some information into a database. I have the following code.
$query= "INSERT INTO web
(
products,
companyname,
contactperson,
addressone,
addresstwo,
emailaddress,
dayphone,
numservers,
numclients,
numbranches,
businessarea
)
VALUES
(
"ERROR at this line"->' $HTTP_POST_VARS["prdt"]',
' $HTTP_POST_VARS["companyName"]',
' $HTTP_POST_VARS["contactPerson"]',
' $HTTP_POST_VARS["addressOne"]',
' $HTTP_POST_VARS["addressTwo"]',
' $HTTP_POST_VARS["emailAddress"]',
' $HTTP_POST_VARS["dayphone"]',
$HTTP_POST_VARS["numServers"],
$HTTP_POST_VARS["numClients"],
$HTTP_POST_VARS["numBranches"],
' $HTTP_POST_VARS["businessArea"]'
)";
$table=new my_table($db_handle, $query);
It gives me an error:
Parse error: parse error, unexpected '\"', expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/bailey/webpurchase3.php on line 26
Does anybody knows what's happening?
Thanks