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 );
?>
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!