ThinkDing

ThinkDing (http://www.thinkding.com/forum/index.php)
-   Hacks & Modifications (http://www.thinkding.com/forum/forumdisplay.php?f=8)
-   -   Show total links in database (http://www.thinkding.com/forum/showthread.php?t=4)

SoapinTrucker 07-21-2005 11:19 PM

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.


All times are GMT. The time now is 08:29 AM.

Powered by: vBulletin Version 3.0.7
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.