|
10-29-2006, 12:15 PM | #1 |
Green Mole
Join Date: Oct 2006
Posts: 1
|
List how many Sites have been indexed?
Hi,
How can you show on your homepage how many sites are currently indexed by the search engine? -Dan |
11-17-2006, 07:00 AM | #2 |
Green Mole
Join Date: Nov 2006
Location: Florida
Posts: 11
|
You should be able to do a mysql command to count the number of entries in the sites table to show the sites indexed.
Something like this command from the mysql command prompt would show the number of sites: SELECT count(*) as num FROM phpdig_sites; (assuming your table is phpdig_sites, it could be just sites or something else). So you could do something like this (haven't tested, but hopefully the idea is clear): <?php $num_sites = mysql_query("SELECT count(*) as num FROM phpdig_sites;"); echo "Number of sites indexed: "; echo $num_sites; echo "\n"; ?> [Sorry for any typos, in a rush! ;-) ] Last edited by CentaurAtlas; 11-17-2006 at 07:03 AM. |
Thread Tools | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Certain sites, pages and pdfs are not indexed 1.8.9 RC1 [Workaround included] | obottek | Bug Tracker | 0 | 08-24-2006 06:30 AM |
show sites indexed | richwilson | How-to Forum | 2 | 04-06-2006 05:31 PM |
List and link to indexed URIs | Charter | Mod Submissions | 3 | 01-20-2005 10:07 PM |
Many sites indexed - how to restrict search results to just one or two ? | ciaran@clissman | How-to Forum | 2 | 05-27-2004 02:11 AM |
Nothing indexed on some sites | tryangle | How-to Forum | 3 | 05-02-2004 01:31 PM |