shadowwyvern
Gawd
- Joined
- Sep 22, 2005
- Messages
- 604
Alright, I am somewhat new to hph and programming in general, with very little experince, so go easy on me
I am trying to sumbit a block of html code, complete with lots of double quotes, to a MYsql database using php.
Here is my query to do so:
It works fine with a single simple bunch of characters, like "hello world" and "<br>", but seems to fail when i give it large blocks of code, like what you would seen on a webpage. Gives me an invalid syntax, even though the syntax is actually good. I think that somehow it is terminating it eraly due to a quote or soemthing, even though i can find none in my code.
How can I amke this treated as a single string regardless of what is in it?
I am trying to sumbit a block of html code, complete with lots of double quotes, to a MYsql database using php.
Here is my query to do so:
Code:
$query = "UPDATE content SET content = '$content' , lastedit = '$date' WHERE page = '$page'";
It works fine with a single simple bunch of characters, like "hello world" and "<br>", but seems to fail when i give it large blocks of code, like what you would seen on a webpage. Gives me an invalid syntax, even though the syntax is actually good. I think that somehow it is terminating it eraly due to a quote or soemthing, even though i can find none in my code.
How can I amke this treated as a single string regardless of what is in it?