p2p.wrox.com Forums

Need to download code?

View our list of code downloads.

  Return to Index  

beginning_php thread: RES: Has ELSE been deprecated?

Message #1 by "Rodrigo Penloski - Som Livre.com - SP" <Rodrigo@s...> on Tue, 22 Oct 2002 16:31:35 -0300

-----Mensagem original-----
De: Jefferis Peterson [mailto:jefferis@p...]
Enviada em: ter=E7a-feira, 22 de outubro de 2002 16:26
Para: beginning php
Assunto: [beginning_php] Has ELSE been deprecated?

I keep getting errors on my if/else else if statements and I'm wondering
it has be deprecated or if I'm just making a stupid error. This won't

$agent =3D getenv("HTTP_USER_AGENT");
echo $agent;
if (preg_match("/Win/i", "$agent")) {
$top =3D "50";
{ /**** THAT'S THE ERROR ****/
else {
$top =3D "100";

Jefferis Peterson, Pres.
Web Design and Marketing
Tel .  xxx-xxx-xxxx
ICQ 19112253

http://www.Slippery-Rock.com - 7,000 hits per year

  Return to Index