alert("Masuk");'; { $id = mysql_real_escape_string($_GET['id']); $query = mysql_query("SELECT * FROM userid WHERE Id = '$id'"); while($row = mysql_fetch_assoc($query)) { $imageData = $row["Foto"]; } header("content-type: image/jpg OR image/jpeg OR image/png"); echo $imageData; } else { echo "Error!"; } ?>