Jump to content

listbox with invisible column


johntigner

Recommended Posts

Do you mean this where only the description is visible. The values attached to each description are the ids

<?php
$res = mysql_query ("SELECT id, description FROM atable");

echo "<select name='mydropdown'>";
while (list($id, $description) = mysql_fetch_row($res))
{
    echo "<option value='$id'>$description</option>";
}
echo "</select>";

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.