Thanks for the responses guys. The '$i' shouldn't be there it is left over from a version where I wasn'y using MYSQL_ASSOC in the mysql_fetch_array() call.
The output I am getting is nothing, the whiel loop does not exectue and all i get is a empty page. I am trying to atuopulate a form's drop down box, with some categories. So I want to create an array with the category names from a category table in my database then loop through them to creat the drop down somethign like this...
<?php>
$query = $database->query(some mysql statement);
while ($var = mysql_fecth_array($query, MYSQL_ASSOC) {
echo '<select>
<option>'.$var['row_name'].'</option>
</select>';
}
<?>
This worls just fone if i use my own database connection functions. I'm trying to use all the built in WB functions in porting over the code into a module though.
Is there a way to turn on errors so I can see whats happening???
ine This works fr