Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4010106
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T08:57:33+00:00 2026-05-20T08:57:33+00:00

I have a search engine and im trying to open every result in a

  • 0

I have a search engine and im trying to open every result in a new window and am not sure what would be the best way to do it. on my search result page “search.php” I am using

$go = "go.php?url=";
print "<a href='".$go."".($row['id'])."' title='".($row['title'])."' rel='nofollow' target='_blank'>".html_entity_decode($row['title'])."</a>";

which would take you to a page like http://website.com/go.php?url=37290

37290 would be the row id and now I have to query it so I can get all the rest of the info and I am having trouble. I know this is really easy but any help would be much appreciated.

on go.php I am using this right now just to show that im grabbing the id from url=37290

<?php print $_GET['url']?>

which obviously prints out 37290 but now I need to query that id in the db and fetch the extra db info.

I need to fetch link_id, title, and url

What would be a good way to do this?
Thanks.

EDIT:
i would need a query like

select link_id, title, url from search1_links

I hope that shows my db structure better. The db is name is data1

I assuming I need something like

if ($_GET['url']){

sql query stuff here.
}

EDIT:

My main problem is I cannot figure out how to make a query with $_GET[‘url’]
url is the id
I can do the sql I just need to know how to make a query with the id $_GET[‘url’] gives me.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T08:57:34+00:00Added an answer on May 20, 2026 at 8:57 am

    Based on your comments, I would do something like:

    $id = isset($_GET['url']) ? ((int) $_GET['url']) : NULL;
    if (!empty($id))
    {
      $sql = "SELECT title FROM some_table WHERE link_id = $id";
      // etc.
    }
    else
    {
      // some error message and exit
    }
    

    Although I really would use PDO, but that´s another story.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have been trying to create a new google custom search engine, but when
I have a custom search engine on a non-wordpress page. This search engine searches
Which search engine would you recommend for a Commerce website? We have millions of
I have asked What should i know about search engine crawling? Now i would
i have been messing around with a search engine and i am trying to
I am trying to develop a complex textual search engine. I have thousands of
In our product we have a generic search engine, and trying to optimze the
I have Sphinx Search installed as my search engine and I'm trying to add
I'm trying to create a search engine for our library. Currently I have table
I have been trying to make this search engine for a MySQL database. Taking

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.