View Single Post
Old 12-09-2004, 08:31 AM   #5
Slider
Orange Mole
 
Join Date: Jan 2004
Posts: 30
Show number of indexed pages on homepage

Code:
<?
$db=mysql_connect('host','db_user','db_pass');
mysql_select_db("database_name");
$query = "SELECT *  FROM spider";
$results = mysql_query($query);
$num_results = mysql_num_rows($results);
?>


Searching <?echo $num_results?> web pages
I did find and old post with the same title but the code wouldn't work so I made this. I was not able to post to the old post , so here is a working version.
Slider is offline   Reply With Quote