Ver Mensaje Individual
  #1 (permalink)  
Antiguo 18/04/2008, 16:00
lauchalp95
 
Fecha de Ingreso: julio-2006
Mensajes: 254
Antigüedad: 17 años, 10 meses
Puntos: 0
Información Tienes un error en tu sintaxis sql ( EN PHP )

Hola yo tengo el siguiente codigo ( la franga del error )
Código PHP:
 <?php
# FileName="Connection_php_mysql.htm"
# Type="MYSQL"
# HTTP="true"
$hostname_PotterHispano "xxxxxxx";
$database_PotterHispano "xxxxxxxxxxxx";
$username_PotterHispano "xxxxxxxxxxxxx";
$password_PotterHispano "xxxxxxxxxxxxxxx";
$PotterHispano mysql_pconnect($hostname_PotterHispano$username_PotterHispano$password_PotterHispano) or trigger_error(mysql_error(),E_USER_ERROR); 
?>
 <?php
$sql 
"UPDATE usuarios SET casa = $dos WHERE usuario = '$_SESSION[MM_Username]'" ;
mysql_query $sql $PotterHispano );
?>
¡ Y me da el sig error!:
Cita:
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1

¿Que hagó?

Muchisimas gracias!