Join 136,492 PHP Programmers for FREE! Get instant access to thousands of PHP experts, tutorials, code snippets, and more! There are 1,726 people online right now. Registration is fast and FREE... Join Now!
Bout to do an install and for the life of me can not find any install documentation on their website. Pretty amazing its not sticking out in my face. So, if anyone has used it and want to be my guide if I encounter a problem?
Yeah I have used it and all the documentation you will need comes in the zip file. It has several example files and if you are doing it through PHP it will be pretty easy. It is a great wysiwyg editor.
Just unzip and take a look around the package before actually installing anything. (Btw, most of the install is just uploading to a server).
Well the editor itself has no problems with apostrophes, it is just your query has to make sure to escape the apostrophe properly. You can escape it using "\" for mysql and most other databases or "'" for SQL Server (that is, add a single quote aka apostrophe).
You can also do a str_replace on the content coming out of the editor before you execute it in the query. Either way it isn't the editor so much as proper escaping of SQL queries.
i was gonna do a str_replace, i don't entirely understand the first part of your post . would i have to find out how many apostrophes there were and then add some to the query? having one would be different than 2 because then i wouldn't need one.
i guess i'll go with the str_replace .... i'm taking a crack at it but there is a good chance i will ask you to fix my code. ;P
This post has been edited by capty99: 7 Mar, 2008 - 09:34 AM
It is DIC policy that we require people to show their "best effort" so that we can guide you into solving your problem. We do not do people's work for them. Blah blah blah... jk
Do you need help or do you got it? Just throw out the problem code (and the query) if you need help.
Edit: Sure, but if you post the right problem area, I am sure anyone familiar with SQL will be able to help.
This post has been edited by Martyr2: 7 Mar, 2008 - 09:36 AM
Just to save yourself some trouble later down the road with other characters, take a look at the functions htmlentities() and mysql_real_escape_string(). They might be of use to you in the future.