Show record desending order that is more views or much hits

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
gazindgi
Forum Newbie
Posts: 1
Joined: Wed Dec 28, 2011 12:43 pm

Show record desending order that is more views or much hits

Post by gazindgi »

i want to need a sql quiry to show more view article or much hits record in a database in php scripting
User avatar
twinedev
Forum Regular
Posts: 984
Joined: Tue Sep 28, 2010 11:41 am
Location: Columbus, Ohio

Re: Show record desending order that is more views or much h

Post by twinedev »

Well, first thing would be to know what type of site are you working with? (ex. WordPress, Drupal, Joomla, Custom Built)

-Greg
User avatar
s.dot
Tranquility In Moderation
Posts: 5001
Joined: Sun Feb 06, 2005 7:18 pm
Location: Indiana

Re: Show record desending order that is more views or much h

Post by s.dot »

That's not very much information to go on. Can you elaborate? What have you tried?

You will need to build your SQL query and use probably mysql_query() to execute the query from PHP, if you are using a mysql database.
Set Search Time - A google chrome extension. When you search only results from the past year (or set time period) are displayed. Helps tremendously when using new technologies to avoid outdated results.
Post Reply