Hi! I am currently making a site wherein a user is capable of creating her personalized packages. So i thought of using the concept of listbox.
There are this DEFAULT PACKAGE LISTBOX and the PERSONALIZED PACKAGE LISTBOX.
There are 3 MAIN TYPES (A, B, C). Type A has 9 subtypes, B has 1 and C has 3.
So I want to create a default package listbox for each and a personalized package for each subtypes.
Right now all i can do is to create ONE DEFAULT PACKAGE.
anyone who can show me
[1]how to create the PERSONALIZED PACKAGE LISTBOX, which is at first is empty and
[2]how to CREATE THE ADD REMOVE RESET ALL buttons?
Thank you very much!
Here is the script i used. I am really a beginner in php. thanks!🙂
<?php
//connection
include('dbconnect.php');
// Make a MySQL Connection
$query = "SELECT pack_desc, phil_price FROM tbl_dtpack WHERE pack_subtype = 'sample'";
$result = mysql_query($query,$connect) or die(mysql_error());
//(LISTBOX)
echo '<select name="listbox">';
while ($row = mysql_fetch_assoc($result))
{
echo '<option value="',$row['pack_desc'],'">',$row['pack_desc'],'</option>';
}
echo '</select>';
mysql_free_result($result);
mysql_close();
?>