Warning: mysql_fetch_assoc () expects parameter 1 to be resource, boolean given in C: \ xampp \ htdocs \ NEW \ admin \ alterfotos.php on line 16
$id_imagem = trim($_GET['id_imagem']);
$dados = mysql_fetch_assoc( mysql_query("SELECT * FROM imagens WHERE id_imagem = $id_imagem") )or die(mysql_error());
Notice: Undefined index: image_id in C: \ xampp \ htdocs \ NEW \ admin \ alterphotos.php on line 15
I'm creating a simple album with MySQL & PHP however I'm having this error.