/ Published in: PHP
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<?php class dbconnect { function Connect($DBHOST, $DBUSER, $DBPASS, $THEDB){ }//ends the connection function function Close(){ }//ends the close function function FetchRow($query){ return $rows; } function FetchArray($query){ return $array; } function FetchObject($query){ return $array; } function FetchNum($query){ return $num; } function Query($sql){ return $query; }//ends the query function }//ends the class ?>