Bad Arguments

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Smackie
Forum Contributor
Posts: 302
Joined: Sat Jan 29, 2005 2:33 pm

Bad Arguments

Post by Smackie »

I have a problem on a script im working on and i keep getting this
Warning: implode(): Bad arguments.
in /var/www/vhosts/globalnavalstrikeforce.com/httpdocs/admin/admin-task-force.php on line 508
and on line 508 is

Code: Select all

$office_adder = implode("/",$_POST['offices']);
can someone help me
thank you
Smackie
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Post by John Cartwright »

what does

Code: Select all

echo '<pre>'; print_r($_POST['offices']); echo '</pre>';
return?
Smackie
Forum Contributor
Posts: 302
Joined: Sat Jan 29, 2005 2:33 pm

Post by Smackie »

it looks like that makes it works.. it doesnt return anything except what its suppose to thank you
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Post by John Cartwright »

it looks like that makes it works..
That code won't make any "work", except show you the values of the array.
it doesnt return anything except what its suppose to
Well what is it supposed to return??[/quote]
Post Reply