Re: Re: parse error, unexpected $end

From: Date: Thu, 01 Jan 1970 00:00:00 +0000
Subject: Re: Re: parse error, unexpected $end
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-18092@lists.php.net to get a copy of this message
You have a mis-match with your brackets. Count your { and } to see if you have the correct number. You will find that you are missing a }. Give your code another once over, make the change and you should see better results. You might find that if you indent your sections you will find it easier to spot these sort of errors IE: if (blah == blah) { var $somevar; var $anothervar; if ($somevar == $anothervar) { echo "it worked"; }; } It's much easier to see if you have matched up your brackets this way. Jim Hunter -------Original Message------- From: Octavio Herrera Date: Friday, January 24, 2003 04:42:11 PM To: php-windows@lists.php.net Subject: [PHP-WIN] Re: parse error, unexpected $end This is the source Code... <? include("includes/encabezado_xml.php"); include("includes/conexion.php"); mysql_select_db("latinencounters"); $u_login=""; $u_pwd=""; if(isset($url_login)){ $u_login=$url_login; // parametro login del usuario } if(isset($url_pwd)){ $u_pwd=$url_pwd; // parametro password del usuario } $query="select * from usuarios_ws where login='$u_login' and pwd=password('$u_pwd')"; $rs=mysql_query($query,$enlace); $filas=mysql_num_rows($rs); if($filas==0){ echo "<error><mensaje>Your Login or Password is Incorrect</mensaje></error>"; }else{ echo "<usuarios_ws>\n"; for($a=0;$a<$filas;$a++){ $fila=mysql_fetch_array($rs); echo " <usuario>\n"; echo " <id>".$fila["id"]."</id>\n"; echo " <name>".$fila["name"]."</name>\n"; echo " <born>".$fila["born"]."</born>\n"; echo " <occupation>".$fila["occupation"]."</occupation>\n"; echo " <country>".$fila["country"]."</country>\n"; echo " <city>".$fila["city"]."</city>\n"; echo " <description>".$fila["description"]."</description>\n"; echo " <login>".$fila["login"]."</login>\n"; echo " </usuario>\n"; } $query="select * from perfil"; $rs=mysql_query($query,$enlace); $filas=mysql_num_rows($rs); $dominio="http://www.latinencounters.com/"; for($a=0;$a<$filas;$a++){ $fila=mysql_fetch_array($rs); echo "<girl>\n"; echo " <Codigo>".$fila["Codigo"]."</Codigo>"; echo " <FirstName>".$fila["FirstName"]."</FirstName>"; echo " <LastName>".$fila["LastName"]."</LastName>"; echo " <Height>".$fila["Height"]."</Height>"; echo " <Weight>".$fila["Weight"]."</Weight>"; echo " <Photo2>$dominio".$fila["Photo2"]."</Photo2>"; echo " <Photo3>$dominio".$fila["Photo3"]."</Photo3>"; echo " <Photo4>$dominio".$fila["Photo4"]."</Photo4>"; echo " <Photo5>$dominio".$fila["Photo5"]."</Photo5>"; echo "</girl>\n"; } echo "</usuarios_ws>\n"; mysql_close($enlace); ?> -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php .

« previous php.windows (#18092) next »