YOU ARE ACCESSING PS3 YOUTUBE NOT FROM THE PS3!
Video links will be redirected to youtube!


Dynamic Grid Output Programming Tutorial Using PHP + MySQL Array Data

Added: December 13, 2010 (over 2 years ago) share on facebookshare on twitter

Duration (13:07) Views: 21,620 Category: Education

Likes: 70 Dislikes: 5

Go to Youtube


Video Description

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

show/hide Comments

Comments

    Post a comment
great tut. if you want to close all of your tr tags properly you should nest an if statement inside the existing .
if($i == 0) {
open tr open td $member_name close td
} else {
close tr open tr open td $member_name close td
}
Author: Kamil Es
5 days 10 hours ago
adam its all good but doesn't validate at w3c because your table keeps making new rows without closing tags
any idea where to put the closing table row tag?
Author: daftblac
16 days 9 hours ago
very nice

Author: anichandrana
about 1 month ago
how put corectly in this dynamic grid table an image for a product ? anyone ?
2 months ago
Hello Sir
i m mukhtar from kashmir india; a php prog and i m in love with php development. i m just upset ...why i did not see your site b4? .....Sir i like the way you explain the concept all your tutorial work rock ...Thanks a lot
7 months ago
vrey useful tutorial...thanks man......
Author: avi parikh
8 months ago
thanks, very helpful
Author: Tai Tran
8 months ago
doesnt matter figured out a way todo it
9 months ago
hi adam could you help me out if i wanted to make a dynamic table like this i have made one very similar using echo methods etc well say ive got text on top an image in between and little bit of text on bottom if i have larger amount of text in one box the image gets pushed down but does not push the other images down so its like off balance nd not aligned etc could you give me any help with this?
9 months ago
Never mind, figured it out myself... you already explained it. doh...
Author: waaaghbafet
9 months ago
You should do a video on how to get arrays from mysql to html tables. (Taking a mysql table of info that has a name on each row, age, address and putting it into a html table)

Name Age Address
Name Age Address
Name Age Address

like that.
Author: waaaghbafet
9 months ago
not work for div ))
about 1 year ago
i loooove you adam!..hey no homo tho..lol :)
Author: Uzoma Umekwe
about 1 year ago
I don't know how you do it Adam but you've second guessed my requirements again. Didn't think of checking DevelopPHP for this so Googled it and found this vid with your dulcet tones explaining everything I needed to know. Thanks man. You rock!
Author: Mike Turbutt
about 1 year ago
Can I expand on this grid to make the rows/cells selectable so I can add/edit/delete specific records?
about 1 year ago
it is not working for me I use echo , and another question is: if on your data base have a random number and change all the time ( i mean if you dont use "limit 15" ) how the last data will appear ?
Thanks
I love your videos, Adam
Author: motorino64
about 1 year ago
Saved my butt again Adam, thanks.
Author: dsloanmedia
about 1 year ago
He is relying on the browser to automatically close the rows when it sees a new row tag.
Author: rbjolly
about 1 year ago
seems like you would have to use pagination
about 1 year 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.
about 1 year ago
Where do you close the table rows?
Author: pzmaven
about 1 year 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.
Author: facility46
about 1 year ago

more Comments

hide Comments


Related Videos

PHP replace characters with icons emoticons tutorial
March 13, 2012 (about 1 year ago)
HD
Author: Adam Khoury
Views: 4,261
Category: Education
8:15
Tags:
1. E - Commerce Website PHP Tutorial - Setting Up the Pages, Layout, and Templates
December 20, 2010 (over 2 years ago)
HD
Author: Adam Khoury
Views: 216,622
Category: Education
21:57
Tags:
simpleXML PHP tutorial learn to parse any XML files and RSS feeds
April 1, 2012 (about 1 year ago)
HD
Author: Adam Khoury
Views: 14,821
Category: Education
24:53
Tags:
10. E - Commerce Website Tutorial - Shopping Cart PHP Multidimensional Array +
January 7, 2011 (over 2 years ago)
HD
Author: Adam Khoury
Views: 35,089
Category: Education
21:06
Tags:
Datatables Jquery Plugin with Php & MySql - Example
November 3, 2011 (about 1 year ago)
HD
Author: sharemycode
Views: 17,709
Category: Tech
15:17
Tags:
PHP & MySQL Web Development - Part 1
October 25, 2007 (over 5 years ago)
Author: OnOpenSource
Views: 44,344
Category: Howto
10:34
Tags:
OpenJS Grid - an Open Source JQuery Grid
January 31, 2011 (over 2 years ago)
HD
Author: optikalefxx
Views: 17,569
Category: Tech
11:25
Tags:
Simple Student Information System using PHP MySQL with source code.
May 12, 2010 (over 3 years ago)
HD
Author: ahmadmit
Views: 17,895
Category: Tech
1:36
Tags:
PHP and MYSQL - Connecting to a Database and Adding Data
October 22, 2009 (over 3 years ago)
HD
Author: pbj746
Views: 131,848
Category: Howto
24:16
Tags:
PHP Programming Part 1: Introduction to PHP Programming
May 18, 2012 (about 1 year ago)
HD
Views: 97,017
Category: Tech
39:22
Tags:
PHP Lesson 1: How to get data from MySQL Database
October 21, 2009 (over 3 years ago)
HD
Views: 36,540
Category: Howto
6:48
Tags:
PHP MySQL Tutorial: Create a Database and Table in phpMyAdmin -HD-
August 22, 2010 (over 2 years ago)
HD
Views: 246,218
Category: Education
11:25
Tags:
TUTORIAL PHP & MySQL - Loops and Array
September 20, 2008 (over 4 years ago)
Author: devguruasia
Views: 1,172
Category: Education
8:45
Tags:
PHP & MySQL Tutorial 09: File Upload system with records in MySQL: Part 1
April 6, 2010 (over 3 years ago)
HD
Author: Levi Schuck
Views: 15,513
Category: Education
10:39
Tags:
PHP Mysql Tutorial
June 22, 2007 (over 5 years ago)
Author: Chris Bird
Views: 61,026
Category: Howto
7:53
Tags:
MySQL For Beginners - Tutorial 1 - Introduction to Basics
May 31, 2011 (over 2 years ago)
HD
Author: flash4real
Views: 243,927
Category: Howto
7:30
Tags:
Xa Datagrid
September 11, 2009 (over 3 years ago)
Author: XaDataGrid
Views: 2,095
Category: Tech
1:33
Tags:
PHP MySQL Tutorial: Create a Webserver on Your Computer with XAMPP -HD-
August 14, 2010 (over 2 years ago)
HD
Views: 58,013
Category: Education
9:13
Tags:
OpenJS Grid 1.4 (Adding and Deleting)
March 18, 2011 (over 2 years ago)
HD
Author: optikalefxx
Views: 2,917
Category: Tech
8:03
Tags:
Creating a Basic Page Layout with 960 Grid System Dreamweaver Extension
November 11, 2010 (over 2 years ago)
HD
Author: DMXzone
Views: 16,215
Category: Education
5:45
Tags:
7. Web Intersect Forum Tutorial : JQuery Ajax PHP MySQL Thread and Reply Form
February 10, 2011 (over 2 years ago)
HD
Author: Adam Khoury
Views: 13,462
Category: Education
19:24
Tags:
Formulario de registro con php y MySQL - Parte 1/3
April 15, 2012 (about 1 year ago)
HD
Views: 16,636
Category: Education
5:32
Tags:
Pagination Tutorial for PHP MySQL Programmers - Web Intersect Paging Database Results
August 18, 2010 (over 2 years ago)
HD
Author: Adam Khoury
Views: 50,858
Category: Education
33:19
Tags:
7. E - Commerce Website Tutorial - PHP MySQL Dynamic Home Page
January 4, 2011 (over 2 years ago)
HD
Author: Adam Khoury
Views: 45,785
Category: Education
19:20
Tags:
9. E - Commerce Website Tutorial - Shopping Cart PHP Multidimensional Array
January 7, 2011 (over 2 years ago)
HD
Author: Adam Khoury
Views: 36,889
Category: Education
22:07
Tags:

Please  to appreciate
Site generated in 0.57s
Send me a message from the ps3! PSN: PSYoutube
see our privacy policy