Oh that’s an easy one. I didn’t understand what you were saying before but I do now. See in ASP and I’m sure PHP is the same say you are trying to write out some HTML. In ASP it looks like this
As you can see in there I am nesting quotes which well won’t work in programming so what you have to do is put a \ in front of the quotes in your string so that the programming knows when the string has ended like this:
If by DB you mean database (which I would assume you do mean), then I should probably point out that I was referring to the text-based version. I’m hopefully going to start on the mySQL-based version tomorrow.
I already knew that \ is placed in front of things such as " and ’ in order to prevent them from being read as code. The problem is removing the \ before it is written into the textfile :-.
Hmmm… I guess I will try to address the problem more vigorously when I produce the mySQL version - no point in sweating over it any more with the text-based version seeing as I am highly unlikely to use that because it’s not very secure to say the least.
Hrmm… There is a function in ASP to say like replace anything that is " with just " but I can’t think of what you do. I believe you use Left’s and Right’s if they have those in PHP.