Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $db_user = "root";
- $db_pass = "";
- $db_host = "localhost";
- $db_name = "clsv1a0";
- $connect = mysql_connect($db_host,$db_user,$db_pass);
- if (!$connect) {
- echo "<script>alert('Não foi possível conectar ao banco de dados MySQL.');</script>";
- } else {
- $db = mysql_select_db($db_name);
- if (!$db) {
- echo "<script>alert('Não foi possível conectar ao banco de dados $db_name.');</script>";
- }
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement