[linux] Apache, PHP a MySQL
Pogac Daniel
dano na tatrasoft.sk
Pondělí Říjen 14 09:53:00 CEST 2002
Toto je z toho indexu:
<?php
require("./function.php");
if(!isset($count)){
$sql = @mysql_query("UPDATE counter SET hits=(hits+1) WHERE
(id='1')", $conn);
$sql = @mysql_query("SELECT hits FROM counter WHERE
(id='1')", $conn);
$count = cislo(mysql_result($sql, 0, "hits"));
}else{
$count = $count;
}
a takto vyzera function.php
<?php
$conn = mysql_pconnect("localhost", "", "");
mysql_select_db("tatrasoft");
function Cislo($n){
return Number_Format($n, 0, " ", " ");
}
?>
Daniel Pogač
TatraSoft Group s.r.o.
Sibírska 4
831 02 Bratislava
tel: +421-2-55574033
fax: +421-2-55566385
cell: +421-904-430036
e-mail: dano na tatrasoft.sk
www: www.tatrasoft.sk
Další informace o konferenci linux