This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| // Connection data (server_address, database, name, poassword) | |
| $hostdb = 'localhost'; | |
| $namedb = 'test'; | |
| $userdb = 'root'; | |
| $passdb = ''; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!doctype html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8"/> | |
| <title></title> | |
| <link rel="stylesheet" media="all" href="style.css"/> | |
| <link rel="stylesheet" media="all" href="lessframwork4.css"/> | |
| <meta name="viewport" content="width=device-width, initial-scale=1"/> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <script> | |
| function Submit(){ | |
| var emailRegex = /^[A-Za-z0-9._]*\@[A-Za-z]*\.[A-Za-z]{2,5}$/; | |
| var fname = document.form.Name.value, | |
| lname = document.form.LastName.value, | |
| femail = document.form.Email.value, | |
| freemail = document.form.enterEmail.value, | |
| fpassword = document.form.Password.value, | |
| fmonth = document.form.birthday_month.value, | |
| fday = document.form.birthday_day.value, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| class myClass | |
| { | |
| public $db = ''; | |
| private $host = 'localhost'; | |
| private $dbname = 'card'; | |
| private $dbuser = 'root'; | |
| private $dbpass = ''; | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * DB Class | |
| */ | |
| class DB | |
| { | |
| public $db = ''; | |
| private $host = 'localhost'; | |
| private $dbname = 'card'; | |
| private $dbuser = 'root'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| //DB Config | |
| date_default_timezone_set('Asia/Dhaka'); | |
| $db=new PDO('mysql:host=localhost;dbname=dbname;charset=utf8','root','pass'); | |
| //Site Url | |
| $siteUrl = "http://localhost/fdfdf"; | |
| ?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| try{ | |
| date_default_timezone_set('Asia/Dhaka'); | |
| $db = new PDO('mysql:host=localhost;dbname=dbname;charset=utf8','root','pass'); | |
| } | |
| catch(Exception $e){ | |
| var_dump($e); // Change it With Error Text | |
| die(); | |
| } | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| try { | |
| $pdo = new PDO( | |
| 'mysql:host=localhost;dbname=test_database', | |
| 'username', | |
| 'password', | |
| array( | |
| PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION, | |
| PDO::MYSQL_ATTR_INIT_COMMAND => 'SET NAMES utf8' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| class CRUD { | |
| private $DB; | |
| public function __set($name, $v) { | |
| switch ($name) { | |
| case 'username': | |
| $this->username = $v; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * DB Class | |
| */ | |
| class DB | |
| { | |
| public $db = ''; | |
| private $host = 'localhost'; | |
| private $dbname = 'test'; | |
| private $dbuser = 'root'; |
OlderNewer