Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- if(isset($_POST['get_option']))
- {
- $host = 'localhost';
- $user = 'root';
- $pass = '';
- mysql_connect($host, $user, $pass);
- mysql_select_db('pelajar');
- $sessi = $_POST['get_option'];
- $find=mysql_query("select kos from maklumat where sesi='$sessi'");
- //echo "<option>Pilih Kos</option>";
- while($row=mysql_fetch_array($find))
- {
- echo "<option value=".$row['kos'].">".$row['kos']."</option>";
- }
- exit;
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement