Hi i want to make a form LIST that automaticly gets the content "orderid" to choose for editing.
can i please get a pointing pin on which function(s) to use ?
i have tried with:
$result = mysql_query("SELECT * FROM {$table} WHERE 'ordreid'");
if (!$result) {
die("Query to show fields from table failed");
}
echo($result);
$i = 0;
while($i<mysql_num_fields($result))
{
$meta=mysql_fetch_field($result,$i);
echo $i.".".$meta->name."<br />";
$i++;
}
like i want to get this part:
<option>first item in field orderid</option>
<option>2'nd item in field orderid</option>
and so on...i know its easy but i have struggled wit this enough now.