View Single Post
Old 04-17-2005, 10:28 PM   #10 (permalink)
DJMaze
Senior Contributor
 
DJMaze's Avatar
 
Join Date: Mar 2005
Posts: 651
DJMaze is on a distinguished road
it's easy
PHP Code:
$res mysql_query("SELECT COUNT(*)...");
// mysql_fetch_array and mysql_fetch_assoc are slower and not important here
list($newcount) =  mysql_fetch_row($res);

++
$newcount// increase the number

$file="count.txt"
if (
$fh=fopen($file,"w+")) {
  
fwrite($fh,$newcount);
  
fclose($fh);

DJMaze is offline   Reply With Quote