Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $sDatabase = 'ddaevolution';
- $sDsn = 'mysql:host=217.70.188.223;dbname=ddaevolution';
- $sUser = 'hyperprodda';
- $sPass = 'oihf58463vilfkhn';
- $PDO = new PDO( $sDsn, $sUser, $sPass );
- $PDO->setAttribute( PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION );
- $sQuery = "SHOW tables FROM " . $sDatabase;
- $sResult = $PDO->query($sQuery);
- while ($aTable = $sResult->fetch(PDO::FETCH_ASSOC))
- echo "Table: $aTable\n";
Add Comment
Please, Sign In to add comment