I know this is possibly a silly question BUT

Does anyone use a php code generator.

I have a customer who wants to be able to modify their own website and create products etc, menus and pages on the fly. I have created the backend database admin and modification using SQL Maestro PHP generator. The only problem is they still need to be able to program and generate HTML code. So I was looking for a PHP generator that uses fck editor for text fields.

Does anyone have any suggestions or reviews on PHP generators for MYSQL.

Thanks

Q

    Your question is confusing. Either you want to let the user modify the HTML on their site (which is fine), or you want to do something really ill-advised, like letting users generate their own PHP or MySQL queries.

    If you're looking for the former (which I suspect you are), you don't need to turn to anything fancy. I use a freebie Javascript rich-text editor that produces the HTML and it works great. Check out the demo here. There's a checkbox there so you can see or edit the HTML yourself, if you so choose.

    The only thing you have to be concerned with is making sure you sandbox the HTML so it doesn't mess with the rest of your page elements. Should be fairly easy to do.

      Sorry for the confusion. What they are doing in the database is basically adding products and descriptions. But rather than just allowing plain text, I thought it would be better if they could do basic HTML formatting (<p> <br> <b> etc) in the text area.

      For an idea of the site check

      www.mischiefmaking.com.au

        Hit the demo link I posted above and see if it meets your needs. Your client can either use the rich-text interface or type the HTML themselves by checking the "View Source" box.

        You implement it as a textarea box on your form, so the only thing you need to do is process it normally (make it database-safe for storage and perhaps limit certain tags - depending on where the HTML will appear).

          Write a Reply...