Jul 16
Jul 10
<?
$i=0;
while ($i <= 10){
$i++;
if($i%2==0){ echo $i."=second<br>"; };
}
?>
$i=0;
while ($i <= 10){
$i++;
if($i%2==0){ echo $i."=second<br>"; };
}
?>
Jul 10
<?
$date=date("Y-m-d");
$date=date("Y-m-d");
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;
}
?>
Jul 10
<?
$query = mysql_query("SELECT name FROM Table");
while ($item = mysql_fetch_object($query)) {
echo $item->name;
echo "<br>";
}
?>
$query = mysql_query("SELECT name FROM Table");
while ($item = mysql_fetch_object($query)) {
echo $item->name;
echo "<br>";
}
?>
Jul 10
<?
header('Content-Type: text/html; charset=utf-8');
?>
header('Content-Type: text/html; charset=utf-8');
?>
<?
mysql_select_db("DataBase");
mysql_query("SET NAMES UTF8");
?>
Jul 09
<?
session_start();
session_start();
if($_GET['sample']){ $_SESSION['sample'] = $_GET['sample']; }
if(!$_SESSION['sample']){ $_SESSION['sample'] = 'default'; }
?>
Jul 03
http://www.php.net/manual/en/function.header.php
<?
header('Location: http://www.example.com/');
?>
header('Location: http://www.example.com/');
?>
Recent Comments