Location: PHPKode > projects > Students Community Intranet > deletephoto.php
<?php
include("inc.header.php"); echo "</head><body>"; //header standard
session_start();
if (!session_is_registered("pass")){
	@session_destroy();
	$erreur="id";
	include("inc.erreur.php");
	exit();
}
$requete=sprintf("UPDATE users SET photo='' WHERE login='%s'", $_SESSION['login']);
require_once('inc.connection.php');
mysql_select_db($database, $interne);
$result = mysql_query($requete, $interne) or die(mysql_error());
if($result){
	header("location: membre.php?go=Mon Profil&updated=yes&photo=ok");
}
?>
Return current item: Students Community Intranet