Jun 04
mysql_affected_rows()
if ($PHP_AUTH_PW!=$PASSWORD || $PHP_AUTH_USER!=$USERNAME){
header('WWW-Authenticate: Basic realm="secure content"');
header('HTTP/1.0 401 Unauthorized');
echo "Unauthorized";
exit;
}
?>
case "2":
$caption = "Caption 2";
$content = "Content 2";
break;
default:
$caption = "Default caption";
$content = "Default content";
}
?>
function getweekday($date){
$pieces = explode("-", $date);
$tstamp=mktime(0,0,0,$pieces[1],$pieces[2],$pieces[0]);
$Tdate = getdate($tstamp);
$wday=$Tdate["wday"];
return $wday;
}
?>
Recent Comments