Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- class Access {
- $banco = "dbcliente";
- $pass = "s3nh@1234";
- $user = "Sou@dmyn100";
- $host = "https://phpmyadmin.locaweb.com.br/";
- $table = "cliente";
- var $connection;
- function dbConnect() {
- $this->connection = @mysqli_connect($this->host,$this->user,$this->pass,$this->banco);
- if( ! $this->connection ) {
- die( "Problemas com a conexão." );
- }
- }
- function dbClose() {
- return mysqli_close($this->connection);
- }
- }
- ?>
Add Comment
Please, Sign In to add comment