lundi 5 septembre 2016

image cannot be displayed because its conain error in php [on hold]

$result = mysql_query("select profilepic from `profile` where id = '$pid' ");

if ($result) {
    if ($row = mysql_fetch_array($result)) {
        $img = $row["profilepic"];
    }
}

header("Content-type: image/jpeg");
echo $img;

Aucun commentaire:

Enregistrer un commentaire