php uri code example
Example 1: if browser url is having query string after domain name in it check using php
$url = $_SERVER['REQUEST_URI'];
if (!strpos($url,'mysql')) {
echo 'No mysql.'; //swapped with other echo statement
} else {
echo 'Mysql exists.';
}
Example 2: how to fetch data from url in php properly
use <?php $_SERVER['REQUEST_URI'] ?> in action"" to get the data properly