Author |
Message |
Topic: Dynamic Table Columns |
latheesan
Replies: 17
Views: 322225
|
Forum: Tips and Tricks Posted: Sun Jul 02, 2006 12:27 am Subject: Dynamic Table Columns |
I've just started to using smarty recently. This is how i created my dynamic tables
test.php
<?php
include("inc/libs/Smarty.class.php");
$smarty = new Smarty;
$smarty->template_dir = $c ... |
Topic: print data from mysql in two colums table using smarty |
latheesan
Replies: 7
Views: 10981
|
Forum: General Posted: Sun Jul 02, 2006 12:21 am Subject: print data from mysql in two colums table using smarty |
Thanks to you boots, i was finally able to do the dynamic tables easily
http://www.phpinsider.com/smarty-forum/viewtopic.php?p=32053 |
Topic: print data from mysql in two colums table using smarty |
latheesan
Replies: 7
Views: 10981
|
Forum: General Posted: Thu Jun 29, 2006 1:41 pm Subject: print data from mysql in two colums table using smarty |
boots, how about some help now? |
Topic: print data from mysql in two colums table using smarty |
latheesan
Replies: 7
Views: 10981
|
Forum: General Posted: Wed Jun 28, 2006 7:05 pm Subject: print data from mysql in two colums table using smarty |
I tried to do what shannera said. This is what i came up with.
test.php
<?php
mysql_connect($host, $user, $pass) or trigger_error("SQL", E_USER_ERROR);
mysql_select_db($db) or trigger_error ... |
Topic: print data from mysql in two colums table using smarty |
latheesan
Replies: 7
Views: 10981
|
Forum: General Posted: Tue Jun 27, 2006 3:52 pm Subject: print data from mysql in two colums table using smarty |
The thing is, i don't know where to start, so i was hoping for a small tip or quick example |
Topic: print data from mysql in two colums table using smarty |
latheesan
Replies: 7
Views: 10981
|
Forum: General Posted: Tue Jun 27, 2006 2:47 pm Subject: print data from mysql in two colums table using smarty |
This is how i do it without using a template engine:
/* Display Data */
$x = 1;
$i = 0;
echo "<table>";
while($i < $num)
{
/* Construct Data */
$name = mysql_result( ... |
Topic: Smarty loop for results from mysql database... |
latheesan
Replies: 2
Views: 5889
|
Forum: General Posted: Tue May 09, 2006 11:55 pm Subject: Smarty loop for results from mysql database... |
Thanks Hielke Hoeve,
you the besttt |
Topic: Smarty loop for results from mysql database... |
latheesan
Replies: 2
Views: 5889
|
Forum: General Posted: Mon May 08, 2006 10:58 pm Subject: Smarty loop for results from mysql database... |
test.php
<?php
/* Start Smarty Template Engine */
include(SCRIPT_PATH . "inc/libs/Smarty.class.php");
$smarty = new Smarty;
$smarty->compile_check = true;
$smarty->debugging = fal ... |
Topic: how do you check if {$string} exists on a template file? |
latheesan
Replies: 2
Views: 5144
|
Forum: General Posted: Mon May 08, 2006 10:53 pm Subject: how do you check if {$string} exists on a template file? |
thanks for that |
Topic: how do you check if {$string} exists on a template file? |
latheesan
Replies: 2
Views: 5144
|
Forum: General Posted: Sat May 06, 2006 9:46 pm Subject: how do you check if {$string} exists on a template file? |
Hello,
I've just started to use smarty today for my php project and i love what it can do.
This is my problem...
i have index.php file which loads and display the contents of index.tpl file
... |
|