hey all.......... i want a script that will show the highest rated article on my site.... At the moment it shows the most poular articles but only displays the article name. I want it to show the corresponding thumbnail with the name. Could some one give me some help as i am a bit of a novice... thanks in advance
Where is the thumbnail name kept, in the DB or in an images folder? In order to really give code specifics we would need to know field names etc..but here goes. Assuming fiedl name is "title" and files are JPG's held in the images folder... <?php echo "<img src='images/".$title.".jpg'>"; ?> Make sure you notice the difference of quotes (") and single ticks ('). The periods (.) separate your continues string and the variabel name...so the quotes contain the string, the ticks are the same as using \" So this display code <img src='images/ stops, displays the variable and then continues with .jpg'> to create your image tag. You can ask other questions to http://askthecomputergeek.com and I will post replies to php code questions on the site with longer explanations. Hope this helped