Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?PHP
- $user_name = "root";
- $password = "ZENSIERT";
- $database = "ZENSIERT";
- $server = "localhost";
- $db_handle = mysql_connect($server, $user_name, $password);
- $db_found = mysql_select_db($database, $db_handle);
- if ($db_found) {
- $SQL = "SELECT * FROM accounts where username =''";
- $result = mysql_query($SQL);
- while ( $db_field = mysql_fetch_assoc($result) ) {
- print $db_field['eMail'];
- }
- mysql_close($db_handle);
- }
- else {
- print "Database NOT Found ";
- mysql_close($db_handle);
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement