[Warning]
mysql_fetch_array(): supplied argument is not a valid MySQL result resource
In file /opt/sites/transatlantica.travel/web/public/miperfil.php
At line 207
miperfil.php (Line: #207)
...
}
*/
}
} else {
$_POST['asunto'] = empty($_GET['p']) ? $_REQUEST['asunto'] : $_GET['p'];
}
// COLOCO LOS DATOS EN LOS CAMPOS
$sql = "SELECT * FROM ".$table_1." WHERE usu_codigo=".$_SESSION['id_usuario']." ";
$consulta = mysql_query($sql,$this->conexion);
$this->datos_usuario = mysql_fetch_array($consulta);
$_POST['email'] = $this->datos_usuario["usu_email"]; // -> Esta fuera del if de abajo porque al estar disable no manda el dato por POST
//---------------------------------------------------------------------------------------------
//---------------------------------------------------------------------------------------------
/*
if ($this->datos_usuario["usu_pais"] != ""){
$sql_2 = "SELECT * FROM ".$table_2." WHERE id=".$this->datos_usuario["usu_pais"]." ";
$consulta_2 = mysql_query($sql_2,$this->conexion);
$row_2 = mysql_fetch_array($consulta_2);
///
$_GET["id_pais"] = isset($_GET["id_pais"]) ? $_GET["id_pais"] : $row_2["id"];
...
#0 [internal function]: Application::ErrorHandler(2, 'mysql_fetch_arr...', '/opt/sites/tran...', 207, Array)
#1 /opt/sites/transatlantica.travel/web/public/miperfil.php(207): mysql_fetch_array(false)
#2 /opt/sites/transatlantica.travel/core/TApplication.php(30): miperfil->run(NULL)
#3 /opt/sites/transatlantica.travel/index.php(10): TApplication->run()
#4 {main}