$add = mysql_query("INSERT INTO vote (konu,mail,Code) VALUES ('$subject','$row ["email"]','$sayilar[$j]')");
Parse error: syntax error, unexpected T_STRING in on line 68
|
||||
show 5 more comments |
Look at the syntax highlighting in your question. It will clearly show you that you have unescaped quotes in your string. Developers learning PHP often fall into the trap of trying to rely too much on PHP flexibility to interpolate variables in strings. I would strongly recommend you not rely on this functionality and instead clearly seperate your vairables from fixed string elements. It will make you code easier to read and avoid the vast majority of escaping problems. So your code could look like this:
See how much clearer it is in with syntax highlighting to see exactly where your variables are? |
|||
|
Try either
or better
The reason: The double quotes starting at |
|||||
|
"
in there that ends your literal string. – Wrikken Dec 18 '13 at 23:29