Re: Starting probs
| From: | Gavin Cowie | Date: | Tue, 07 Aug 2001 16:43:29 +0000 |
| Subject: | Re: Starting probs | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-1318@lists.php.net to get a copy of this message | ||
> {section name=user loop=$data}
> <tr {if %user.rownum% is even}style='background-color: silver;'{/if}>
> <td>{$user[data].UID}</td>
> <td>{$user[data].uname}</td>
> <td>{$user[data].email}</td>
</tr>
> {sectionelse}
<tr><td>No data in database</td></tr>
> {/section}
> </table>
Right, with that for loop in your php and this correct script, you'll get
your 25 rows.
G
--
"Stick it to the man."