หน้าแรก ຕອນທີ 1 ການຕິດຕໍ່ຖານຂໍ້ມູນ ດ້ວຍ PHP+Mysqli byອາຈານ ສົມໄຊ ງາຄຳພິທູນ -เมษายน 07, 2561 phpmysqli.sql -- phpMyAdmin SQL Dump -- version 4.5.1 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Apr 07, 2018 at 02:56 PM -- Server version: 10.1.10-MariaDB -- PHP Version: 5.6.19 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8mb4 */; -- -- Database: `phpmysqli` -- -- -------------------------------------------------------- -- -- Table structure for table `tb_user` -- CREATE TABLE `tb_user` ( `id` int(5) UNSIGNED ZEROFILL NOT NULL, `username` varchar(50) COLLATE utf8_unicode_ci NOT NULL, `password` varchar(20) COLLATE utf8_unicode_ci NOT NULL, `name` varchar(20) COLLATE utf8_unicode_ci NOT NULL, `lastname` varchar(20) COLLATE utf8_unicode_ci NOT NULL, `mobile` varchar(10) COLLATE utf8_unicode_ci NOT NULL, `email` varchar(50) COLLATE utf8_unicode_ci NOT NULL, `address` text COLLATE utf8_unicode_ci NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -- Dumping data for table `tb_user` -- INSERT INTO `tb_user` (`id`, `username`, `password`, `name`, `lastname`, `mobile`, `email`, `address`) VALUES (00001, 'admin', 'sdsd', 'sdsaa', 'sdd', 'we', 'weeda', 'weeqssdxdasa'), (00002, 'somxai', 'qwqwwq', 'somxai', 'nn', '555564556', 'aaiy_95@hotmail.com', 'sdsdsdsddsdssdsdsddsdsdsdsdsdssdds'); -- -- Indexes for dumped tables -- -- -- Indexes for table `tb_user` -- ALTER TABLE `tb_user` ADD PRIMARY KEY (`id`); -- -- AUTO_INCREMENT for dumped tables -- -- -- AUTO_INCREMENT for table `tb_user` -- ALTER TABLE `tb_user` MODIFY `id` int(5) UNSIGNED ZEROFILL NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; connect.php "127.0.1.1", "user"=>"root", "pass"=>"somxai1996", "dbname"=>"phpmysqli", "charset"=>"utf8" ); $con=new MySQLi($config["host"],$config["user"],$config["pass"],$config["dbname"]); $con->set_charset($config["charset"]); if($con->connect_error){ trigger_error("database connect failed!!!".$con->connect_error,E_USER_ERROR); }else{ //echo "connected"; } ?> Facebook Twitter