PHP code

<?php
include "sql_and_php_debug_with_anticheat.php";
mysql_connect("localhost""level29""yTP4tEp2BYo8y/fyhH5Kww==");
mysql_select_db("level29");

?>
<h1>United Raw Shop SQL</h1>
Same task as level 28, but now you don't see the table on the right.<br/>
You need to have 'label' and 'description' columns in the response (how to use UNION?)
<?php
if (empty($_GET['query'])) {
  
debug_mysql_query("SELECT table_schema, table_name, table_rows FROM information_schema.tables WHERE table_schema != 'information_schema'");
  
debug_mysql_query("SELECT table_name, column_name FROM information_schema.columns WHERE table_schema != 'information_schema'");
?>
<h2>Enter some SQL query:</h2>
<form method="GET" id="form">Find: <input type="text" name="query" id="query" size=60 value="<?php echo isset($_GET['query']) ? htmlspecialchars($_GET['query']) : "SELECT * FROM products"?>" /> <input type="submit" value="Find &raquo;" />
<input type="hidden" name="sig_query" id="sig_query" /></form>
<?php
} else {
?>
<h2>SQL results</h2>
<a href='?'>&laquo; back</a><p/>
<?php
  $res 
debug_mysql_query($_GET['query']);
  while (
$row mysql_fetch_assoc($res)) {
    echo 
"<h3>$row[label]</h3><p/>$row[description]<br/><br/>";
  }
}
SQL debug

United Raw Shop SQL

Same task as level 28, but now you don't see the table on the right.
You need to have 'label' and 'description' columns in the response (how to use UNION?)

Enter some SQL query:

Find: