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: http://www.developphp.com/view_lesson.php?v=396
@TheJustinmkeith seems like you would have to use pagination
darkchocolate132 1 week ago
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.
TheJustinmkeith 2 weeks ago
Where do you close the table rows?
pzmaven 3 weeks ago
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.
facility46 6 months ago
wat about if we wanted it this way:
a d g
b e h
c f i
please help.
hellraizer17 9 months ago
How bout some pagination for this? Will it work with your previous pagination tut?
gukkie87 1 year ago
Cool tut.
Nice vid Adam, keep up the good work :D
smvsoren 1 year ago
@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];
bowersbros 1 year ago
I would of never though of this, thnx adam
killerbng 1 year ago