View Single Post
Old 02 Mar 2016, 19:27
twistsol's Avatar
twistsol twistsol is offline
Join Date: Apr 2015
Real name: Chr's Phelps
Passing array to a template to format as a table

I'm a newbie to HTML, CSS, PHP and relatively new to vBulletin, admin for less than a year, and I literally wrote my first php code yesterday. Old COBOL guys can still learn new things.

Last night I created a script that gathered some data from the database and formatted it as an HTML table in the PHP script and passed that variable with text to a page and template I created by following tutorials I found here. The output on the page was fine but I'm questioning the technique.

I think it would make more sense to pass a variable as a two dimensional array to the template and have the template code display it broken out into a table to display on the page from that point.

Is this possible? If so can someone provide some hints as to what I'd need.

If it matters,
vb 4.2.3
PHP 5.4.45
Apache 2.4.16
OSX 10.11.3

Thanks much for any assistance.

Reply With Quote