This is cleaner but gives me the error: Can't call method "fetch" on an 
undefined value.

    $sth = $req->{tcdb}->prepare ("SELECT order,name FROM pages ORDER 
BY order");
    $sth->execute();
    $sth->bind_columns(\($order, $name));

-]
<html>
<head>
</head>
<body>

<form>
  <select name="test">
    [$ while $sth->fetch $]
            <OPTION VALUE="[+ $order +]">[+ $name +]</OPTION>
    [$ endwhile $]
  </select>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to