php - How to create a Mysql Query that returns something in that row and find other questions like it -
i trying create mysql query can put iframe on page on internet , can find page address , check if in database. if must return value other rows have same variable in common.
- find page address
- check if in database
- if true return value row
- find 5 closest rows have same value.
lastly must able turn these variables , display these text in php format.
any appreciated but, realize complex , if have answer of questions here please answer.
i'll take care of first 3 you:
$full_url = "http://$_server[http_host]$_server[request_uri]"; $query = "select url tablewithurl url = '$full_url'"; if ($result = $mysqli->query($query)) { $row = $result->fetch_assoc(); }
Comments
Post a Comment