Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

Search found 7 matches
Smarty Forum Index
Author Message
  Topic: date_format to format interval of 91 seconds ?
janmartin

Replies: 1
Views: 4093

PostForum: 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

PostForum: 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

PostForum: 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

PostForum: 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

PostForum: 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

PostForum: 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

PostForum: 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-& ...
 
Page 1 of 1
All times are GMT
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP