Please help me...
goods_id is name of combo box, i am using this goods_id to fetch data from mysql and display the value in textboxes. I know the problem when page load itself nothing values to be selected in combox box. then how can fetch the data. please help me
User Profile
Collapse
-
priyadurai replied to retrieve value from DB & display in textboxes based on value selected from dropdownin PHPIn selection box values get from db, based on the selection value to get other values in textbox. I wrote in page load itself. I have an error as "undefined index" in phpLeave a comment:
-
priyadurai started a topic retrieve value from DB & display in textboxes based on value selected from dropdownin PHPretrieve value from DB & display in textboxes based on value selected from dropdown
...Code:<select name="goods_id"> <option><strong>--SELECT--</strong></option> <?php $goods_query=mysql_query("select goods_id from booking_info") or die(mysql_error()); while($fetch_goods_id=mysql_fetch_array($goods_query)) { echo '<option>'; echo $fetch_goods_id['goods_id'].'<br/>'; echo '</option>';
No activity results to display
Show More
Leave a comment: