PHP code

<?php
include "sql_and_php_debug_with_anticheat.php";
mysql_connect("localhost""level28""ltmvJmG74wfqzV80MUcDMQ==");
mysql_select_db("level28");

?>
<h1>Raw Shop SQL</h1>
Try to get field "flag" of table "flag" from the database by hand (how to write SQL?)
<?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

Raw Shop SQL

Try to get field "flag" of table "flag" from the database by hand (how to write SQL?)

Enter some SQL query:

Find: