Skip to content

Instantly share code, notes, and snippets.

@amrrashed
Created February 7, 2018 09:51
Show Gist options
  • Select an option

  • Save amrrashed/2543613a0cc0ab3414cc2bc5e4e0c5e9 to your computer and use it in GitHub Desktop.

Select an option

Save amrrashed/2543613a0cc0ab3414cc2bc5e4e0c5e9 to your computer and use it in GitHub Desktop.
<?php
include('config_scholarship.php');
if(!null== filter_input(INPUT_POST,'id')){
$id=filter_input(INPUT_POST,'id');
$sql=mysqli_query($conn,"Select * from test where id='$id'");
while($row=mysqli_fetch_array($sql))
{
$yearx=$row['year'];
echo '<option value="'.$yearx.'">'.$yearx.'</option>';
}
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment