{"id":429,"date":"2015-10-01T14:32:05","date_gmt":"2015-10-01T07:32:05","guid":{"rendered":"http:\/\/devbanban.com\/?p=429"},"modified":"2016-03-14T19:10:22","modified_gmt":"2016-03-14T12:10:22","slug":"workshop-php-oop-%e0%b9%80%e0%b8%9a%e0%b8%b7%e0%b9%89%e0%b8%ad%e0%b8%87%e0%b8%95%e0%b9%89%e0%b8%99","status":"publish","type":"post","link":"https:\/\/devbanban.com\/?p=429","title":{"rendered":"workshop php OOP  \u0e40\u0e1a\u0e37\u0e49\u0e2d\u0e07\u0e15\u0e49\u0e19"},"content":{"rendered":"<p>\u0e43\u0e19 workshop \u0e08\u0e30\u0e1b\u0e23\u0e30\u0e01\u0e2d\u0e1a\u0e44\u0e1b\u0e14\u0e49\u0e27\u0e22\u0e1f\u0e2d\u0e23\u0e4c\u0e21\u0e40\u0e1e\u0e34\u0e48\u0e21 \u0e25\u0e1a \u0e41\u0e01\u0e49\u0e44\u0e02 \u0e40\u0e23\u0e35\u0e22\u0e01\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e21\u0e32\u0e41\u0e2a\u0e14\u0e07\u0e44\u0e14\u0e49 \u0e0b\u0e36\u0e48\u0e07\u0e19\u0e48\u0e32\u0e08\u0e30\u0e40\u0e1b\u0e47\u0e19\u0e1b\u0e23\u0e30\u0e42\u0e22\u0e0a\u0e19\u0e4c\u0e2a\u0e33\u0e2b\u0e23\u0e31\u0e1a\u0e1c\u0e39\u0e49\u0e17\u0e35\u0e48\u0e01\u0e33\u0e25\u0e31\u0e07\u0e28\u0e36\u0e01\u0e29\u0e32\u0e01\u0e32\u0e23\u0e40\u0e02\u0e35\u0e22\u0e19\u0e42\u0e1b\u0e23\u0e41\u0e01\u0e23\u0e21 php OOP<!--more--><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>\u0e10\u0e32\u0e19\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25<\/p>\n<pre class=\"lang:default decode:true \">CREATE DATABASE IF NOT EXISTS `myshop` DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;\r\nUSE `myshop`;\r\n\r\n-- --------------------------------------------------------\r\n\r\n--\r\n-- Table structure for table `categories`\r\n--\r\n\r\nCREATE TABLE IF NOT EXISTS `categories` (\r\n`id` int(11) NOT NULL,\r\n  `name` varchar(256) NOT NULL,\r\n  `created` datetime NOT NULL,\r\n  `modified` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP\r\n) ENGINE=MyISAM AUTO_INCREMENT=4 DEFAULT CHARSET=utf8;\r\n\r\n--\r\n-- Dumping data for table `categories`\r\n--\r\n\r\nINSERT INTO `categories` (`id`, `name`, `created`, `modified`) VALUES\r\n(1, 'Fashion', '2014-06-01 00:35:07', '2014-05-31 02:34:33'),\r\n(2, 'Electronics', '2014-06-01 00:35:07', '2014-05-31 02:34:33'),\r\n(3, 'Motors', '2014-06-01 00:35:07', '2014-05-31 02:34:54');\r\n\r\n-- --------------------------------------------------------\r\n\r\n--\r\n-- Table structure for table `products`\r\n--\r\n\r\nCREATE TABLE IF NOT EXISTS `products` (\r\n`id` int(11) NOT NULL,\r\n  `name` varchar(32) NOT NULL,\r\n  `description` text NOT NULL,\r\n  `price` int(11) NOT NULL,\r\n  `category_id` int(11) NOT NULL,\r\n  `created` datetime NOT NULL,\r\n  `modified` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP\r\n) ENGINE=MyISAM AUTO_INCREMENT=15 DEFAULT CHARSET=utf8;\r\n\r\n--\r\n-- Dumping data for table `products`\r\n--\r\n\r\nINSERT INTO `products` (`id`, `name`, `description`, `price`, `category_id`, `created`, `modified`) VALUES\r\n(1, 'LG P880 4X HD', 'My first awesome phone!', 336, 3, '0000-00-00 00:00:00', '0000-00-00 00:00:00'),\r\n(2, 'Google Nexus 4', 'The most awesome phone of 2013!', 299, 2, '0000-00-00 00:00:00', '0000-00-00 00:00:00'),\r\n(3, 'Samsung Galaxy S4', 'How about no?', 600, 3, '0000-00-00 00:00:00', '0000-00-00 00:00:00'),\r\n(6, 'Bench Shirt', 'The best shirt!', 29, 1, '2014-06-01 01:12:26', '2014-05-31 03:12:21'),\r\n(7, 'Lenovo Laptop', 'My business partner.', 399, 2, '2014-06-01 01:13:45', '2014-05-31 03:13:39'),\r\n(8, 'Samsung Galaxy Tab 10.1', 'Good tablet.', 259, 2, '2014-06-01 01:14:13', '2014-05-31 03:14:08'),\r\n(9, 'Spalding Watch', 'My sports watch.', 199, 1, '2014-06-01 01:18:36', '2014-05-31 03:18:31'),\r\n(10, 'Sony Smart Watch', 'The coolest smart watch!', 300, 2, '2014-06-06 17:10:01', '2014-06-05 19:09:51'),\r\n(11, 'Huawei Y300', 'For testing purposes.', 100, 2, '2014-06-06 17:11:04', '2014-06-05 19:10:54'),\r\n(12, 'Abercrombie Lake Arnold Shirt', 'Perfect as gift!', 60, 1, '2014-06-06 17:12:21', '2014-06-05 19:12:11'),\r\n(13, 'Abercrombie Allen Brook Shirt', 'Cool red shirt!', 70, 1, '2014-06-06 17:12:59', '2014-06-05 19:12:49');<\/pre>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>\u0e40\u0e0a\u0e37\u0e48\u0e2d\u0e21\u0e15\u0e48\u0e2d database<\/p>\n<pre class=\"lang:default decode:true \">&lt;?php\r\nclass Database{\r\n \r\n    \/\/ specify your own database credentials\r\n    private $host = \"localhost\";\r\n    private $db_name = \"myshop\";\r\n    private $username = \"root\";\r\n    private $password = \"123\";\r\n    public $conn;\r\n \r\n    \/\/ get the database connection\r\n    public function getConnection(){\r\n\r\n        $this-&gt;conn = new mysqli\r\n\t\t($this-&gt;host,\r\n\t\t$this-&gt;username, \r\n\t\t$this-&gt;password,\r\n\t\t$this-&gt;db_name);\r\n        if($this-&gt;conn){\r\n            $this-&gt;conn-&gt;set_charset(\"utf8\");\r\n        }\r\n\r\n        return $this-&gt;conn;\r\n    }\r\n}\r\n?&gt;<\/pre>\n<p>\u0e04\u0e25\u0e32\u0e2a\u00a0product<\/p>\n<pre class=\"lang:default decode:true \">&lt;?php\r\nclass product{\r\n    private $conn;\r\n \r\n    \/\/ object properties\r\n    public $id;\r\n    public $name;\r\n    public $price;\r\n    public $description;\r\n    public $category_id;\r\n    public $timestamp;\r\n \r\n    public function __construct($db){\r\n        $this-&gt;conn = $db;\r\n    }\r\n \r\n    function readAll(){\r\n        $query = \"SELECT id, name, description, price, category_id\r\n                FROM products\r\n                ORDER BY name ASC\";\r\n\r\n        $result = $this-&gt;conn-&gt;query($query);\r\n        return $result;\r\n    }\r\n\r\n    function readOne(){\r\n        $query = \"SELECT name, price, description, category_id\r\n                FROM products\r\n                WHERE id =  \" . $this-&gt;id ;\r\n\r\n        $result = $this-&gt;conn-&gt;query($query);\r\n        $row = $result-&gt;fetch_array();      \r\n        $this-&gt;name = $row['name'];\r\n        $this-&gt;price = $row['price'];\r\n        $this-&gt;description = $row['description'];\r\n        $this-&gt;category_id = $row['category_id'];\r\n    }\r\n\r\n    \/\/ create products\r\n    function create(){\r\n        \/\/ to get time-stamp for 'created' field\r\n        $this-&gt;getTimestamp();\r\n        \/\/write query\r\n        $query = \"INSERT INTO products(name, price, description, category_id, created) VALUES ('\" . $this-&gt;name. \"', '\" . $this-&gt;price. \"', '\" . $this-&gt;description. \"', '\" . $this-&gt;category_id. \"', '\" . $this-&gt;timestamp. \"' )\";\r\n        if($this-&gt;conn-&gt;query($query)){\r\n            return true;\r\n        }else{\r\n            return false;\r\n        }\r\n    }\r\n\t\r\n   \/\/ used for the 'created' field when creating a products\r\n    function getTimestamp(){\r\n        date_default_timezone_set('Asia\/Bangkok');\r\n        $this-&gt;timestamp = date('Y-m-d H:i:s');\r\n    } \r\n\r\n    function update(){\r\n        $query = \"UPDATE products\r\n                SET\r\n                    name = '\" . $this-&gt;name . \"',\r\n                    price = '\" . $this-&gt;price . \"',\r\n                    description = '\" . $this-&gt;description . \"',\r\n                    category_id  = '\" . $this-&gt;category_id . \"'\r\n                    WHERE id = '\" . $this-&gt;id . \"'\";\r\n     \r\n        if($this-&gt;conn-&gt;query($query)){    \r\n            return true;\r\n           \r\n        }else{\r\n            return false;\r\n        }\r\n    }\r\n\r\n    \/\/ delete the products\r\n    function delete(){\r\n        $query = \"DELETE FROM products WHERE id = '\" . $this-&gt;id . \"'\";\r\n     \r\n        if($this-&gt;conn-&gt;query($query)){    \r\n            return true;\r\n        }else{\r\n            return false;\r\n        }\r\n    }\r\n}\r\n\r\n?&gt;<\/pre>\n<p>\u0e04\u0e25\u0e32\u0e2a Category<\/p>\n<pre class=\"lang:default decode:true \">&lt;?php\r\nclass Category{\r\n\tprivate $conn;\r\n\t\/\/ object properties\r\n\tpublic $id;\r\n\tpublic $name;\r\n\t\r\n\tfunction __construct($db){\r\n\t\t$this-&gt;conn = $db;\r\n\t}\r\n\t\r\n\tfunction readName(){\r\n\t\t$query = \"SELECT name FROM categories\r\n                WHERE id =  \" . $this-&gt;id ;\r\n\t\t$result = $this-&gt;conn-&gt;query($query);\r\n        $row = $result-&gt;fetch_array();      \r\n        $this-&gt;name = $row['name'];\t\t\r\n\t}\r\n\t\r\n\t    function readAll(){\r\n\t\t\t$query = \"SELECT id, name\r\n\t\t\t\t\tFROM categories\r\n\t\t\t\t\tORDER BY name ASC\";\r\n\t\r\n\t\t\t$result = $this-&gt;conn-&gt;query($query);\r\n\t\t\treturn $result;\r\n\t\t}\r\n}\r\n?&gt;<\/pre>\n<p>&nbsp;<\/p>\n<p>\u0e2b\u0e19\u0e49\u0e32\u0e41\u0e23\u0e01<\/p>\n<pre class=\"lang:default decode:true \">&lt;?php\r\n$page_title = \"Read Products\";\r\ninclude_once \"header.php\";\r\n?&gt;\r\n&lt;?php\r\ninclude_once 'config\/database.php';\r\ninclude_once 'product.php';\r\ninclude_once 'category.php';\r\n\/\/ instantiate database and product object\r\n$database = new Database();\r\n$db = $database-&gt;getConnection();\r\n\/\/query product\r\n$product = new Product($db);\r\n$result = $product-&gt;readAll();\r\n$num = $result-&gt;num_rows;\r\n\/\/ display the products if there are any\r\nif($num&gt;0){\r\n$cate = new Category($db);\r\necho\"&lt;h3 align='center'&gt;&lt;a href='create_product.php'&gt;  ADD  &lt;\/a&gt; &lt;\/h3&gt;\";\r\necho \"&lt;table class='table table-hover table-responsive table-bordered'&gt;\";\r\necho \"&lt;tr&gt;&lt;th&gt;Product&lt;\/th&gt;&lt;th&gt;Price&lt;\/th&gt;&lt;th&gt;Description&lt;\/th&gt; &lt;th&gt;Category&lt;\/th&gt;&lt;th&gt;Actions&lt;\/th&gt;&lt;\/tr&gt;\";\r\nwhile($row = $result-&gt;fetch_array()) {\r\nextract($row);\r\necho \"&lt;tr&gt;\";\r\necho \"&lt;td&gt;{$name}&lt;\/td&gt;&lt;td&gt;{$price}&lt;\/td&gt;&lt;td&gt;{$description}&lt;\/td&gt;\"; echo \"&lt;td&gt;\";\r\n$cate-&gt;id = $category_id;\r\n$cate-&gt;readName();\r\necho $cate-&gt;name; \r\necho \"&lt;\/td&gt;\";\r\necho \"&lt;td&gt;\";\r\necho \"&lt;a href='update_product.php?id={$id}'&gt;Edit&lt;\/a&gt; \/ \";\r\necho \"&lt;a href='delete_product.php?id={$id}' onclick='del({$id})'&gt;del&lt;\/a&gt;\";\r\necho \"&lt;\/td&gt;\";\r\necho \"&lt;\/tr&gt;\"; \r\n}\r\necho \"&lt;\/table&gt;\";\r\n}\r\nelse{\r\necho \"&lt;div&gt;No products found.&lt;\/div&gt;\";\r\n}\r\n\r\ninclude_once \"footer.php\";\r\n?&gt;<\/pre>\n<p>\u0e1f\u0e2d\u0e23\u0e4c\u0e21\u0e40\u0e1e\u0e34\u0e48\u0e21\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25<\/p>\n<pre class=\"lang:default decode:true \">&lt;?php\r\n\/\/ set page headers\r\n$page_title = \"Create Product\";\r\ninclude_once \"header.php\";\r\n\r\necho \"&lt;div class='right-button-margin'&gt;\";\r\n    echo \"&lt;a href='index.php' class='btn btn-default pull-right'&gt;Read Products&lt;\/a&gt;\";\r\necho \"&lt;\/div&gt;\";\r\n\r\n\/\/ get database connection\r\ninclude_once 'config\/database.php';\r\n$database = new Database();\r\n$db = $database-&gt;getConnection();\r\n\r\n\/\/ if the form was submitted\r\nif($_POST){\r\n    \/\/ instantiate product object\r\n    include_once 'objects\/product.php';\r\n    $product = new Product($db);\r\n    \/\/ set product property values\r\n    $product-&gt;name = $_POST['name'];\r\n    $product-&gt;price = $_POST['price'];\r\n    $product-&gt;description = $_POST['description'];\r\n    $product-&gt;category_id = $_POST['category_id'];\r\n \r\n    \/\/ create the product\r\n    if($product-&gt;create()){\r\n        echo \"&lt;div class=\\\"alert alert-success alert-dismissable\\\"&gt;\";\r\n            echo \"&lt;button type=\\\"button\\\" class=\\\"close\\\" data-dismiss=\\\"alert\\\" aria-hidden=\\\"true\\\"&gt;&amp;times;&lt;\/button&gt;\";\r\n            echo \"Product was created.\";\r\n        echo \"&lt;\/div&gt;\";\r\n    }\r\n \r\n    \/\/ if unable to create the product, tell the user\r\n    else{\r\n        echo \"&lt;div class=\\\"alert alert-danger alert-dismissable\\\"&gt;\";\r\n            echo \"&lt;button type=\\\"button\\\" class=\\\"close\\\" data-dismiss=\\\"alert\\\" aria-hidden=\\\"true\\\"&gt;&amp;times;&lt;\/button&gt;\";\r\n            echo \"Unable to create product.\";\r\n        echo \"&lt;\/div&gt;\";\r\n    }\r\n}\r\n?&gt;\r\n&lt;!-- HTML form for creating a product --&gt;\r\n&lt;form action='create_product.php' method='post'&gt;\r\n    &lt;table class='table table-hover table-responsive table-bordered'&gt;\r\n        &lt;tr&gt;\r\n          &lt;td&gt;Name&lt;\/td&gt;\r\n          &lt;td&gt;&lt;input type='text' name='name' class='form-control' required&gt;&lt;\/td&gt;\r\n        &lt;\/tr&gt;\r\n        &lt;tr&gt;\r\n          &lt;td&gt;Price&lt;\/td&gt;\r\n          &lt;td&gt;&lt;input type='text' name='price' class='form-control' required&gt;&lt;\/td&gt;\r\n        &lt;\/tr&gt;\r\n        &lt;tr&gt;\r\n          &lt;td&gt;Description&lt;\/td&gt;\r\n         &lt;td&gt;&lt;textarea name='description' class='form-control'&gt;&lt;\/textarea&gt;&lt;\/td&gt;\r\n        &lt;\/tr&gt;\r\n        &lt;tr&gt;\r\n            &lt;td&gt;Category&lt;\/td&gt;\r\n            &lt;td&gt;\r\n            &lt;!-- categories from database will be here --&gt;\r\n            &lt;?php\r\n\t\t\t    \/\/ read the product categories from the database\r\n\t\t\t    include_once 'objects\/category.php';\r\n\t\t\t    $category = new Category($db);\r\n\t\t\t    $result = $category-&gt;readAll();\r\n\t\t\t    \/\/ put them in a select drop-down\r\n\t\t\t    echo \"&lt;select class='form-control' name='category_id'&gt;\";\r\n\t\t\t        echo \"&lt;option&gt;Select category...&lt;\/option&gt;\";\r\n                    while($row_category = $result-&gt;fetch_array()) {\r\n\t\t\t            echo \"&lt;option value='{$row_category[id]}'&gt;{$row_category[name]}&lt;\/option&gt;\";\r\n\t\t\t        }\r\n\t\t\t    echo \"&lt;\/select&gt;\";\r\n\t\t\t    ?&gt;\r\n            &lt;\/td&gt;\r\n        &lt;\/tr&gt;\r\n \r\n        &lt;tr&gt;\r\n            &lt;td&gt;&lt;\/td&gt;\r\n            &lt;td&gt;\r\n                &lt;button type=\"submit\" class=\"btn btn-primary\"&gt;Create&lt;\/button&gt;\r\n            &lt;\/td&gt;\r\n        &lt;\/tr&gt;\r\n \r\n    &lt;\/table&gt;\r\n&lt;\/form&gt;\r\n\r\n&lt;?php\r\ninclude_once \"footer.php\";\r\n?&gt;<\/pre>\n<p>&nbsp;<\/p>\n<p>\u0e1f\u0e2d\u0e23\u0e4c\u0e21\u0e41\u0e01\u0e49\u0e44\u0e02\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25<\/p>\n<pre class=\"lang:default decode:true \">&lt;?php\r\n$page_title = \"Update Product\";\r\ninclude_once \"header.php\";\r\n\r\necho \"&lt;div class='right-button-margin'&gt;\";\r\n    echo \"&lt;a href='index.php' class='btn btn-default pull-right'&gt;Read Products&lt;\/a&gt;\";\r\necho \"&lt;\/div&gt;\";\r\n\r\n\/\/ get ID of the product to be edited\r\n$id = isset($_GET['id']) ? $_GET['id'] : die('ERROR: missing ID.');\r\n \r\n\/\/ include database and object files\r\ninclude_once 'config\/database.php';\r\ninclude_once 'objects\/product.php';\r\n \r\n\/\/ get database connection\r\n$database = new Database();\r\n$db = $database-&gt;getConnection();\r\n \r\n\/\/ prepare product object\r\n$product = new Product($db);\r\n \r\n\/\/ set ID property of product to be edited\r\n$product-&gt;id = $id;\r\n \r\n\/\/ read the details of product to be edited\r\n$product-&gt;readOne();\r\n\r\n?&gt;\r\n\r\n&lt;?php\r\n\/\/ if the form was submitted\r\nif($_POST){\r\n \r\n    \/\/ set product property values\r\n    $product-&gt;name = $_POST['name'];\r\n    $product-&gt;price = $_POST['price'];\r\n    $product-&gt;description = $_POST['description'];\r\n    $product-&gt;category_id = $_POST['category_id'];\r\n \r\n    \/\/ update the product\r\n    if($product-&gt;update()){\r\n        echo \"&lt;div class=\\\"alert alert-success alert-dismissable\\\"&gt;\";\r\n            echo \"&lt;button type=\\\"button\\\" class=\\\"close\\\" data-dismiss=\\\"alert\\\" aria-hidden=\\\"true\\\"&gt;&amp;times;&lt;\/button&gt;\";\r\n            \r\n                echo \"&lt;script&gt;\";    \r\n                echo \"window.location = 'index.php' \";\r\n            echo \"&lt;\/script&gt;\";\r\n\r\n        echo \"&lt;\/div&gt;\";\r\n    }\r\n \r\n    \/\/ if unable to update the product, tell the user\r\n    else{\r\n        echo \"&lt;div class=\\\"alert alert-danger alert-dismissable\\\"&gt;\";\r\n            echo \"&lt;button type=\\\"button\\\" class=\\\"close\\\" data-dismiss=\\\"alert\\\" aria-hidden=\\\"true\\\"&gt;&amp;times;&lt;\/button&gt;\";\r\n            echo \"Unable to update product.\";\r\n        echo \"&lt;\/div&gt;\";\r\n    }\r\n}\r\n?&gt;\r\n\r\n&lt;form action='update_product.php?id=&lt;?php echo $id; ?&gt;' method='post'&gt;\r\n \r\n    &lt;table class='table table-hover table-responsive table-bordered'&gt;\r\n        &lt;tr&gt;\r\n            &lt;td&gt;Name&lt;\/td&gt;\r\n            &lt;td&gt;&lt;input type='text' name='name' value='&lt;?php echo $product-&gt;name; ?&gt;' class='form-control' required&gt;&lt;\/td&gt;\r\n        &lt;\/tr&gt;\r\n        &lt;tr&gt;\r\n            &lt;td&gt;Price&lt;\/td&gt;\r\n            &lt;td&gt;&lt;input type='text' name='price' value='&lt;?php echo $product-&gt;price; ?&gt;' class='form-control' required&gt;&lt;\/td&gt;\r\n        &lt;\/tr&gt;\r\n        &lt;tr&gt;\r\n            &lt;td&gt;Description&lt;\/td&gt;\r\n            &lt;td&gt;&lt;textarea name='description' class='form-control'&gt;&lt;?php echo $product-&gt;description; ?&gt;&lt;\/textarea&gt;&lt;\/td&gt;\r\n        &lt;\/tr&gt;\r\n        &lt;tr&gt;\r\n            &lt;td&gt;Category&lt;\/td&gt;\r\n            &lt;td&gt;\r\n                &lt;!-- categories select drop-down will be here --&gt;\r\n                &lt;?php\r\n\t\t\t        \/\/ read the product categories from the database\r\n\t\t\t        include_once 'objects\/category.php';\r\n\t\t\t \r\n\t\t\t        $category = new Category($db);\r\n\t\t\t        $result = $category-&gt;readAll();\r\n\t\t\t \r\n\t\t\t        \/\/ put them in a select drop-down\r\n\t\t\t        echo \"&lt;select class='form-control' name='category_id'&gt;\";\r\n\t\t\t \r\n\t\t\t            echo \"&lt;option&gt;Please select...&lt;\/option&gt;\";\r\n                        while($row_category = $result-&gt;fetch_array()) {    \r\n\t\t\t                if($product-&gt;category_id==$row_category[id]){\r\n\t\t\t                    echo \"&lt;option value='$row_category[id]' selected&gt;\";\r\n\t\t\t                }else{\r\n\t\t\t                    echo \"&lt;option value='$row_category[id]'&gt;\";\r\n\t\t\t                }\r\n\t\t\t                echo \"$row_category[name]&lt;\/option&gt;\";\r\n\t\t\t            }\r\n\t\t\t        echo \"&lt;\/select&gt;\";\r\n\t\t\t        ?&gt;\r\n            &lt;\/td&gt;\r\n        &lt;\/tr&gt;\r\n \r\n        &lt;tr&gt;\r\n            &lt;td&gt;&lt;\/td&gt;\r\n            &lt;td&gt;\r\n                &lt;button type=\"submit\" class=\"btn btn-primary\"&gt;Update&lt;\/button&gt;\r\n            &lt;\/td&gt;\r\n        &lt;\/tr&gt;\r\n \r\n    &lt;\/table&gt;\r\n&lt;\/form&gt;<\/pre>\n<p>&nbsp;<\/p>\n<p>\u0e44\u0e1f\u0e25\u0e4c\u0e25\u0e1a\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25<\/p>\n<pre class=\"lang:default decode:true \">&lt;?php\r\n    \/\/ include database and object file\r\n    include_once 'database.php';\r\n    include_once 'product.php';\r\n    \/\/ get database connection\r\n    $database = new Database();\r\n    $db = $database-&gt;getConnection();\r\n    $product = new Product($db);\r\n \r\n    \/\/ set product id to be deleted\r\n    $product-&gt;id = $_GET['id'];\r\n    \/\/ delete the product\r\n    if($product-&gt;delete()){\r\n        $msg = \"Object was deleted.\";\r\n    }\r\n    else{\r\n        $msg = \"Unable to delete object.\";\r\n    }\r\n?&gt;\r\n&lt;script&gt;\t\r\n\talert(\"&lt;?php echo $msg ?&gt;\");\r\n\twindow.location = \"index.php\";\r\n&lt;\/script&gt;<\/pre>\n<p>\u0e15\u0e31\u0e27\u0e2d\u0e22\u0e48\u0e32\u0e07\u0e2b\u0e19\u0e49\u0e32\u0e42\u0e1b\u0e23\u0e41\u0e01\u0e23\u0e21<\/p>\n<p><a href=\"https:\/\/i0.wp.com\/devbanban.com\/wp-content\/uploads\/2015\/10\/cats.jpg\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"lazy alignleft size-large wp-image-430\" src=\"https:\/\/i0.wp.com\/devbanban.com\/wp-content\/plugins\/wp-images-lazy-loading\/images\/grey.gif?resize=640%2C198&#038;ssl=1\" data-original=\"http:\/\/devbanban.com\/wp-content\/uploads\/2015\/10\/cats-1024x316.jpg\" alt=\"cats\" width=\"640\" height=\"198\" \/><noscript><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"alignleft size-large wp-image-430\" src=\"https:\/\/i0.wp.com\/devbanban.com\/wp-content\/uploads\/2015\/10\/cats-1024x316.jpg?resize=640%2C198\" alt=\"cats\" width=\"640\" height=\"198\" srcset=\"https:\/\/i0.wp.com\/devbanban.com\/wp-content\/uploads\/2015\/10\/cats.jpg?resize=1024%2C316&amp;ssl=1 1024w, https:\/\/i0.wp.com\/devbanban.com\/wp-content\/uploads\/2015\/10\/cats.jpg?resize=300%2C93&amp;ssl=1 300w, https:\/\/i0.wp.com\/devbanban.com\/wp-content\/uploads\/2015\/10\/cats.jpg?w=1198&amp;ssl=1 1198w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/noscript><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0e43\u0e19 workshop \u0e08\u0e30\u0e1b\u0e23\u0e30\u0e01\u0e2d\u0e1a\u0e44\u0e1b\u0e14\u0e49\u0e27\u0e22\u0e1f\u0e2d\u0e23\u0e4c\u0e21\u0e40\u0e1e\u0e34\u0e48\u0e21 \u0e25\u0e1a \u0e41\u0e01\u0e49\u0e44\u0e02 \u0e40\u0e23\u0e35\u0e22\u0e01\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e21\u0e32\u0e41\u0e2a\u0e14\u0e07\u0e44\u0e14\u0e49 \u0e0b\u0e36\u0e48\u0e07\u0e19\u0e48\u0e32\u0e08\u0e30\u0e40\u0e1b\u0e47\u0e19\u0e1b\u0e23\u0e30\u0e42\u0e22\u0e0a\u0e19\u0e4c\u0e2a\u0e33\u0e2b\u0e23\u0e31\u0e1a\u0e1c\u0e39\u0e49\u0e17\u0e35\u0e48\u0e01\u0e33\u0e25\u0e31\u0e07\u0e28\u0e36\u0e01\u0e29\u0e32\u0e01\u0e32\u0e23\u0e40\u0e02\u0e35\u0e22\u0e19\u0e42\u0e1b\u0e23\u0e41\u0e01\u0e23\u0e21 php OOP<\/p>\n","protected":false},"author":1,"featured_media":152,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[15],"tags":[8,21,24,25,42,16,17,31,19,22],"class_list":["post-429","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-php","tag-database","tag-delete","tag-form","tag-insert","tag-oop","tag-php","tag-query","tag-select","tag-sql","tag-upload-file"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.2 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>workshop php OOP \u0e40\u0e1a\u0e37\u0e49\u0e2d\u0e07\u0e15\u0e49\u0e19 - \u0e2a\u0e2d\u0e19\u0e2a\u0e23\u0e49\u0e32\u0e07\u0e40\u0e27\u0e47\u0e1a\u0e44\u0e0b\u0e15\u0e4c\u0e1f\u0e23\u0e35 [PHP, SQL, Codeigniter, Bootstrap, HTML]<\/title>\n<meta name=\"description\" content=\"PHP OOP \u0e40\u0e1a\u0e37\u0e49\u0e2d\u0e07\u0e15\u0e49\u0e19\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/devbanban.com\/?p=429\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:title\" content=\"workshop php OOP \u0e40\u0e1a\u0e37\u0e49\u0e2d\u0e07\u0e15\u0e49\u0e19 - \u0e2a\u0e2d\u0e19\u0e2a\u0e23\u0e49\u0e32\u0e07\u0e40\u0e27\u0e47\u0e1a\u0e44\u0e0b\u0e15\u0e4c\u0e1f\u0e23\u0e35 [PHP, SQL, Codeigniter, Bootstrap, HTML]\" \/>\n<meta name=\"twitter:description\" content=\"PHP OOP \u0e40\u0e1a\u0e37\u0e49\u0e2d\u0e07\u0e15\u0e49\u0e19\" \/>\n<meta name=\"twitter:image\" content=\"https:\/\/i0.wp.com\/devbanban.com\/wp-content\/uploads\/2015\/05\/php_devbanban.jpg?fit=200%2C100&ssl=1\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u0e1e\u0e34\u0e28\u0e34\u0e29\u0e10\u0e4c \u0e1a\u0e27\u0e23\u0e40\u0e25\u0e34\u0e28\u0e2a\u0e38\u0e18\u0e35\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"10 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/devbanban.com\/?p=429#article\",\"isPartOf\":{\"@id\":\"https:\/\/devbanban.com\/?p=429\"},\"author\":{\"name\":\"\u0e1e\u0e34\u0e28\u0e34\u0e29\u0e10\u0e4c \u0e1a\u0e27\u0e23\u0e40\u0e25\u0e34\u0e28\u0e2a\u0e38\u0e18\u0e35\",\"@id\":\"https:\/\/devbanban.com\/#\/schema\/person\/aa637e5a6aefe44e0dbfcac2b429fcc3\"},\"headline\":\"workshop php OOP \u0e40\u0e1a\u0e37\u0e49\u0e2d\u0e07\u0e15\u0e49\u0e19\",\"datePublished\":\"2015-10-01T07:32:05+00:00\",\"dateModified\":\"2016-03-14T12:10:22+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/devbanban.com\/?p=429\"},\"wordCount\":16,\"image\":{\"@id\":\"https:\/\/devbanban.com\/?p=429#primaryimage\"},\"thumbnailUrl\":\"https:\/\/i0.wp.com\/devbanban.com\/wp-content\/uploads\/2015\/05\/php_devbanban.jpg?fit=200%2C100&ssl=1\",\"keywords\":[\"database\",\"delete\",\"form\",\"insert\",\"OOP\",\"PHP\",\"query\",\"select\",\"sql\",\"upload file\"],\"articleSection\":[\"PHP\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/devbanban.com\/?p=429\",\"url\":\"https:\/\/devbanban.com\/?p=429\",\"name\":\"workshop php OOP \u0e40\u0e1a\u0e37\u0e49\u0e2d\u0e07\u0e15\u0e49\u0e19 - \u0e2a\u0e2d\u0e19\u0e2a\u0e23\u0e49\u0e32\u0e07\u0e40\u0e27\u0e47\u0e1a\u0e44\u0e0b\u0e15\u0e4c\u0e1f\u0e23\u0e35 [PHP, SQL, Codeigniter, Bootstrap, HTML]\",\"isPartOf\":{\"@id\":\"https:\/\/devbanban.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/devbanban.com\/?p=429#primaryimage\"},\"image\":{\"@id\":\"https:\/\/devbanban.com\/?p=429#primaryimage\"},\"thumbnailUrl\":\"https:\/\/i0.wp.com\/devbanban.com\/wp-content\/uploads\/2015\/05\/php_devbanban.jpg?fit=200%2C100&ssl=1\",\"datePublished\":\"2015-10-01T07:32:05+00:00\",\"dateModified\":\"2016-03-14T12:10:22+00:00\",\"author\":{\"@id\":\"https:\/\/devbanban.com\/#\/schema\/person\/aa637e5a6aefe44e0dbfcac2b429fcc3\"},\"description\":\"PHP OOP \u0e40\u0e1a\u0e37\u0e49\u0e2d\u0e07\u0e15\u0e49\u0e19\",\"breadcrumb\":{\"@id\":\"https:\/\/devbanban.com\/?p=429#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/devbanban.com\/?p=429\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/devbanban.com\/?p=429#primaryimage\",\"url\":\"https:\/\/i0.wp.com\/devbanban.com\/wp-content\/uploads\/2015\/05\/php_devbanban.jpg?fit=200%2C100&ssl=1\",\"contentUrl\":\"https:\/\/i0.wp.com\/devbanban.com\/wp-content\/uploads\/2015\/05\/php_devbanban.jpg?fit=200%2C100&ssl=1\",\"width\":200,\"height\":100},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/devbanban.com\/?p=429#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/devbanban.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"workshop php OOP \u0e40\u0e1a\u0e37\u0e49\u0e2d\u0e07\u0e15\u0e49\u0e19\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/devbanban.com\/#website\",\"url\":\"https:\/\/devbanban.com\/\",\"name\":\"\u0e2a\u0e2d\u0e19\u0e2a\u0e23\u0e49\u0e32\u0e07\u0e40\u0e27\u0e47\u0e1a\u0e44\u0e0b\u0e15\u0e4c\u0e1f\u0e23\u0e35 [PHP, SQL, Codeigniter, Bootstrap, HTML]\",\"description\":\"\u0e2a\u0e2d\u0e19\u0e40\u0e02\u0e35\u0e22\u0e19\u0e40\u0e27\u0e47\u0e1a\u0e44\u0e0b\u0e15\u0e4c\u0e1f\u0e23\u0e35 \u0e2a\u0e2d\u0e19\u0e17\u0e33\u0e23\u0e30\u0e1a\u0e1a\u0e2d\u0e35\u0e04\u0e2d\u0e21\u0e40\u0e21\u0e34\u0e23\u0e4c\u0e0a \u0e23\u0e30\u0e1a\u0e1a\u0e2b\u0e19\u0e31\u0e07\u0e2a\u0e37\u0e2d\u0e40\u0e27\u0e35\u0e22\u0e19 \u0e23\u0e30\u0e1a\u0e22\u0e37\u0e21\u0e04\u0e37\u0e19\u0e04\u0e23\u0e38\u0e20\u0e31\u0e13\u0e11\u0e4c \u0e23\u0e30\u0e1a\u0e1a\u0e04\u0e25\u0e31\u0e07\u0e02\u0e49\u0e2d\u0e2a\u0e2d\u0e1a \u0e23\u0e30\u0e1a\u0e1a\u0e41\u0e08\u0e49\u0e07\u0e0b\u0e48\u0e2d\u0e21 \u0e23\u0e30\u0e1a\u0e1a\u0e27\u0e34\u0e08\u0e31\u0e22 \u0e41\u0e25\u0e30\u0e23\u0e30\u0e1a\u0e1a\u0e10\u0e32\u0e19\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e1e\u0e23\u0e49\u0e2d\u0e21 Workshop PHP PDO MySQL \u0e2d\u0e35\u0e01\u0e21\u0e32\u0e01\u0e21\u0e32\u0e22\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/devbanban.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/devbanban.com\/#\/schema\/person\/aa637e5a6aefe44e0dbfcac2b429fcc3\",\"name\":\"\u0e1e\u0e34\u0e28\u0e34\u0e29\u0e10\u0e4c \u0e1a\u0e27\u0e23\u0e40\u0e25\u0e34\u0e28\u0e2a\u0e38\u0e18\u0e35\",\"description\":\"\u0e21\u0e35\u0e04\u0e27\u0e32\u0e21\u0e2a\u0e19\u0e43\u0e08\u0e40\u0e17\u0e04\u0e42\u0e19\u0e42\u0e25\u0e22\u0e35\u0e17\u0e35\u0e48\u0e43\u0e0a\u0e49\u0e1e\u0e31\u0e12\u0e19\u0e32\u0e40\u0e27\u0e47\u0e1a\u0e44\u0e0b\u0e15\u0e4c \u0e41\u0e25\u0e30\u0e2d\u0e22\u0e32\u0e01\u0e41\u0e1a\u0e48\u0e07\u0e1b\u0e31\u0e19\u0e04\u0e27\u0e32\u0e21\u0e23\u0e39\u0e49\u0e14\u0e49\u0e32\u0e19\u0e01\u0e32\u0e23\u0e1e\u0e31\u0e12\u0e19\u0e32\u0e40\u0e27\u0e47\u0e1a\u0e44\u0e0b\u0e15\u0e4c\u0e41\u0e25\u0e30\u0e2d\u0e37\u0e48\u0e19\u0e46\u0e2d\u0e35\u0e01\u0e21\u0e32\u0e01\u0e21\u0e32\u0e22...\",\"sameAs\":[\"http:\/\/devbanban.com\/\"],\"url\":\"https:\/\/devbanban.com\/?author=1\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"workshop php OOP \u0e40\u0e1a\u0e37\u0e49\u0e2d\u0e07\u0e15\u0e49\u0e19 - \u0e2a\u0e2d\u0e19\u0e2a\u0e23\u0e49\u0e32\u0e07\u0e40\u0e27\u0e47\u0e1a\u0e44\u0e0b\u0e15\u0e4c\u0e1f\u0e23\u0e35 [PHP, SQL, Codeigniter, Bootstrap, HTML]","description":"PHP OOP \u0e40\u0e1a\u0e37\u0e49\u0e2d\u0e07\u0e15\u0e49\u0e19","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/devbanban.com\/?p=429","twitter_card":"summary_large_image","twitter_title":"workshop php OOP \u0e40\u0e1a\u0e37\u0e49\u0e2d\u0e07\u0e15\u0e49\u0e19 - \u0e2a\u0e2d\u0e19\u0e2a\u0e23\u0e49\u0e32\u0e07\u0e40\u0e27\u0e47\u0e1a\u0e44\u0e0b\u0e15\u0e4c\u0e1f\u0e23\u0e35 [PHP, SQL, Codeigniter, Bootstrap, HTML]","twitter_description":"PHP OOP \u0e40\u0e1a\u0e37\u0e49\u0e2d\u0e07\u0e15\u0e49\u0e19","twitter_image":"https:\/\/i0.wp.com\/devbanban.com\/wp-content\/uploads\/2015\/05\/php_devbanban.jpg?fit=200%2C100&ssl=1","twitter_misc":{"Written by":"\u0e1e\u0e34\u0e28\u0e34\u0e29\u0e10\u0e4c \u0e1a\u0e27\u0e23\u0e40\u0e25\u0e34\u0e28\u0e2a\u0e38\u0e18\u0e35","Est. reading time":"10 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/devbanban.com\/?p=429#article","isPartOf":{"@id":"https:\/\/devbanban.com\/?p=429"},"author":{"name":"\u0e1e\u0e34\u0e28\u0e34\u0e29\u0e10\u0e4c \u0e1a\u0e27\u0e23\u0e40\u0e25\u0e34\u0e28\u0e2a\u0e38\u0e18\u0e35","@id":"https:\/\/devbanban.com\/#\/schema\/person\/aa637e5a6aefe44e0dbfcac2b429fcc3"},"headline":"workshop php OOP \u0e40\u0e1a\u0e37\u0e49\u0e2d\u0e07\u0e15\u0e49\u0e19","datePublished":"2015-10-01T07:32:05+00:00","dateModified":"2016-03-14T12:10:22+00:00","mainEntityOfPage":{"@id":"https:\/\/devbanban.com\/?p=429"},"wordCount":16,"image":{"@id":"https:\/\/devbanban.com\/?p=429#primaryimage"},"thumbnailUrl":"https:\/\/i0.wp.com\/devbanban.com\/wp-content\/uploads\/2015\/05\/php_devbanban.jpg?fit=200%2C100&ssl=1","keywords":["database","delete","form","insert","OOP","PHP","query","select","sql","upload file"],"articleSection":["PHP"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/devbanban.com\/?p=429","url":"https:\/\/devbanban.com\/?p=429","name":"workshop php OOP \u0e40\u0e1a\u0e37\u0e49\u0e2d\u0e07\u0e15\u0e49\u0e19 - \u0e2a\u0e2d\u0e19\u0e2a\u0e23\u0e49\u0e32\u0e07\u0e40\u0e27\u0e47\u0e1a\u0e44\u0e0b\u0e15\u0e4c\u0e1f\u0e23\u0e35 [PHP, SQL, Codeigniter, Bootstrap, HTML]","isPartOf":{"@id":"https:\/\/devbanban.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/devbanban.com\/?p=429#primaryimage"},"image":{"@id":"https:\/\/devbanban.com\/?p=429#primaryimage"},"thumbnailUrl":"https:\/\/i0.wp.com\/devbanban.com\/wp-content\/uploads\/2015\/05\/php_devbanban.jpg?fit=200%2C100&ssl=1","datePublished":"2015-10-01T07:32:05+00:00","dateModified":"2016-03-14T12:10:22+00:00","author":{"@id":"https:\/\/devbanban.com\/#\/schema\/person\/aa637e5a6aefe44e0dbfcac2b429fcc3"},"description":"PHP OOP \u0e40\u0e1a\u0e37\u0e49\u0e2d\u0e07\u0e15\u0e49\u0e19","breadcrumb":{"@id":"https:\/\/devbanban.com\/?p=429#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/devbanban.com\/?p=429"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/devbanban.com\/?p=429#primaryimage","url":"https:\/\/i0.wp.com\/devbanban.com\/wp-content\/uploads\/2015\/05\/php_devbanban.jpg?fit=200%2C100&ssl=1","contentUrl":"https:\/\/i0.wp.com\/devbanban.com\/wp-content\/uploads\/2015\/05\/php_devbanban.jpg?fit=200%2C100&ssl=1","width":200,"height":100},{"@type":"BreadcrumbList","@id":"https:\/\/devbanban.com\/?p=429#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/devbanban.com\/"},{"@type":"ListItem","position":2,"name":"workshop php OOP \u0e40\u0e1a\u0e37\u0e49\u0e2d\u0e07\u0e15\u0e49\u0e19"}]},{"@type":"WebSite","@id":"https:\/\/devbanban.com\/#website","url":"https:\/\/devbanban.com\/","name":"\u0e2a\u0e2d\u0e19\u0e2a\u0e23\u0e49\u0e32\u0e07\u0e40\u0e27\u0e47\u0e1a\u0e44\u0e0b\u0e15\u0e4c\u0e1f\u0e23\u0e35 [PHP, SQL, Codeigniter, Bootstrap, HTML]","description":"\u0e2a\u0e2d\u0e19\u0e40\u0e02\u0e35\u0e22\u0e19\u0e40\u0e27\u0e47\u0e1a\u0e44\u0e0b\u0e15\u0e4c\u0e1f\u0e23\u0e35 \u0e2a\u0e2d\u0e19\u0e17\u0e33\u0e23\u0e30\u0e1a\u0e1a\u0e2d\u0e35\u0e04\u0e2d\u0e21\u0e40\u0e21\u0e34\u0e23\u0e4c\u0e0a \u0e23\u0e30\u0e1a\u0e1a\u0e2b\u0e19\u0e31\u0e07\u0e2a\u0e37\u0e2d\u0e40\u0e27\u0e35\u0e22\u0e19 \u0e23\u0e30\u0e1a\u0e22\u0e37\u0e21\u0e04\u0e37\u0e19\u0e04\u0e23\u0e38\u0e20\u0e31\u0e13\u0e11\u0e4c \u0e23\u0e30\u0e1a\u0e1a\u0e04\u0e25\u0e31\u0e07\u0e02\u0e49\u0e2d\u0e2a\u0e2d\u0e1a \u0e23\u0e30\u0e1a\u0e1a\u0e41\u0e08\u0e49\u0e07\u0e0b\u0e48\u0e2d\u0e21 \u0e23\u0e30\u0e1a\u0e1a\u0e27\u0e34\u0e08\u0e31\u0e22 \u0e41\u0e25\u0e30\u0e23\u0e30\u0e1a\u0e1a\u0e10\u0e32\u0e19\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e1e\u0e23\u0e49\u0e2d\u0e21 Workshop PHP PDO MySQL \u0e2d\u0e35\u0e01\u0e21\u0e32\u0e01\u0e21\u0e32\u0e22","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/devbanban.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/devbanban.com\/#\/schema\/person\/aa637e5a6aefe44e0dbfcac2b429fcc3","name":"\u0e1e\u0e34\u0e28\u0e34\u0e29\u0e10\u0e4c \u0e1a\u0e27\u0e23\u0e40\u0e25\u0e34\u0e28\u0e2a\u0e38\u0e18\u0e35","description":"\u0e21\u0e35\u0e04\u0e27\u0e32\u0e21\u0e2a\u0e19\u0e43\u0e08\u0e40\u0e17\u0e04\u0e42\u0e19\u0e42\u0e25\u0e22\u0e35\u0e17\u0e35\u0e48\u0e43\u0e0a\u0e49\u0e1e\u0e31\u0e12\u0e19\u0e32\u0e40\u0e27\u0e47\u0e1a\u0e44\u0e0b\u0e15\u0e4c \u0e41\u0e25\u0e30\u0e2d\u0e22\u0e32\u0e01\u0e41\u0e1a\u0e48\u0e07\u0e1b\u0e31\u0e19\u0e04\u0e27\u0e32\u0e21\u0e23\u0e39\u0e49\u0e14\u0e49\u0e32\u0e19\u0e01\u0e32\u0e23\u0e1e\u0e31\u0e12\u0e19\u0e32\u0e40\u0e27\u0e47\u0e1a\u0e44\u0e0b\u0e15\u0e4c\u0e41\u0e25\u0e30\u0e2d\u0e37\u0e48\u0e19\u0e46\u0e2d\u0e35\u0e01\u0e21\u0e32\u0e01\u0e21\u0e32\u0e22...","sameAs":["http:\/\/devbanban.com\/"],"url":"https:\/\/devbanban.com\/?author=1"}]}},"jetpack_featured_media_url":"https:\/\/i0.wp.com\/devbanban.com\/wp-content\/uploads\/2015\/05\/php_devbanban.jpg?fit=200%2C100&ssl=1","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p6bpqQ-6V","jetpack-related-posts":[{"id":4031,"url":"https:\/\/devbanban.com\/?p=4031","url_meta":{"origin":429,"position":0},"title":"PHP : \u0e15\u0e31\u0e27\u0e2d\u0e22\u0e48\u0e32\u0e07\u0e01\u0e32\u0e23\u0e40\u0e0a\u0e37\u0e48\u0e2d\u0e21\u0e15\u0e48\u0e2d 2 \u0e10\u0e32\u0e19\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e43\u0e19\u0e2b\u0e19\u0e49\u0e32\u0e40\u0e14\u0e35\u0e22\u0e27\u0e01\u0e31\u0e19, Connect 2 database on a single webpage","author":"\u0e1e\u0e34\u0e28\u0e34\u0e29\u0e10\u0e4c \u0e1a\u0e27\u0e23\u0e40\u0e25\u0e34\u0e28\u0e2a\u0e38\u0e18\u0e35","date":"03\/06\/2021","format":false,"excerpt":"\u0e43\u0e19\u0e1a\u0e32\u0e07\u0e01\u0e23\u0e13\u0e35\u0e08\u0e33\u0e40\u0e1b\u0e47\u0e19\u0e17\u0e35\u0e48\u0e08\u0e30\u0e15\u0e49\u0e2d\u0e07\u0e40\u0e0a\u0e37\u0e48\u0e2d\u0e21\u0e15\u0e48\u0e2d\u0e41\u0e25\u0e30\u0e40\u0e23\u0e35\u0e22\u0e01\u0e43\u0e0a\u0e49\u0e07\u0e32\u0e19\u0e10\u0e32\u0e19\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e21\u0e32\u0e01\u0e01\u0e27\u0e48\u0e32 1 \u0e10\u0e32\u0e19\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e43\u0e19\u0e23\u0e30\u0e1a\u0e1a\u0e40\u0e14\u0e35\u0e22\u0e27\u0e01\u0e31\u0e19 \u0e14\u0e31\u0e07\u0e19\u0e31\u0e49\u0e19\u0e40\u0e23\u0e32\u0e21\u0e32\u0e1d\u0e36\u0e01\u0e17\u0e33 workshop \u0e01\u0e31\u0e19\u0e04\u0e23\u0e31\u0e1a \u0e40\u0e1c\u0e37\u0e48\u0e2d\u0e44\u0e14\u0e49\u0e43\u0e0a\u0e49\u0e43\u0e19\u0e2d\u0e19\u0e32\u0e04\u0e15 \u0e2b\u0e23\u0e37\u0e2d\u0e40\u0e23\u0e35\u0e22\u0e19\u0e23\u0e39\u0e49\u0e44\u0e27\u0e49\u0e01\u0e47\u0e44\u0e21\u0e48\u0e40\u0e2a\u0e35\u0e22\u0e2b\u0e32\u0e22\u0e04\u0e23\u0e31\u0e1a \u0e2a\u0e33\u0e2b\u0e23\u0e31\u0e1a\u0e43\u0e04\u0e23\u0e17\u0e35\u0e48\u0e1e\u0e36\u0e48\u0e07\u0e1d\u0e36\u0e01\u0e20\u0e32\u0e29\u0e32\u00a0PHP\u00a0\u0e44\u0e1b\u0e14\u0e39\u0e04\u0e25\u0e34\u0e1b\u0e0a\u0e38\u0e14\u0e19\u0e35\u0e49\u0e01\u0e48\u0e2d\u0e19\u0e04\u0e23\u0e31\u0e1a *Basic PHP 100 \u0e04\u0e25\u0e34\u0e1b ++ \u0e21\u0e32\u0e40\u0e23\u0e34\u0e48\u0e21\u0e15\u0e49\u0e19\u0e17\u0e33 Workshop \u0e01\u0e31\u0e19\u0e04\u0e23\u0e31\u0e1a 1.import \u0e10\u0e32\u0e19\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25 CREATE DATABASE IF NOT EXISTS `workshop_db001` DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci; USE `workshop_db001`; -- -------------------------------------------------------- -- -- Table structure for table `tbl_test1` -- CREATE TABLE `tbl_test1` ( `id` int(11) NOT\u2026","rel":"","context":"In &quot;PHP&quot;","block_context":{"text":"PHP","link":"https:\/\/devbanban.com\/?cat=15"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/devbanban.com\/wp-content\/uploads\/2021\/06\/con2db.jpg?fit=800%2C524&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/devbanban.com\/wp-content\/uploads\/2021\/06\/con2db.jpg?fit=800%2C524&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/devbanban.com\/wp-content\/uploads\/2021\/06\/con2db.jpg?fit=800%2C524&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/devbanban.com\/wp-content\/uploads\/2021\/06\/con2db.jpg?fit=800%2C524&ssl=1&resize=700%2C400 2x"},"classes":[]},{"id":343,"url":"https:\/\/devbanban.com\/?p=343","url_meta":{"origin":429,"position":1},"title":"\u0e01\u0e32\u0e23\u0e43\u0e0a\u0e49 Json  PHP","author":"\u0e1e\u0e34\u0e28\u0e34\u0e29\u0e10\u0e4c \u0e1a\u0e27\u0e23\u0e40\u0e25\u0e34\u0e28\u0e2a\u0e38\u0e18\u0e35","date":"11\/08\/2015","format":false,"excerpt":"\u0e43\u0e19 workshop \u0e19\u0e35\u0e49\u0e08\u0e30\u0e41\u0e19\u0e30\u0e19\u0e33\u0e01\u0e32\u0e23\u0e40\u0e02\u0e35\u0e22\u0e19 json \u0e01\u0e31\u0e1a php \u0e40\u0e1e\u0e37\u0e48\u0e2d\u0e40\u0e23\u0e35\u0e22\u0e01\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e08\u0e32\u0e01\u0e10\u0e32\u0e19\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e21\u0e32\u0e41\u0e2a\u0e14\u0e07\u0e19\u0e30\u0e04\u0e23\u0e31\u0e1a \u00a0 \u0e0b\u0e36\u0e48\u0e07\u0e19\u0e48\u0e32\u0e08\u0e30\u0e21\u0e35\u0e1b\u0e23\u0e30\u0e42\u0e22\u0e0a\u0e19\u0e4c\u0e01\u0e31\u0e1a\u0e2b\u0e25\u0e32\u0e22\u0e46\u0e04\u0e19 \u00a0\u0e21\u0e32\u0e40\u0e23\u0e34\u0e48\u0e21\u0e01\u0e31\u0e19\u0e40\u0e25\u0e22\u0e04\u0e23\u0e31\u0e1a \u00a0 \u00a0 \u0e17\u0e14\u0e25\u0e2d\u0e07\u0e2a\u0e23\u0e49\u0e32\u0e07 database \u0e14\u0e31\u0e07\u0e19\u0e35\u0e49 database name : myshop \u00a0 CREATE TABLE IF NOT EXISTS `products` ( `id` int(11) NOT NULL, `name` varchar(32) NOT NULL, `description` text NOT NULL, `price` int(11) NOT NULL, `category_id` int(11) NOT NULL, `created` datetime NOT\u2026","rel":"","context":"In &quot;PHP&quot;","block_context":{"text":"PHP","link":"https:\/\/devbanban.com\/?cat=15"},"img":{"alt_text":"Screen Shot 2558-08-11 at 08.20.22","src":"https:\/\/i0.wp.com\/devbanban.com\/wp-content\/uploads\/2015\/08\/Screen-Shot-2558-08-11-at-08.20.22-1024x640.png?resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/devbanban.com\/wp-content\/uploads\/2015\/08\/Screen-Shot-2558-08-11-at-08.20.22-1024x640.png?resize=350%2C200 1x, https:\/\/i0.wp.com\/devbanban.com\/wp-content\/uploads\/2015\/08\/Screen-Shot-2558-08-11-at-08.20.22-1024x640.png?resize=525%2C300 1.5x, https:\/\/i0.wp.com\/devbanban.com\/wp-content\/uploads\/2015\/08\/Screen-Shot-2558-08-11-at-08.20.22-1024x640.png?resize=700%2C400 2x"},"classes":[]},{"id":4365,"url":"https:\/\/devbanban.com\/?p=4365","url_meta":{"origin":429,"position":2},"title":"PHP PDO Connecting Multiple Databases \u0e15\u0e31\u0e27\u0e2d\u0e22\u0e48\u0e32\u0e07\u0e01\u0e32\u0e23\u0e40\u0e0a\u0e37\u0e48\u0e2d\u0e21\u0e15\u0e48\u0e2d 2 \u0e10\u0e32\u0e19\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e43\u0e19\u0e2b\u0e19\u0e49\u0e32\u0e40\u0e14\u0e35\u0e22\u0e27\u0e01\u0e31\u0e19","author":"\u0e1e\u0e34\u0e28\u0e34\u0e29\u0e10\u0e4c \u0e1a\u0e27\u0e23\u0e40\u0e25\u0e34\u0e28\u0e2a\u0e38\u0e18\u0e35","date":"04\/01\/2022","format":false,"excerpt":"\u0e2a\u0e27\u0e31\u0e2a\u0e14\u0e35\u0e04\u0e23\u0e31\u0e1a \u0e43\u0e19\u0e1a\u0e17\u0e04\u0e27\u0e32\u0e21\u0e19\u0e35\u0e49\u0e08\u0e30\u0e41\u0e08\u0e01\u0e15\u0e31\u0e27\u0e2d\u0e22\u0e48\u0e32\u0e07 Code PHP PDO \u0e15\u0e31\u0e27\u0e2d\u0e22\u0e48\u0e32\u0e07\u0e01\u0e32\u0e23\u0e40\u0e0a\u0e37\u0e48\u0e2d\u0e21\u0e15\u0e48\u0e2d 2 \u0e10\u0e32\u0e19\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e43\u0e19\u0e2b\u0e19\u0e49\u0e32\u0e40\u0e14\u0e35\u0e22\u0e27\u0e01\u0e31\u0e19 \u00a0\u0e41\u0e25\u0e30\u0e42\u0e04\u0e49\u0e14\u0e08\u0e30\u0e23\u0e2d\u0e07\u0e23\u0e31\u0e1a php7, php8 *\u0e1d\u0e36\u0e01\u0e44\u0e27\u0e49\u0e04\u0e23\u0e31\u0e1a\u0e40\u0e1c\u0e37\u0e48\u0e2d\u0e44\u0e14\u0e49\u0e43\u0e0a\u0e49 \u0e02\u0e2d\u0e41\u0e19\u0e30\u0e19\u0e33\u0e23\u0e30\u0e1a\u0e1a\u0e1e\u0e23\u0e49\u0e2d\u0e21\u0e43\u0e0a\u0e49 1.\u0e40\u0e27\u0e47\u0e1a\u0e2d\u0e35\u0e04\u0e2d\u0e21\u0e40\u0e21\u0e34\u0e23\u0e4c\u0e0a \u0e04\u0e25\u0e34\u0e01 2.\u0e40\u0e27\u0e47\u0e1a FOOD POS \u0e02\u0e32\u0e22\u0e2d\u0e32\u0e2b\u0e32\u0e23\u0e2b\u0e19\u0e49\u0e32\u0e23\u0e49\u0e32\u0e19 \u0e04\u0e25\u0e34\u0e01 3.\u0e40\u0e27\u0e47\u0e1a Coffee POS \u0e02\u0e32\u0e22\u0e01\u0e32\u0e41\u0e1f\u0e2b\u0e19\u0e49\u0e32\u0e23\u0e49\u0e32\u0e19 \u0e04\u0e25\u0e34\u0e01 4.\u0e2b\u0e25\u0e31\u0e07\u0e1a\u0e49\u0e32\u0e19\u0e23\u0e30\u0e1a\u0e1a\u0e2d\u0e35\u0e04\u0e2d\u0e21\u0e40\u0e21\u0e34\u0e23\u0e4c\u0e0a \u0e04\u0e25\u0e34\u0e01 5.\u0e40\u0e27\u0e47\u0e1a\u0e1a\u0e23\u0e34\u0e29\u0e31\u0e17 \/ \u0e40\u0e27\u0e47\u0e1a\u0e2d\u0e07\u0e04\u0e4c\u0e01\u0e23 \u0e04\u0e25\u0e34\u0e01 6.\u0e23\u0e30\u0e1a\u0e1a\u0e2b\u0e2d\u0e1e\u0e31\u0e01 \u0e42\u0e1b\u0e23\u0e41\u0e01\u0e23\u0e21\u0e2b\u0e2d\u0e1e\u0e31\u0e01 \u0e04\u0e25\u0e34\u0e01 7.\u0e23\u0e30\u0e1a\u0e1a\u0e2d\u0e37\u0e48\u0e19\u0e46 \u0e40\u0e1e\u0e34\u0e48\u0e21\u0e40\u0e15\u0e34\u0e21 \u0e04\u0e25\u0e34\u0e01 \u0e23\u0e27\u0e21\u0e04\u0e25\u0e34\u0e1b\u0e2a\u0e2d\u0e19\u0e1b\u0e23\u0e31\u0e1a\u0e1e\u0e37\u0e49\u0e19\u0e10\u0e32\u0e19 \u0e20\u0e32\u0e29\u0e32 php \u0e1f\u0e23\u0e35 100 \u0e04\u0e25\u0e34\u0e1b ++\u00a0\u00a0https:\/\/devbanban.com\/?p=3940 \u0e42\u0e04\u0e49\u0e14\u0e1b\u0e23\u0e30\u0e01\u0e2d\u0e1a\u0e14\u0e49\u0e27\u0e22 PHP PDO MySQL SQL Query\u2026","rel":"","context":"In &quot;PDO&quot;","block_context":{"text":"PDO","link":"https:\/\/devbanban.com\/?cat=409"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/devbanban.com\/wp-content\/uploads\/2022\/01\/php-pdo-con2DB.jpg?fit=800%2C410&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/devbanban.com\/wp-content\/uploads\/2022\/01\/php-pdo-con2DB.jpg?fit=800%2C410&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/devbanban.com\/wp-content\/uploads\/2022\/01\/php-pdo-con2DB.jpg?fit=800%2C410&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/devbanban.com\/wp-content\/uploads\/2022\/01\/php-pdo-con2DB.jpg?fit=800%2C410&ssl=1&resize=700%2C400 2x"},"classes":[]},{"id":527,"url":"https:\/\/devbanban.com\/?p=527","url_meta":{"origin":429,"position":3},"title":"PHP + Mysqli : \u0e40\u0e1e\u0e34\u0e48\u0e21\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25 2 \u0e15\u0e32\u0e23\u0e32\u0e07\u0e08\u0e32\u0e01\u0e1f\u0e2d\u0e23\u0e4c\u0e21\u0e40\u0e14\u0e35\u0e22\u0e27","author":"\u0e1e\u0e34\u0e28\u0e34\u0e29\u0e10\u0e4c \u0e1a\u0e27\u0e23\u0e40\u0e25\u0e34\u0e28\u0e2a\u0e38\u0e18\u0e35","date":"27\/10\/2015","format":false,"excerpt":"\u0e43\u0e19 workshop \u0e19\u0e35\u0e49\u0e08\u0e30\u0e41\u0e19\u0e30\u0e19\u0e33\u0e27\u0e34\u0e18\u0e35\u0e01\u0e32\u0e23\u0e2a\u0e23\u0e49\u0e32\u0e07\u0e1f\u0e2d\u0e23\u0e4c\u0e21\u0e40\u0e1e\u0e34\u0e48\u0e21\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e41\u0e04\u0e48\u0e40\u0e1e\u0e35\u0e22\u0e07 1 \u0e1f\u0e2d\u0e23\u0e4c\u0e21 \u0e41\u0e15\u0e48\u0e2a\u0e32\u0e21\u0e32\u0e23\u0e16\u0e40\u0e1e\u0e34\u0e48\u0e21\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e40\u0e02\u0e49\u0e32\u0e44\u0e1b\u0e22\u0e31\u0e07 2 \u0e15\u0e32\u0e23\u0e32\u0e07\u0e1e\u0e23\u0e49\u0e2d\u0e21\u0e01\u0e31\u0e19\u0e46 \u00a0\u0e0b\u0e36\u0e48\u0e07\u0e08\u0e30\u0e2a\u0e32\u0e21\u0e32\u0e23\u0e16\u0e19\u0e33\u0e44\u0e1b\u0e1b\u0e23\u0e30\u0e22\u0e38\u0e01\u0e15\u0e4c\u0e43\u0e0a\u0e49\u0e43\u0e19\u0e23\u0e30\u0e1a\u0e1a\u0e17\u0e35\u0e48\u0e15\u0e49\u0e2d\u0e07\u0e01\u0e32\u0e23\u0e43\u0e0a\u0e49\u0e07\u0e32\u0e19\u0e15\u0e32\u0e21 workshop \u0e14\u0e31\u0e07\u0e01\u0e25\u0e48\u0e32\u0e27 \u00a0 \u0e07\u0e48\u0e32\u0e22\u0e46 \u0e2a\u0e44\u0e15\u0e25\u0e4c devbanban.com \u0e40\u0e0a\u0e48\u0e19\u0e40\u0e14\u0e34\u0e21\u0e04\u0e23\u0e31\u0e1a... \u0e01\u0e32\u0e23\u0e17\u0e33\u0e07\u0e32\u0e19\u0e02\u0e2d\u0e07\u0e42\u0e1b\u0e23\u0e41\u0e01\u0e23\u0e21\u0e43\u0e19\u0e15\u0e32\u0e23\u0e32\u0e07\u0e41\u0e23\u0e01\u0e08\u0e30\u0e43\u0e2b\u0e49\u0e40\u0e1e\u0e34\u0e48\u0e21\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e0a\u0e37\u0e48\u0e2d-\u0e2a\u0e01\u0e38\u0e25, \u0e40\u0e1a\u0e2d\u0e23\u0e4c\u0e42\u0e17\u0e23 \u00a0\u0e41\u0e25\u0e30\u0e15\u0e32\u0e23\u0e32\u0e07\u0e17\u0e35\u0e48\u0e2a\u0e2d\u0e07\u0e08\u0e30\u0e43\u0e2b\u0e49\u0e40\u0e1e\u0e34\u0e48\u0e21\u0e40\u0e09\u0e1e\u0e32\u0e30\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e1a\u0e23\u0e34\u0e29\u0e31\u0e17 \u00a0 \u0e40\u0e23\u0e34\u0e48\u0e21\u0e08\u0e32\u0e01\u0e01\u0e32\u0e23\u0e2a\u0e23\u0e49\u0e32\u0e07 database \u0e07\u0e48\u0e32\u0e22\u0e46 \u0e40\u0e1e\u0e37\u0e48\u0e2d\u0e17\u0e14\u0e25\u0e2d\u0e07\u0e17\u0e33 workshop \u0e01\u0e31\u0e19\u0e04\u0e23\u0e31\u0e1a CREATE DATABASE `myweb` DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci; USE `myweb`; CREATE TABLE `tb_dept` ( `dept_id` int(10) NOT NULL auto_increment, `dept_name` varchar(100) NOT NULL,\u2026","rel":"","context":"In &quot;PHP&quot;","block_context":{"text":"PHP","link":"https:\/\/devbanban.com\/?cat=15"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/devbanban.com\/wp-content\/uploads\/2015\/10\/11.jpg?fit=442%2C230&ssl=1&resize=350%2C200","width":350,"height":200},"classes":[]},{"id":218,"url":"https:\/\/devbanban.com\/?p=218","url_meta":{"origin":429,"position":4},"title":"\u0e40\u0e23\u0e34\u0e48\u0e21\u0e2a\u0e23\u0e49\u0e32\u0e07 Database \u0e01\u0e31\u0e19\u0e40\u0e16\u0e2d\u0e30","author":"\u0e1e\u0e34\u0e28\u0e34\u0e29\u0e10\u0e4c \u0e1a\u0e27\u0e23\u0e40\u0e25\u0e34\u0e28\u0e2a\u0e38\u0e18\u0e35","date":"20\/05\/2015","format":false,"excerpt":"\u0e01\u0e48\u0e2d\u0e19\u0e08\u0e30\u0e2a\u0e23\u0e49\u0e32\u0e07\u0e40\u0e27\u0e47\u0e1a\u0e44\u0e0b\u0e15\u0e4c\u0e17\u0e35\u0e48\u0e40\u0e1b\u0e47\u0e19\u0e20\u0e32\u0e29\u0e32 PHP \u0e41\u0e25\u0e30\u0e21\u0e35\u0e01\u0e32\u0e23\u0e40\u0e0a\u0e37\u0e48\u0e2d\u0e21\u0e15\u0e48\u0e2d\u0e01\u0e31\u0e1a Database \u0e01\u0e48\u0e2d\u0e19\u0e2d\u0e37\u0e48\u0e19\u0e40\u0e23\u0e32\u0e15\u0e49\u0e2d\u0e07\u0e2d\u0e2d\u0e01\u0e41\u0e1a\u0e1a\u0e41\u0e25\u0e30\u0e2a\u0e23\u0e49\u0e32\u0e07 database \u0e01\u0e48\u0e2d\u0e19\u0e19\u0e30\u0e04\u0e23\u0e31\u0e1a \u0e1c\u0e21\u0e08\u0e30\u0e22\u0e01\u0e15\u0e31\u0e27\u0e2d\u0e22\u0e48\u0e32\u0e07 \u0e43\u0e2b\u0e49\u0e2a\u0e23\u0e49\u0e32\u0e07 database \u0e0a\u0e37\u0e48\u0e2d myweb\u00a0\u0e41\u0e25\u0e30\u0e21\u0e35\u0e15\u0e32\u0e23\u0e32\u0e07\u0e0a\u0e37\u0e48\u0e2d tb_member \u00a0 \u0e2b\u0e23\u0e37\u0e2d\u0e15\u0e32\u0e23\u0e32\u0e07\u0e17\u0e35\u0e48\u0e40\u0e01\u0e47\u0e1a\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e02\u0e2d\u0e07\u0e2a\u0e21\u0e32\u0e0a\u0e34\u0e01\u0e20\u0e32\u0e22\u0e43\u0e19\u0e40\u0e27\u0e47\u0e1a\u0e44\u0e0b\u0e15\u0e4c \u00a0(\u0e2a\u0e23\u0e49\u0e32\u0e07 copy code sql \u0e44\u0e1b\u0e27\u0e32\u0e07\u0e43\u0e19 phpmyadmin \u0e44\u0e14\u0e49\u0e40\u0e25\u0e22\u0e04\u0e23\u0e31\u0e1a) \u0e43\u0e19\u0e15\u0e32\u0e23\u0e32\u0e07\u0e08\u0e30\u0e21\u0e35\u0e01\u0e32\u0e23\u0e40\u0e01\u0e47\u0e1a\u0e1f\u0e34\u0e25\u0e14\u0e4c \u0e44\u0e2d\u0e14\u0e35\u0e2a\u0e21\u0e32\u0e0a\u0e34\u0e01, \u0e0a\u0e37\u0e48\u0e2d-\u0e2a\u0e01\u0e38\u0e25, username, password, email, \u0e41\u0e25\u0e30\u0e27\u0e31\u0e19\u0e17\u0e35\u0e48\u0e2a\u0e21\u0e31\u0e04\u0e23\u0e2a\u0e21\u0e32\u0e0a\u0e34\u0e01\u0e19\u0e30\u0e04\u0e23\u0e31\u0e1a CREATE TABLE IF NOT EXISTS `tb_member` ( `member_id` int(10) NOT NULL, `member_name` varchar(100) CHARACTER SET utf8 NOT NULL, `member_lname` varchar(100) CHARACTER\u2026","rel":"","context":"In &quot;PHP&quot;","block_context":{"text":"PHP","link":"https:\/\/devbanban.com\/?cat=15"},"img":{"alt_text":"Screen Shot 2558-05-20 at 08.25.06","src":"https:\/\/i0.wp.com\/devbanban.com\/wp-content\/uploads\/2015\/05\/Screen-Shot-2558-05-20-at-08.25.06-1024x325.png?resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/devbanban.com\/wp-content\/uploads\/2015\/05\/Screen-Shot-2558-05-20-at-08.25.06-1024x325.png?resize=350%2C200 1x, https:\/\/i0.wp.com\/devbanban.com\/wp-content\/uploads\/2015\/05\/Screen-Shot-2558-05-20-at-08.25.06-1024x325.png?resize=525%2C300 1.5x, https:\/\/i0.wp.com\/devbanban.com\/wp-content\/uploads\/2015\/05\/Screen-Shot-2558-05-20-at-08.25.06-1024x325.png?resize=700%2C400 2x"},"classes":[]},{"id":400,"url":"https:\/\/devbanban.com\/?p=400","url_meta":{"origin":429,"position":5},"title":"\u0e41\u0e2a\u0e14\u0e07\u0e40\u0e09\u0e1e\u0e32\u0e30\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e17\u0e35\u0e48\u0e21\u0e35\u0e04\u0e48\u0e32\u0e27\u0e48\u0e32\u0e07 PHP","author":"\u0e1e\u0e34\u0e28\u0e34\u0e29\u0e10\u0e4c \u0e1a\u0e27\u0e23\u0e40\u0e25\u0e34\u0e28\u0e2a\u0e38\u0e18\u0e35","date":"16\/09\/2015","format":false,"excerpt":"\u0e2b\u0e25\u0e31\u0e07\u0e08\u0e32\u0e01\u0e40\u0e23\u0e32\u0e44\u0e14\u0e49\u0e2a\u0e23\u0e49\u0e32\u0e07\u0e1f\u0e2d\u0e23\u0e4c\u0e21\u0e2a\u0e21\u0e31\u0e04\u0e23\u0e2a\u0e21\u0e32\u0e0a\u0e34\u0e01\u0e41\u0e25\u0e30\u0e40\u0e01\u0e47\u0e1a\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e25\u0e07\u0e43\u0e19 database \u0e41\u0e25\u0e49\u0e27 \u00a0\u0e41\u0e15\u0e48\u0e21\u0e35\u0e1a\u0e32\u0e07\u0e1f\u0e34\u0e25\u0e14\u0e4c\u0e17\u0e35\u0e48\u0e1c\u0e39\u0e49\u0e43\u0e0a\u0e49\u0e22\u0e31\u0e07\u0e44\u0e21\u0e48\u0e01\u0e23\u0e2d\u0e01\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e41\u0e25\u0e30\u0e40\u0e23\u0e32\u0e01\u0e33\u0e2b\u0e19\u0e14\u0e1f\u0e34\u0e25\u0e14\u0e4c\u0e19\u0e31\u0e49\u0e19\u0e46\u0e43\u0e2b\u0e49\u0e40\u0e1b\u0e47\u0e19\u0e04\u0e48\u0e32\u0e27\u0e48\u0e32\u0e07 \u00a0(NULL) \u00a0\u0e40\u0e23\u0e32\u0e01\u0e47\u0e08\u0e30\u0e17\u0e33\u0e40\u0e23\u0e35\u0e22\u0e01\u0e40\u0e09\u0e1e\u0e32\u0e30\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e17\u0e35\u0e48\u0e40\u0e1b\u0e47\u0e19\u0e04\u0e48\u0e32\u0e27\u0e48\u0e32\u0e07\u0e19\u0e31\u0e49\u0e19\u0e21\u0e32\u0e41\u0e2a\u0e14\u0e07 \u0e21\u0e32\u0e40\u0e23\u0e34\u0e48\u0e21\u0e01\u0e31\u0e19\u0e40\u0e25\u0e22\u0e04\u0e23\u0e31\u0e1a... Database CREATE TABLE `tbl_member` ( `member_id` int(10) NOT NULL auto_increment, `member_name` varchar(100) NOT NULL, `member_lname` varchar(100) NOT NULL, `username` varchar(20) NOT NULL, `password` varchar(50) NOT NULL, `email` varchar(15) NOT NULL, `phone` varchar(15) default NULL, `date_regis` timestamp NOT NULL default CURRENT_TIMESTAMP, PRIMARY KEY (`member_id`)\u2026","rel":"","context":"In &quot;PHP&quot;","block_context":{"text":"PHP","link":"https:\/\/devbanban.com\/?cat=15"},"img":{"alt_text":"1","src":"https:\/\/i0.wp.com\/devbanban.com\/wp-content\/uploads\/2015\/09\/1.jpg?resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/devbanban.com\/wp-content\/uploads\/2015\/09\/1.jpg?resize=350%2C200 1x, https:\/\/i0.wp.com\/devbanban.com\/wp-content\/uploads\/2015\/09\/1.jpg?resize=525%2C300 1.5x, https:\/\/i0.wp.com\/devbanban.com\/wp-content\/uploads\/2015\/09\/1.jpg?resize=700%2C400 2x"},"classes":[]}],"_links":{"self":[{"href":"https:\/\/devbanban.com\/index.php?rest_route=\/wp\/v2\/posts\/429","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devbanban.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devbanban.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devbanban.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/devbanban.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=429"}],"version-history":[{"count":4,"href":"https:\/\/devbanban.com\/index.php?rest_route=\/wp\/v2\/posts\/429\/revisions"}],"predecessor-version":[{"id":718,"href":"https:\/\/devbanban.com\/index.php?rest_route=\/wp\/v2\/posts\/429\/revisions\/718"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devbanban.com\/index.php?rest_route=\/wp\/v2\/media\/152"}],"wp:attachment":[{"href":"https:\/\/devbanban.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=429"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devbanban.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=429"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devbanban.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=429"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}