hi guys , i have this problem dealing with php its very simple but can anyone help me with this cause im only starting to learn this language and I don’t know where to start, its all about getting data from database using combo box , for example is when I select item in combo box it will display the price of the item into textbox and other details of the item from the database. I hope I make my self clear. Any example may do. Thank you in advance n_n
my first script
$db_host = 'localhost';
$db_user = '';
$db_pass = '';
$db_db = 'Inventory';
$db_link = mysql_connect($db_host, $db_user, $db_pass) or die('MySQL Connection Error:'.mysql_error());
mysql_select_db($db_db) or die('MySQL Error: Cannot select table');
$sql = "SELECT item, id, unit_price, sellprice, quantity FROM product ORDER by id";
$result = mysql_query($sql);
???