What i want to do is, read some info. from a DB, show them in a form, and be able to change some fields, like email, address, etc.
The problem is that i'm getting this:
Warning: mysql_fetch_assoc() expects parameter 1 to be resource, boolean given in D:\xampp\htdocs\workbench\Pagina\PetroAlianza\Modificar_Usuario.php on line 32.
But, the info. i want to change is saving succesfully, the problem seems to be the part when i check if the Update was done or not. Here is the piece of code:
if (isset($_POST['Save'])){
$row=mysql_fetch_assoc(mysql_query("UPDATE informacion_general SET dir_habitacion='".$_POST['dir_habitacion']."' WHERE cedula='".$_POST['cedula']."'"));
if("$row"){
echo"\n\nAll cool with the Update";
} else{
echo"\n\nSomething is wrong here";
}
}
Hope you guys can get with the problem, 'cuz i can't. xDDD... Thanks with all the help before btw, this is an excellent forum...


Sign In
Create Account

Guest_GerarD_91_*
Back to top









