Need basic php script for include statements, MySQL(?), and an interface

Discussion in 'PHP' started by RogerDodgr, Jun 7, 2010.

  1. #1
    I will have a .php document that looks like this:
    
    blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah
    blah<?php include("text1.php"); ?> blah blah blah blah blah blah blah bl
    blah blah blah blah blah <?php include("text2.php"); ?> blah blah blah b
    blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah
    <?php include("text3.php"); ?> blah blah blah blah blah blah blah blah bl
    blah blah blah <?php include("text4.php"); ?>lah blah blah blah blah blah
    blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah 
    blah<?php include("text5.php"); ?> blah blah blah blah blah blah blah bla
    blah blah blah blah blah <?php include("text6.php"); ?> blah blah blah bl
    
    PHP:
    A lot of it is changing the text in JavaScript code (including the contents of a 2D array). I am envisioning the code like this because I am tired of getting into my content-creation/writing mode in a manner that is analogous to moving a mountain with a pair of tweezers...

    Some of the strings will be injected into HTML exactly as they appear, and some will be injected into javascript and will need escape characters. I want to expedite the process with a friendly interface/form (that I can eventually delegate to a non programmer).

    My host is GoDaddy, perhaps they have a free interface that can accomplish this?

    Update:
    I got the the database set up and am printing out the info no problem. I will be able to process the string to give escape characters with no real problem. However, I still need a way to allow one trusted user to enter information into the database table with a username and password. Is there a script or a template for this?
     
    Last edited: Jun 7, 2010
    RogerDodgr, Jun 7, 2010 IP