... just beginning

From: Date: Thu, 11 Apr 2002 17:38:02 +0000
Subject: ... just beginning
Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-3638@lists.php.net to get a copy of this message
i'm new at smarty, and even though the manual is 112 pages long, it's terribly non-informative from a "how to" point of view.. so hopefully you guys can help. I am retreiving results from mysql and using a while loop to assign the values to an array. The following is the code: $sql = "select catId, category from categories"; $result = mysql_query($sql); while ($row = mysql_fetch_array($result)) { $catId = $row["catId"]; $category = $row["category"]; } I am using these results in a select box in my html form. I assume I will use HTML_OPTIONS to accomplish this. My question is, how do I assign values that smarty will understand and therefore give me the desired options list in my html form? thanks for ur help blue

« previous php.smarty.general (#3638) next »