Thread: Data vanishing

  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 2000
    Rep Power
    Hi.. another stupid question from me.. Just wondering if anyone could help.. I've giot a site I'm putting together ( for now) which is storing some data. Unfortunately fields consisting of more than one word with a space in there seem to lose everything after the space.. if it's any help they're varchars..

    Cheers for any help you can offer,

  2. #2
  3. Banned (not really)
    Devshed Supreme Being (6500+ posts)

    Join Date
    Dec 1999
    Caro, Michigan
    Rep Power
    My guess is that the data is never being put in the database in the first place. Check where you are actually inserting the data and I'll bet that the variables are only one word long. I'll bet you're passing variables through the url, also. You can't have spaces in the url. You have to urlencode() variables that you want to pass through the url, that way the spaces are taken care of.

    ---John Holmes...

    * The manual can probably answer 90% of your questions...
    * PHP Manual.
    * MySQL Manual:
  4. #3
  5. No Profile Picture
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2000
    Colchester, England
    Rep Power
    If the multiple words are being stored and you are returning the values to a form for update make sure that the data is in quotes.

    I had a problem with the above and it turned out that I had value=".$myrow[1]." instead of
    so the resulting html was
    <input type="text" name="txtPosition" size="60" maxlength="100" value=Academic Director>
    where it should have been
    <input type="text" name="txtPosition" size="60" maxlength="100" value="Academic Director">

    This thread pointed me in the right direction:

    Andy J

    [This message has been edited by eaamj01 (edited November 23, 2000).]

    [This message has been edited by eaamj01 (edited November 23, 2000).]

Similar Threads

  1. Codepupil
    By Adachic in forum C Programming
    Replies: 3
    Last Post: February 6th, 2004, 06:50 PM
  2. post data to new window then do redirect
    By theDano in forum PHP Development
    Replies: 2
    Last Post: January 24th, 2004, 06:08 PM
  3. Handling large data for Long or CLOB data type
    By priyendu in forum Perl Programming
    Replies: 2
    Last Post: January 7th, 2004, 05:52 AM
  4. my comp sux lately , need help from pro's
    By Hykinsel007 in forum Windows Help
    Replies: 2
    Last Post: January 5th, 2004, 01:52 PM
  5. Keeping one column static while others scroll
    By anshul9189 in forum HTML Programming
    Replies: 4
    Last Post: December 5th, 2003, 10:50 PM

IMN logo majestic logo threadwatch logo seochat tools logo