include "db.php";
$query = "SELECT * FROM Reasons";
$result = mysql_query($query);
if(mysql_num_rows($result)) {
while($row = mysql_fetch_assoc($result)){
echo " name='{$row['desc']}' onclick='disable()'>".$row['desc']."
";
}
echo "Other";
}
?>
$reason = $_GET['reason'];
echo $reason;
?>
Related Articles
How to Get Source Code of a Web Page
If you are looking for How to Get Source Code of a Web Page or link then just follow below steps. How To Find A Web Page’s Source Code it easy? Source Code of a Web Page Contents show 1. Source Code of a Web Page 2. Source Code of a Web Page in PHP […]
How to ini_set in PHP
You can initilize local settings in a php file.You can set values like max_execution_time, default_socket_timeout, memory_limit, mysql.connect_timeout, user_ini.cache_ttl, display_errors and log_errorsit always nice to check the errors in PHP files with error_reporting. Below is the sample script to set ini_set values. If you dont want to set every time in PHP script simply set the […]
Javascript Key Codes
Key ==> Code backspace ==> 8 tab ==> 9 enter ==> 13 shift ==> 16 ctrl ==> 17 alt ==> 18 pause/break ==> 19 caps lock ==> 20 escape ==> 27 page up ==> 33 page down ==> 34 end ==> 35 home ==> 36 left arrow ==> 37 up arrow ==> 38 right arrow […]