Skip to content
Advertisement

how to display mysql query results in sequential div’s [closed]

I’m stuck at the moment where i would like to display contents from mysql database in divs with sequential manner. I got the query successful but i got the result in the div in a list manner. Can any one suggest me how it display in a sequential manner. The code is

JavaScript

Advertisement

Answer

Try moving your CSS above your other code… it really should be inside your <head></head> tags.

Then you have two choices…

  1. If you want all divs to be inside one list item, this is the code sample

  2.         
            
            
  3. If you want each div to be a list item of its own, this is the code sample…

    JavaScript
User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement