This is withing <?php ?>:
$qry = "INSERT INTO deals (ID, href) VALUES ('$_POST["TID".$il]', '$_POST["Qhr".$il]')";
The error is:
Parse error: parse error, expecting `T_STRING' or `T_VARIABLE' or `T_NUM_STRING' in C:\wamp\www\blablabla on line 353
Of course, the problem is because of " symbol. How to fix this? Using {\"} instead of {"} within the query doesn't help.
All the rest works fine. Thank you.
I did that! I think the answer is to use
'" .$_POST["QID".$i_deal]. "', instead of
'$_POST["QID".$i_deal]'. It works. If you know how to simplify or make it still better, please let me know. Thank you again!
$qry = "INSERT INTO deals (ID, href) VALUES ('$_POST["TID".$il]', '$_POST["Qhr".$il]')";
The error is:
Parse error: parse error, expecting `T_STRING' or `T_VARIABLE' or `T_NUM_STRING' in C:\wamp\www\blablabla on line 353
Of course, the problem is because of " symbol. How to fix this? Using {\"} instead of {"} within the query doesn't help.
All the rest works fine. Thank you.
I did that! I think the answer is to use
'" .$_POST["QID".$i_deal]. "', instead of
'$_POST["QID".$i_deal]'. It works. If you know how to simplify or make it still better, please let me know. Thank you again!