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.

  1. find page address
  2. check if in database
  3. if true return value row
  4. 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

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -