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 6165649
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T22:12:11+00:00 2026-05-23T22:12:11+00:00

I have 3 vars, which are forwarded by php (index.php?a=v1&&b=v6&&c=v10) Now I want to

  • 0

I have 3 vars, which are forwarded by php (index.php?a=v1&&b=v6&&c=v10)

Now I want to echo a text (from mysql) by these specific vars.

mysql-table:

index.php?a=v1&&b=v6&&c=v10

    id | 1
    variable1 | "v1"
    variable2 | "v6"
    variable3 | "v10"
    text | "this is the text for v1&v6&v10"

index.php?a=v3&&b=v8&&c=v12

    id | 2
    variable1 | "v3"
    variable2 | "v8"
    variable3 | "v12"
    text | "this is the text for v3&v8&v12"

what is the mysql-query?

$query = "SELECT * FROM text_table WHERE ???;";
  • 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-23T22:12:11+00:00Added an answer on May 23, 2026 at 10:12 pm
    <a href="index.php?a=v1&b=v6&c=v10">Link 1</a>
    
    <?php 
    
    if(isset($_GET)){
        foreach($_GET as $key=>$value){
            if(get_magic_quotes_gpc()) {
                $value=stripslashes($value);
            }
            $_GET[$key]=mysql_real_escape_string($value);
        }
    }
    
    $query = mysql_query('SELECT *
                            FROM my_table 
                            WHERE a LIKE '.$_GET['a'].' 
                            AND b LIKE '.$_GET['b'].' 
                            AND c LIKE '.$_GET['c']);
    
    if(mysql_num_rows($query)>=1){
        while($row=mysql_fetch_assoc($query)){
            $a = $row['a'];
            $b = $row['b'];
            $c = $row['c'];
            echo "This is the text for {$a}&{$b}&{$c}";
        }
    }else{
        echo 'No results';
    }
    
    ?>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have these rewriteRules which work fine: # 4 params RewriteRule ^([A-Za-z0-9-]+)/([A-Za-z0-9-]+)/([A-Za-z0-9-]+)/([A-Za-z0-9-]+)/?$ index.php?app=$1&do=$2&what=$3&id=$4 [NC,L,QSA]
I have a MySQL query which gets including some vars like that: messages TABLE
I have the following URLS which I need to rewrite: product.php?iata=TV&product=12345 to product/Televison/TV/Sony-Bravia/12345 and
In a header file i have which is populated by PHP: <script type=text/javascript> var
I have an external file with some vars to require in my php class
I have a PHP script on a server <?php // retrieve POST vars $comment
Say I have http://www.mysite.com/index.php?=332 Is it possible to retrieve the string after ?= using
i have a function (below) which is used in my mysql abstraction class and
I have a mysql server which is occasionly returns the 'too many connections' error.
i have bookings table which has two people- i want to return person_1 as

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.