RE: [PHP] Invalid Arguements

From: Date: Wed, 19 Nov 2008 14:36:37 +0000
Subject: RE: [PHP] Invalid Arguements
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-283534@lists.php.net to get a copy of this message
> -----Original Message----- > From: Terion Miller [mailto:webdev.terion@gmail.com] > Sent: Wednesday, November 19, 2008 8:32 AM > To: php-general@lists.php.net > Subject: [PHP] Invalid Arguements > > I am still getting the Invalid arguement error on this implode: > > if (isset($_POST['BannerSize'])){$BannerSize = > implode(',',$_POST['BannerSize']);} else {$BannerSize = "";} > > I have moved the ',', from the beginning to the end of the statement > and > nothing works is there any other way to do this, basically there is a > form > and the people entering work orders can select different sized banners > they > need, which goes into the db as text ....so...argh... Take the time to read what people have suggested. I seem to remember people asking you if you had run is_array() on your so-called array. Well, if you didn't, and it's NOT an array, and therefore will NOT work with implode(), then feel free to facepalm ahead of time. // Todd

« previous php.general (#283534) next »