i'm building kinda of store website and i want to display description of an item after the foreach loop
example:
<select>
$cati = getAllFrom("*", "items", "where Cat_ID = {$category} AND visible = 1", "Item_ID");
foreach($cati as $drop){
echo '<option id="' . $drop['item_ID'] . '">' . $drop['Name'] . '</option>';
}
<select>
<div>
item description :
<?php echo "here i want to display description of the selected item"; ?>
</div?
now under that select button i have an description box that i want to display the selected item description from db column , how i can solve that ?