SQL Problem - Simple fix
All I want to do is show the top 10 viewed videos in my admin of a porn site. I know the names of my tables. I know which content I want to show. I am learning PHP and have not learned SQL. I can make it show the top 10 Viewed videos in descending order but the titles do not display so I can know which video has been viewed the most.
This -
$result = mysql_query(' SELECT *
FROM `content_views`
ORDER BY views DESC
LIMIT 0 , 10 ');
Makes it show my top 10 views but it does not display the title of the video
It displays Just like this
Top 10 Videos
118 views
75 views
71 views
70 views
66 views
65 views
65 views
64 views
61 views
56 views






Bookmarks