Jump to content

snackiesmores

New Members
  • Posts

    4
  • Joined

  • Last visited

    Never

Posts posted by snackiesmores

  1. In your first page that calls the search page i see this:

    [!--coloro:#CC0000--][span style=\"color:#CC0000\"][!--/coloro--][b]</select>[/b]<input type="submit" value = "Search">[!--colorc--][/span][!--/colorc--]

    I'm still learning PHP myself, but what is that [b]</select>[/b] tag for?

    Also, you changed

    [!--coloro:#CC0000--][span style=\"color:#CC0000\"][!--/coloro--][b]echo "$title." ".$first." ".$last.";[/b][!--colorc--][/span][!--/colorc--]

    to

    [!--coloro:#CC0000--][span style=\"color:#CC0000\"][!--/coloro--][b]echo $title." ".$first." ".$last.;[/b][!--colorc--][/span][!--/colorc--]

    What is the intended style of this statement?

    Mr. John.Doe
    Mr. John Doe
    Mr.John.Doe
    .
    .
    .

    ?
  2. Hello,

    I think this question has a simple answer, yet it eludes me.. First time working with PHP, so I have a bit of a learning curve. I have a basic reporting tool that uses Apache/PHP with a MySQL back end DB. The forms are fairly simple, some text boxes and such. Submitting the form works just fine unless a field has a [b]'[/b] (tick mark) in it, such as:

    [!--coloro:#CC0000--][span style=\"color:#CC0000\"][!--/coloro--].....The box contains a [b]'[/b]widget[b]'[/b] of sorts......[!--colorc--][/span][!--/colorc--]

    When a tick mark exists in the text of any field, NOTHING in the entire form gets pushed. I can only assume the problem is that when the submission query string is assembled, that the SQL processer thinks that the tick mark is actually part of the SQL statement, and not body text itself.

    My question is, do i need to write a routine that searches for a [b]'[/b] and replaces it with [b]\'[/b] ? or is there a PHP text pre-processer function (or something like that) that i can run chunk of text through that cleans it up? i.e., something that converts a [b]"[/b] (quotation mark) to [b]&quote;[/b] in XML.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.