SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    Prolific Blogger silver trophy Technosailor's Avatar
    Join Date
    Jun 2001
    Location
    Before These Crowded Streets
    Posts
    9,446
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    echoing back wrong data

    This is a vague question, I suppose, but this is my problem. I have a form at http://www.t-w-o.org/applic.htm.

    The entry that asks for team choice 1, 2 and 3 are successfully entered into the MySQL database as $teamchoice1, $teamchoice2 and $teamchoice3. I have verified this in the databse. they are there and they are correct. However, when the data is echoed back at the point where the user reviews the form, it is incorrect. This is the PHP page.
    PHP Code:
    <H6>
       <b> 
          <?PHP echo $fetch['teamchoice1']&nbsp;$fetch['teamchoice2']&nbsp;$fetch['teamchoice3']; ?>
       </b>
    </H6>
    This is the HTML source code for the output page:
    Code:
    <H6>
       <b> 
      @`p`		  </b>
    </H6>
    Any idea what is going wrong between database and output page. NOTE- all other values are echoed back correctly

    Thanks.

    Sketch
    Aaron Brazell
    Technosailor



  2. #2
    Happy Holidays !! Paul S's Avatar
    Join Date
    Mar 2001
    Location
    Mexico
    Posts
    1,287
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You need to quote & nbsp; , try this
    PHP Code:
    <H6>
       <b> 
          <?=$fetch['teamchoice1'].'&nbsp;'.$fetch['teamchoice2'].'&nbsp;'.$fetch['teamchoice3']; ?>
       </b>
    </H6>
    Last edited by Paul S; Oct 9, 2001 at 19:40.

  3. #3
    Prolific Blogger silver trophy Technosailor's Avatar
    Join Date
    Jun 2001
    Location
    Before These Crowded Streets
    Posts
    9,446
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    That did it! thanks!

    Sketch
    Aaron Brazell
    Technosailor



  4. #4
    Happy Holidays !! Paul S's Avatar
    Join Date
    Mar 2001
    Location
    Mexico
    Posts
    1,287
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    you're welcome


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •