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 Answer