ThinkDing  

Go Back   ThinkDing > Member Forums > Hacks & Modifications
Acceptance Mark
User Name
Password


Reply
 
Thread Tools Search this Thread
  #1  
Old 07-21-2005, 10:19 PM
SoapinTrucker's Avatar
SoapinTrucker SoapinTrucker is offline
Member
 
Join Date: Jul 2005
Location: Fresno, California
Posts: 38
Arrow 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.
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump



All times are GMT. The time now is 10:40 PM.


Powered by: vBulletin Version 3.0.7
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright © 2001 - 2005, ThinkDing LLC. All Rights Reserved.