Re: Viewing checkbox data with MySQL and PHP
From: Paul Barfoot (Paul_at_theglobalfamily.fsworld.co.uk)
Date: 10/12/04
- Next message: Hans Wolters: "Re: SOMETIMES, my SID gets embedded in the URL"
- Previous message: Bee: "Re: Viewing checkbox data with MySQL and PHP"
- In reply to: Bee: "Re: Viewing checkbox data with MySQL and PHP"
- Next in thread: Bee: "Re: Viewing checkbox data with MySQL and PHP"
- Reply: Bee: "Re: Viewing checkbox data with MySQL and PHP"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Tue, 12 Oct 2004 16:09:43 +0100
Hi Bee
Try using print_r($check) to view the contents of the $check array or try:
foreach ($check as $value) {
echo $value;
}
If the output of echo $value is still an array, loop through the $value
array as well.
foreach ($check as $value) {
foreach ($value as $innervalue) {
echo $innervalue;
}
}
-- Paul Barfoot "Bee" <namanhvu@gmail.com> wrote in message news:6270e2f1.0410120017.6d809dc@posting.google.com... >> 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: Hans Wolters: "Re: SOMETIMES, my SID gets embedded in the URL"
- Previous message: Bee: "Re: Viewing checkbox data with MySQL and PHP"
- In reply to: Bee: "Re: Viewing checkbox data with MySQL and PHP"
- Next in thread: Bee: "Re: Viewing checkbox data with MySQL and PHP"
- Reply: Bee: "Re: Viewing checkbox data with MySQL and PHP"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|