Re: Help insert not working, implode errors....
| From: | Terion Miller | Date: | Tue, 18 Nov 2008 22:52:24 +0000 |
| Subject: | Re: Help insert not working, implode errors.... | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-283488@lists.php.net to get a copy of this message | ||
I changed the implode to :
if (isset($_POST['BannerSize'])){$BannerSize = implode(',',
$_POST['BannerSize']);} else {$BannerSize = "";}
now it says "Invalid Arguement" whereas when it was the other way it didn't
On Tue, Nov 18, 2008 at 12:38 AM, Jim Lucas <lists@cmsws.com> wrote:
> Terion Miller wrote:
>
>> Help I inherited this script and just found that its not inserting
>> anything
>> into the "workorderform" table in the db, and I'm getting implode() errors
>> for the 'bannersize' isset line
>>
>> New and need help in over my head:
>> here is the code:
>>
>>
>>
> First off, I would argue that this code never worked, unless you changed
> the order of the arguments being passed to your implode() calls.
>
> The arguments are backwards in all three calls.
>
> check out this
>
> http://php.net/implode
>
> it might give you insight on how to make it work.
>
> --
> Jim Lucas
>
> "Some men are born to greatness, some achieve greatness,
> and some have greatness thrust upon them."
>
> Twelfth Night, Act II, Scene V
> by William Shakespeare
>
>