Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $conexao = mysql_connect('localhost','root','');
- if($conexao == false) {
- die ("Não foi possível conectar ao mysql");
- } else {
- $selectBD = mysql_select_db("agenda",$conexao);
- if ($selectBD == false) {
- die ("Erro:não conseguiu selecionar a base de dados!");
- }
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement