html_options and sql values
| From: | Bastian Hammer | Date: | Sun, 06 Apr 2003 10:07:37 +0000 |
| Subject: | html_options and sql values | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-9143@lists.php.net to get a copy of this message | ||
hi smartys :D
i have a great problem with a small script :(
i need to assign a few mysql values to html_options
the user id and the user surname .. it shouldn´t be so difficult!
can i assign a multidimensiol array to html_options?
or how must my code look like for reading from the database?
could this be correct:
while($row = mysql_fetch_array($result))
{
$this->user_data = $row['sz_id'];
$this->user_data = $row['sz_nname'];
}
and how do i have to assign it?
because this:
$smarty->assign("ID", array($sz->user_list_id));
$smarty->assign("NNAME", array($sz->user_list_nname));
doesn´t work :(
has anyone an working example for me?
greetings - bastian