Reply to Re: Newbie problems with Multiple Select form, and MySQL ENUM types.

Your name:

Reply:


Posted by David Haynes on 02/08/06 01:19

Black Shuck wrote:
>
> ??? I have no idea what this all means :-(
>
> All I know, is the form post data looks like this:
>
> array(3) { [0]=> string(1) "0" [1]=> string(1) "2" [2]=> string(1) "4" }
>
> and I need to pass: "0,2,4" into my SQL query.. So, in simpleton terms,
> what do I need to do?
>

Try this example:
<?php
$foo = array('0', '2', '4');
$imp = implode(',', $foo);
print_r($foo);
echo "imp = $imp\n";
?>

-david-

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация