I am not looking for any code in particular but I am more interested in the logic. So here is the question.
I want to create a forum. The home page shows the top 20 questions that have been asked recently and have been stored in the database. I have used ajax and php to fetch the information from the database. The issue is, how do I display this information?
Should I make 20 identical divs and display the contents of each row in these divs.(this wouldn't make sense if I have to display 300-400 questions at once )
Or, should I use jquery to append child divs in a parent div and display information dynamically? If yes then how can it be done?
My question may be a bit unclear but I am a bit clueless here. Please help
Aucun commentaire:
Enregistrer un commentaire