/ Published in: PHP
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<php /** * Simple Class Connect */ class Connect { var $host="localhost"; var $dbname="yourdatabase"; var $usuario="userserver"; var $password="passwordserver"; var $link; var $unlink; function onServer() { } function offServer() { } } $var = new Connect(); $var->onServer(); echo 'run your queries here'; $var->offServer(); ?>