Jump to content

[SOLVED] parse error in update query


lilwing

Recommended Posts

This is the first time I have ever used the update query. I am not having any luck figuring it out. Please post if you find my mistake,

 

Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in
[bleeped] on line 46

 

here is the location of the problem:

 

$sql = "UPDATE $table
SET pagecontent = $_POST['T'] 
WHERE id = $_POST['id2']";

 

 

Link to comment
https://forums.phpfreaks.com/topic/67460-solved-parse-error-in-update-query/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.