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 Current Page URL Using PHP
If you would like to know from which page the request has come from using post Method then there is a simple PHP script can solve your issue. Get Current Page URL Using PHP Check below script to Get Current page using PHP function getCurrentURLPage() { $s = empty($_SERVER[“HTTPS”]) ? ”: ($_SERVER[“HTTPS”] == “on”) ? […]
Using For Loop Looping through Alphabets letters
Using For Loop Looping through letters is possible for($i = ‘S’; $i != ‘AC’; $i++) {echo $i.’ ‘;} Note: $i <= ‘AC’ it only works with $i != ‘AC’ Output : S T U V W X Y Z AA AB
How to find duplicate rows in Sql or Mysql
You can find duplicate rows in the mysql table, just use below select query, to find duplicate rows in Oracle, Sql, Mysql, DB2. SELECT columnName, COUNT(*) as countFROM selectedTableGROUP BY columnNameHAVING COUNT(*) > 1; You came from below query:how to find duplicate rows in sql server 2008how to find duplicate rows in sql and deletehow […]