Public paste
asdDASD
By: Xmoo | Date: Apr 11 2011 20:03 | Format: PHP | Expires: never | Size: 395 B | Hits: 506

  1. $iou=mysql_query("SELECT * FROM my_training_diff ORDER BY difficulty ASC") or die(mysql_error());
  2.                                         while($info= mysql_fetch_object($iou))      
  3.                                                 { $id = $info->id;
  4.                                                   $difficulty = $info->difficulty;
  5.                 if($id == $diff){                                        
  6.                 echo "<option value='".$id."' SELECTED>".$difficulty."</option>";  } else {
  7.                 echo "<option value='".$id."'>".$difficulty."</option>";       
  8.                 } }
Latest pastes
3 days ago
15 days ago
20 days ago
22 days ago
23 days ago