Re: \|/ html multiple select array and mysql
| From: | dav | Date: | Tue, 06 Nov 2001 17:32:20 +0000 |
| Subject: | Re: \|/ html multiple select array and mysql | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-73622@lists.php.net to get a copy of this message | ||
try not to PRINT or ECHO the array, but use
dump_var($planes);
or maybe (var_dump, who cares :)
"Gerry Figueroa Anadon" <gerry@dynamicintermedia.com> ha scritto nel
messaggio news:3BE82B3C.37A588B5@dynamicintermedia.com...
> Hello:
>
> I need to find out why my multiple[] array is loading the word "Array"
into MySQl table instead of
> the array values.
>
> I've search all the lists and all I've learned is to put the [] to make my
select an array.
>
> this is the html:
> <select name="planes[]" multiple>
> <option value="La_Reforma">La Reforma
> <option value="Cruz_Azul">Cruz Azalea
> <option value="Triple_SSS">Triple SSS
> </select>
>
> and here is my sql:
>
> $result = mysql_query("insert into doctors values(\"\", \"$nombre\",
\"$apellido1\", \"$apellido2\",
> \"$especialidad\", \"$planes\", \"$direccion_postal\",
> \"$direccion2\",
\"$pueblo\", \"$zip_code\",
> \"$telefono\", \"$fax\", \"$website\", \"$email\",
> \"$idiomas\",
\"$intereses\", \"$comentarios\")")
> or die ("could not execute");
>
> Before I learned to make the name an array I would just get the last or
first value.
>
> I would gratelly appreciate a push in the right direction!!!
>
>
> Many Thanks:
> --
> Gerry Figueroa
> Dynamic Intermedia