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 MySql Query Result as an Email
If you are working on a big mysql query and want to get the mysql query as email when it finishes use the below trick. Go to mysql command:Set pager directive: mysql> pager mail -s “subject” emailme@domain.comPAGER set to ‘mail’ -s “subject” emailme@domain.com The trick uses pager directive to redirect the query output result to […]
How to use Google map Address in PHP
Let’s Start, First we Getting latitude and longitude from Address in Google Maps Using PHP. The script is given below. Google map Address in PHP In Above code, we just pass the latitude and longitude point (,). See $Lat for latitude and $Lon for longitude . In script code iset the zoom level to 5 […]
How to Detect a Adblock on Website or Blog and Show Pop up Message
Many people these are installing plugins like Adblock to block ads on the websites/blog and for few People earning from Ads are the main income stream, so today I found this below script where it can detect whether the user has installed Adblock any other plugins which are not displaying Ads on the website and […]