![Old](images/statusicon/post_old.gif)
07-21-2005, 11:19 PM
|
![SoapinTrucker's Avatar](image.php?s=9c8c503fcdb808d03604366c05ccbb05&u=5&dateline=1121980122) |
Member
|
|
Join Date: Jul 2005
Location: Fresno, California
Posts: 38
|
|
Show total links in database
I don't remember where I got this, but this snippet will
display a total of rows (links) in your database. I did NOT write this!
Code:
<?php
//our SQL query
$sql_query = "SELECT * FROM your_table_name ";
//store the SQL query in the result variable
$result = mysql_query($sql_query);
$rows = mysql_num_rows($result);
//output total
echo $rows;
?>
Replace "your_table_name" with the name of the table you use to search in tdsearch.
|