Re: Viewing checkbox data with MySQL and PHP

From: Bee (namanhvu_at_gmail.com)
Date: 10/12/04

  • Next message: Paul Barfoot: "Re: Viewing checkbox data with MySQL and PHP"
    Date: 12 Oct 2004 01:17:41 -0700
    
    

    > Try:
    > echo $checkbox['CHECKBOX'];
    >
    > If that prints the string that you have in the database, you have
    > problem in php side, if you prints something else, you have problem on
    > sql side.

    Thanks for replying.

    I did try this and it printed out the strings in my database. So
    therefore its a problem on the PHP side, as you commented. The thing
    is, I cannot find out what the problem is i.e. why the output of each
    string in the database is "Array" when I process the following:

     $check = unserialize($checkbox['CHECKBOX']);
     //code to loop array...
         echo $check;

    Any ideas are very welcome...(please!)

    TIA.

    Bee.


  • Next message: Paul Barfoot: "Re: Viewing checkbox data with MySQL and PHP"

    Relevant Pages

    • Re: Wordpress Port
      ... database stuff in PHP ... I'm passing a number in as a string. ... achieved the dubious distinction of being the first language I actually ...
      (comp.lang.ruby)
    • Re: What could be the problem with this INSERT with ADO parameters?
      ... The only way I have found sofar is to enclose the string in single ... written to the database. ... But that gives the same problem, it actually crashes Excel. ... how do I handle a string with comma's in the parameter array? ...
      (microsoft.public.data.ado)
    • Re: A little advice
      ... I didnt even know about the eval function. ... website with a database, and to have it go buy-bye, would be muchos bad. ... > I am *VERY* glad that php does not automaticly recognize and execute php ... >> using that string as an arathmatic formula, ...
      (alt.php)
    • Re: What could be the problem with this INSERT with ADO parameters?
      ... The only way I have found sofar is to enclose the string in single ... written to the database. ... But that gives the same problem, it actually crashes Excel. ... how do I handle a string with comma's in the parameter array? ...
      (microsoft.public.data.ado)
    • Re: arrays -- can they be words, not bytes?
      ... of pixels, each 16-bits deep, is run-length-encoded into a smaller C array ... ASCII string so that I can send it via HTTP POST command to a PHP script. ... I have an array of unsigned shorts here". ...
      (comp.lang.php)