bject: Re: [PHP-DB] Re: checkbox into mysql using php <input
type="checkbox"name="list
>Date: Thu, 17 Feb 2005 08:42:19 -0600
>
>Bastien Koert wrote:
>>if its all going into one col, then implode the array into a string
>>
>>$data = implode(",",
Bastien Koert wrote:
if its all going into one col, then implode the array into a string
$data = implode(",",$_POST['games']);
Then insert the data. Still doesn't relieve you of the need to validate
the user data.
Bastien
[snip]
No no no - you're confusing the guy further. He's taking an array p
o: php-db@lists.php.net, [EMAIL PROTECTED]
Subject: RE: [PHP-DB] Re: checkbox into mysql using php thank Bastien
I did try that, but the input is going into one column or it is take the
last array value and put it each chart in the table.
in that case, these are the value i got in mysql: f, o, o,
tien Koert" <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED], php-db@lists.php.net
>Subject: RE: [PHP-DB] Re: checkbox into mysql using php <input
type="checkbox" name="list
>Date: Wed, 16 Feb 2005 21:38:10 -0500
>
>$value is not an array...wont run
>
>try
&
$value is not an array...wont run
try
$valuecount = count($_POST['games']);
bastien
From: "moses Woldeselassie" <[EMAIL PROTECTED]>
To: php-db@lists.php.net
Subject: RE: [PHP-DB] Re: checkbox into mysql using php Thank you,
i don't have any problem using that s
alue')");
but the problem is with the following:
$valuecount = count($value)
for($i =0; $i < $valuecount; $i++) {
$sql = mysql_query("insert into interest values('$value', '$value[$i]')");
I don't get any input into mysql.
kind regards
m
>From: pe
foreach($_POST['name'] as $k => $v){
}
moses Woldeselassie wrote:
hi all
I need a simple php script to use for html
Select from the list (check all that apply):
kind regards
meberat
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php