Suggest a feature
×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: Text
Posted by: Francesco St
Added: Feb 3, 2018 8:17 PM
Views: 9
create class that stores access data
  1. <?php
  2. class dba
  3.     {
  4.    
  5.     private $usr = "u821341206_vbrdb";
  6.     private $pwd = "vrbroker92DB";
  7.    
  8. public function getPwd()
  9. {
  10.     return $this->pwd;
  11. }
  12.  
  13. public function setPwd($pwd)
  14. {
  15.     $this->pwd = $pwd;
  16. }
  17.  
  18. public function getUsr()
  19.  {
  20.     return $this->usr;
  21. }
  22.  
  23. public function setUsr($usr)
  24. {
  25.     $this->usr = $usr;
  26. }
  27.  
  28.  
  29.     }
  30.  
  31. ?>