Re: implode()

From: Date: Tue, 26 Nov 2002 18:19:43 +0000
Subject: Re: implode()
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-126143@lists.php.net to get a copy of this message
> implode() expects an array as the second argument. You're passing a string. In > fact with the code you have above I don't see why you don't just tack the > comma on the end in the first place: > > if($image11_name != '') $sqlUpdate .= "image11='$image11_name', > "; The reason being the comma at the end of the SQL command will prevent the command from working because SQL will expect another entry. However, your comment about implode expecting an array helps out. Thanks. Jef

« previous php.general (#126143) next »