Author |
Message |
Topic: date_format to format interval of 91 seconds ? |
janmartin
Replies: 1
Views: 4093
|
Forum: General Posted: Sun May 16, 2004 2:04 pm Subject: date_format to format interval of 91 seconds ? |
Hi,
I try
{$item|date_format:"%H:%M:%S"}
with $item = 91
I need something this:
00:1:31
But get
19:01:31
Any ideas? |
Topic: MODIFIER: count serialized array |
janmartin
Replies: 0
Views: 9900
|
Forum: Plugins Posted: Sun May 09, 2004 12:08 pm Subject: MODIFIER: count serialized array |
Lets assume you stored some data (e.g. ticked checkboxes of a form) in a database using serialize.
When displaying an overview of the data you like to dislpay how many checkboxes has been ticked.
... |
Topic: How to avoid PHPSESSID added to every link of first page? |
janmartin
Replies: 1
Views: 4451
|
Forum: General Posted: Tue Apr 13, 2004 8:01 pm Subject: How to avoid PHPSESSID added to every link of first page? |
Hi,
I am running smarty and pear::auth for authorisation.
When visiting the site first time all links have the PHPSESSID added.
Looks like:
http://www.mydomain.com//page2.php?PHPSESSID=04978ce ... |
Topic: dynamic table with header: Variable for first column data? |
janmartin
Replies: 0
Views: 3480
|
Forum: General Posted: Tue Mar 30, 2004 11:55 am Subject: dynamic table with header: Variable for first column data? |
Hi,
I am using the dynamic tables code mentioned at
http://www.phpinsider.com/smarty-forum/viewtopic.php?p=6047#6047
Given, that the data is like:
id, first_name, last_name, username, tel_number ... |
Topic: html_options vs. array: Dropdownlist from a 2 column table? |
janmartin
Replies: 2
Views: 5021
|
Forum: General Posted: Sun Mar 28, 2004 6:57 pm Subject: better workaround |
<?
//register.php
require_once 'setup/myauth.php';
$sql = "SELECT offset,towns FROM timezones";
$result = mysql_query($sql);
while($row = mysql_fetch_row($result& ... |
Topic: html_options vs. array: Dropdownlist from a 2 column table? |
janmartin
Replies: 2
Views: 5021
|
Forum: General Posted: Sun Mar 28, 2004 5:00 pm Subject: found a workaround |
This does the work until there is something more elegant available:
<select name=timezones>
{section name=counter loop=$timezones}
<option value="{$timezones[counte ... |
Topic: html_options vs. array: Dropdownlist from a 2 column table? |
janmartin
Replies: 2
Views: 5021
|
Forum: General Posted: Sun Mar 28, 2004 4:19 pm Subject: html_options vs. array: Dropdownlist from a 2 column table? |
Hi,
all I want is a dropdownlist of a 2 column table.
register.php:
<?
require_once 'setup/myauth.php';
$smarty->assign('timezones', $db->getAll("SELECT * FROM timezones"));
$smarty-& ... |
|