Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class isdu
- {
- private $host = "localhost";
- private $user = "root";
- private $pass = "";
- private $db = "laboratory";
- function __construct()
- {
- $this->link = mysql_connect("$this->host","$this->user","$this->pass") or die (mysql_error());
- $this->select = mysql_select_db($this->db, $this->link) or die (mysql_error());
- if (!$this->link)
- {
- echo "neprisijungta";
- }
- }
- function __destruct()
- {
- mysql_close($this->link);
- if (!$this->link)
- {
- echo "neprisijungta";
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement