Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- namespace SQL;
- $host = "localhost";
- $user = "";
- $pass = "";
- $db = "portal";
- class main {
- mysql_connect( $host, $user, $pass ) or die( "SQL Module error: unable to access host!" );
- mysql_select_db( $db ) or die( "SQL Module error: unable to select database!" );
- function Query( $query ) {
- if ( $query.strlen > 0 ) {
- return mysql_query( $query );
- } else {
- die( "SQL Module error: unable to parse query or query erroneous" );
- }
- }
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement