RE: [PHP] arg!
| From: | Rodino, Justin Bain | Date: | Fri, 13 Oct 2000 18:41:42 +0000 |
| Subject: | RE: [PHP] arg! | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-20056@lists.php.net to get a copy of this message | ||
Kurth,
The concatenation is misplaced...it should be:
for($i = 0; $i < strlen($q); $i++) { $c .= '%'.$q[$i].'%'; }
NOT
for($i = 0; $i < strlen($q); $i++) { $c. = '%'.$q[$i].'%'; }
if that is what you're trying to accomplish with the operator...
________________________________________
Justin Rodino <justin@goldendome.com>
Web Application Developer
Golden Dome Media
PO Box 1616
Notre Dame, IN 46634
219.631.1116
800.728.7979 ext. 1116
219.631.1001 - fax
http://www.goldendome.com/
http://www.wndu.com/
> -----Original Message-----
> From: Kurth Bemis [mailto:kurth@usaexpress.net]
> Sent: Friday, October 13, 2000 1:40 PM
> To: php-general@lists.php.net
> Subject: [PHP] arg!
>
>
> arg!
>
> i keep getting a parse error in this line....line 16
>
> 15. $c = "";
> 16. for($i = 0; $i < strlen($q); $i++) { $c. = '%'.$q[$i].'%'; }
> 17. $q = $c;
>
> whats wrong with it?
>
> ~kurth
> Kurth Bemis - Network/Systems Administrator,
> USAExpress.net/Ozone Computer
>
> There is no sin except stupidity. -- Oscar Wilde
>
> kurth@usaexpress.net | http://www.usaexpress.net/kurth
> PGP key available - http://www.usaexpress.net/kurth/pgp
>
> Fight Weak Encryption! Donate your wasted CPU cycles to
> Distributed.net
> (http://www.distributed.net)
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail:
> php-list-admin@lists.php.net
>