Ver Mensaje Individual
  #1 (permalink)  
Antiguo 21/02/2008, 06:33
lauchalp95
 
Fecha de Ingreso: julio-2006
Mensajes: 254
Antigüedad: 17 años, 9 meses
Puntos: 0
Porblema con T_STRING

Jeje ,, otra vez:s

Parse error: syntax error, unexpected T_STRING in /www/sites/1/iespana.es/h/i/hispaneo/site/index.php on line 97

Ese error me lanza..

HTML
Linea 96
Codigo PHP

Coodigo
Cita:
<?php
# FileName="Connection_php_mysql.htm"
# Type="MYSQL"
# HTTP="true"
$hostname_hsipaneo = "________";
$database_hsipaneo = "______________";
$username_hsipaneo = "____________________________";
$password_hsipaneo = "_________________________________________";
$hsipaneo = mysql_pconnect($hostname_hsipaneo, $username_hsipaneo, $password_hsipaneo) or trigger_error(mysql_error(),E_USER_ERROR);
?>
<?php
if (!function_exists("GetSQLValueString")) {
function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
{
$theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;

$theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);

switch ($theType) {
case "text":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "long":
case "int":
$theValue = ($theValue != "") ? intval($theValue) : "NULL";
break;
case "double":
$theValue = ($theValue != "") ? "'" . doubleval($theValue) . "'" : "NULL";
break;
case "date":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "defined":
$theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
break;
}
return $theValue;
}
}

$usuario_usuario = "$LoginUsername";


mysql_select_db($database_hsipaneo, $hsipaneo);
$query_usuario = sprintf("SELECT * FROM usuarios WHERE usuario.%s = " . $LoginUsername . ' "", GetSQLValueString($usuario_usuario, "text"),GetSQLValueString($usuario_usuario, "text"));
$usuario = mysql_query($query_usuario, $hsipaneo) or die(mysql_error());
$row_usuario = mysql_fetch_assoc($usuario);
$totalRows_usuario = mysql_num_rows($usuario);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<!-- DW6 -->
<head>
<!-- Copyright 2005 Macromedia, Inc. All rights reserved. -->
<title>Hispaneo - Página principal</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" href="mm_entertainment.css" type="text/css" />
<style type="text/css">
<!--
.Estilo1 {font-family: Georgia}
.Estilo2 {font-size: 11px}
.Estilo3 {
color: #FF0000
}
-->
</style>
</head>
<body bgcolor="#14285f">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr bgcolor="02021e">
<td width="400" colspan="4" rowspan="2" nowrap="nowrap"><img src="mm_entertainment_image.jpg" alt="Header image" width="400" height="140" border="0" /></td>
<td width="360" height="58" nowrap="nowrap" colspan="3" id="logo" valign="bottom">Hispaneo</td>
<td width="100%">&nbsp;</td>
</tr>
<tr bgcolor="02021E">
<td height="57" nowrap="nowrap" colspan="3" id="tagline" valign="top"><p>Tu mundo Hispano en Neopets.com</p>
<p>&nbsp;
</p></td>


<td width="100%">&nbsp;</td>
</tr>
<tr>
<td colspan="8" bgcolor="#cc3300"><img src="mm_spacer.gif" alt="" width="1" height="2" border="0" /></td>
</tr>

<tr>
<td colspan="8"><img src="mm_spacer.gif" alt="" width="1" height="2" border="0" /></td>
</tr>

<tr>
<td colspan="8" bgcolor="#cc3300"><img src="mm_spacer.gif" alt="" width="1" height="1" border="0" /></td>
</tr>

<tr>
<td colspan="8">&nbsp;

<?php if ($LoginUsername == $row_usuario['usuario'] )
{ echo 'bienvenido '.$row_usuario['usuario'].'';
} else {
echo 'No estas logeado';
} ?>
<br />
&nbsp;<br /> </td>
</tr>
<tr>
<td width="155" valign="top" height="370">
<table border="0" cellspacing="0" cellpadding="0" width="155" id="navigation">
<tr>
<td height="40" class="pageName"><div class="Estilo1">Hispaneo</div></td>
</tr>
<tr>
<td width="155" height="40"><a href="javascript:;">Index</a></td>
</tr>
<tr>
<td height="40"><div class="sidebarHeader"><a href="/usuarios/registrar.php">Registrarse en la web</a></div></td>
</tr>
<tr>
<td width="155" height="40"><a href="javascript:;">Acerca de nosotros</a></td>
</tr>
<tr>
<td width="155" height="40"><a href="javascript:;">Antiguos Layouts</a></td>
</tr>
<tr>
<td width="155" height="40"><a href="javascript:;">¿Que es Neopets.com?</a></td>
</tr>
<tr>
<td width="155" height="40"><a href="javascript:;">Staff</a></td>
</tr>
<tr>
<td height="40"><a href="javascript:;">CONTACTO</a></td>
</tr>

<tr>
<td height="40"><a href="javascript:;" class="Estilo1">Calendario..</a></td>
</tr>
<tr>
<td height="40"><div>
<p class="sidebarHeader Estilo1 Estilo2">&nbsp;</p>
</div></td>
</tr>
<tr>
<td width="155" height="40">&nbsp;</td>
</tr>
</table></td>
<td width="1" bgcolor="#445DA0"><img src="mm_spacer.gif" alt="" width="1" height="1" border="0" /></td>
<td width="50"><img src="mm_spacer.gif" alt="" width="50" height="1" border="0" /></td>
<td width="304" colspan="2" valign="top"><img src="mm_spacer.gif" alt="" width="304" height="1" border="0" /><br />
<table border="0" cellspacing="0" cellpadding="0" width="304">
<tr>
<td height="41" class="pageName">Mensaje de bienvenida</td>
</tr>
<tr>
<td class="bodyText">Bienvenido a Hispaneo! En este sitio te ayudaremos con todo lo que quieras de Neopets.com ¡Buena suerte!
<p><span class="subHeader">Noticias del momento...</span><br />
</p>
<p>&nbsp;</p>
</td>
</tr>
</table> </td>
<td width="50"><img src="mm_spacer.gif" alt="" width="50" height="1" border="0" /></td>
<td width="200" valign="top"><img src="mm_spacer.gif" alt="" width="1" height="10" border="0" /><br />
<table border="0" cellspacing="0" cellpadding="0" width="200">
<tr>
<td colspan="3" id="sidebarHeader" class="sidebarHeader" align="center">Lo que esta sucediendo...</td>
</tr>

<tr>
<td width="45"><img src="mm_spacer.gif" alt="" width="40" height="1" border="0" /></td>
<td width="110" id="sidebar" class="smallText">
<p><img src="http://images.neopets.com/homepage/marquee/return_of_sloth_2008_ch7_es.jpg" alt="image 1" width="110" height="110" border="0" vspace="6" /><br />
El regreso del dr sloth!<br />
<a href="javascript:;">Leer más &gt;&gt;</a></p>

<p><img src="http://images.neopets.com/games/clicktoplay/ctp_933.gif" alt="image 2" width="110" height="110" border="0" vspace="6" /><br />
Descubre todo sobre el juego nuevo!<br />
<a href="javascript:;">Leer más &gt;&gt;</a><br />
</p>
<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br /> </td>
<td width="45">&nbsp;</td>
</tr>
</table>
<br /> </td>
<td width="100%">&nbsp;</td>
</tr>
<tr>
<td width="155">&nbsp;</td>
<td width="1"></td>
<td width="50">&nbsp;</td>
<td width="194">&nbsp;</td>
<td width="110">&nbsp;</td>
<td width="50">&nbsp;</td>
<td width="200">&nbsp;</td>
<td width="100%">&nbsp;</td>
</tr>
</table>
</body>
</html>

<?php
mysql_free_result($usuario);
?>

Como lo soluciono? MUCHAS GRACIAS

Última edición por lauchalp95; 21/02/2008 a las 06:47 Razón: Olvide agradecer