When accessing database or any dynamic array of information you can apply this method to produce a grid layout instead of a traditional linear layout. You can use tables, divs, or simple line breaks as a stagger mechanism. Script Source: www.developphp.com

  1. TheJustinmkeith says:

    So I’m newb at all this but I was wondering how I can make a dynamic grid that is limited on how many rows that are created but will auto generate selectable pages that the end user can click to see more content for my online store.

    example:

    page 1
    a b c
    d e f
    g h i

    page 2
    j k l
    m n o
    p q r and so on.

  2. pzmaven says:

    Where do you close the table rows?

  3. facility46 says:

    Thnx Adam. Its been so useful. How can we make it with the images from our database and how to display them randomly everytime we refresh the page. If u can make another tutorial it will be awesome.

  4. hellraizer17 says:

    wat about if we wanted it this way:
    a d g
    b e h
    c f i
    please help.

  5. gukkie87 says:

    How bout some pagination for this? Will it work with your previous pagination tut?

  6. smvsoren says:

    Cool tut.
    Nice vid Adam, keep up the good work :D

  7. bowersbros says:

    @lucas199400 if you have it in a specific format (eg, always comma or semi-colon separated (;) then you can use explode() function in the form: explode(“;”,$string);

    where ; is our separator (can be any character, try to make it obscure so that you don’t get unexpected results (can be a string)) and $string is the haystack which we are looking in.

    Practical use:

    $name = “AlexSPLITBowers”;
    $split = explode(“SPLIT”,$name);
    echo $split[0] . ” ” . $split[1];

  8. killerbng says:

    I would of never though of this, thnx adam

  9. MrShawnlloyd says:

    dude, thats hella smarter than the way i ususally do it…vedy nice

  10. KevinFusco says:

    sick I can use this for my user options table

  11. reload1012 says:

    great video i can’t stress how amazing your informative videos are keep pushing out great content thank you very much and i look forward to watching your future videos

  12. yfz450bj says:

    Nice video Adam. Very helpful.

  13. mapledutch says:

    @Nedfrenzy you to man

  14. Nedfrenzy says:

    Merry X-mas

  15. JerkTutorials says:

    nice video man, pleasee go and check out my channel, pleaseeeee

  16. lucas199400 says:

    Adam, I’ve got a little problem since my PHP skills are a little rusty..

    Could you perhaps make a tutorial on how to store for example 10 different words in 1 table field thingamajig. With use of an array for example.
    Then with PHP you take apart the array that is stored in only one table field thing and echo them out as normal seperate words again.

    I hope you get what I mean,
    Thanks in advance :)

  17. mapledutch says:

    second view xD nice video can you make a video about payed membership with php ?

  18. RateHacker says:

    Nice video Adam