Show Data after choose option php -
how can show detail after choose 1 of option
here's code:
<td><p>id vendor :</p></td> <td> <select> <?php $host = "localhost"; $username = "root"; $password = ""; $database = "dbpo"; $conn=mysql_connect($host,$username, $password); $pilihdatabase= mysql_select_db($database, $conn) or die ("connect failed !! : ".mysql_error()); $query = mysql_query("select idvendor tblvendor"); while ($row = mysql_fetch_array($query)) { $idvendor = $row['idvendor']; $namavendor = $row['namavendor']; echo "<option>". $idvendor ."</option>"; } ?> </select> </td> <td><input type="text" name="namavendor" size="50"/></td>
please help
Comments
Post a Comment