- 1 Cài đặt phần mềm cần thiết cho học lập trình web
- 2 Tự Học HTML Cơ Bản Online Miễn Phí Từ A đến Z
- 3 Seo website dành cho dân IT
- 4 REACT NATIVE
- 5 sdfdsf
- 6 Lập trình di động với React Native
- 7 Vue.js
- 8 Kiếm thức cơ bản HTML CSS
- 9 So sánh count() và sizeof() 2 phần tử đếm mảng
- 10 Toán tử và biểu thức của php
Hàm mysqli_options() trong PHP - PHP Function
Code $con=mysqli_init(); if (!$con){ die("mysqli_init failed"); } mysqli_options($con,MYSQLI_READ_DEFAULT_FILE,"myfile.cnf"); if (!mysqli_real_connect($con,"localhost","my_user","my_password","my_db")){ die("Connect Error: " . mysqli_connect_error()); } mysqli_close($c ...
Hàm mysqli_ping() trong PHP - PHP Function
Code $con=mysqli_connect("localhost","my_user","my_password","my_db"); // Check connection if (mysqli_connect_errno()){ echo "Failed to connect to MySQL: " . mysqli_connect_error(); } // Check if server is alive if (mysqli_ping($con)){ echo "Connection is ...
Hàm mysqli_query() trong PHP - PHP Function
Code <?php $con = mysqli_connect("localhost","my_user","my_password","my_db"); // Check connection if (mysqli_connect_errno()){ echo "Failed to connect to MySQL: " . mysqli_connect_error(); } // Perform queries mysqli_query($con,"SELECT * FROM Persons"); mysqli_query($con ...
Hàm mysqli_real_connect() trong PHP - PHP Function
Code $con=mysqli_init(); if (!$con){ die("mysqli_init failed"); } if(!mysqli_real_connect($con,"localhost","my_user","my_password","my_db")){ die("Connect Error: " . mysqli_connect_error()); } mysqli_close($con);
Hàm mysqli_refresh() trong PHP - PHP Function
Code $con = mysqli_connect("localhost","root","","lmgo"); // Check connection if (mysqli_connect_errno()) { echo "Failed to connect to MySQL: " . mysqli_connect_error(); } mysqli_refresh($con,MYSQLI_REFRESH_GRANT); mysqli_close($con);
Hàm mysqli_select_db() trong PHP - PHP Function
Code $con=mysqli_connect("localhost","my_user","my_password","my_db"); // Check connection if (mysqli_connect_errno()){ echo "Failed to connect to MySQL: " . mysqli_connect_error(); } // ...some PHP code for database "my_db"... // Change database to "test" mysqli_select_db($ ...
Hàm mysqli_set_charset() trong PHP - PHP Function
Code $con=mysqli_connect("localhost","my_user","my_password","my_db"); // Kiểm tra kết nối if (mysqli_connect_errno()){ echo "Failed to connect to MySQL: " . mysqli_connect_error(); } // thay đổi bảng mã kí tự thành utf-8 mysqli_set_charset($con,"utf8"); mysqli_close($con) ...
Hàm mysqli_stat() trong PHP - PHP Function
Code $con=mysqli_connect("localhost","my_user","my_password","my_db"); // Check connection if (mysqli_connect_errno()){ echo "Failed to connect to MySQL: " . mysqli_connect_error(); } echo "System status: ". mysqli_stat($con); mysqli_close($con);
Hàm basename() trong PHP - PHP Function
Code echo "1- ".basename("/etc/Zaidap.com.net", ".net")."<br />"; echo "2- ".basename("/etc/Zaidap.com.net")."<br />"; echo "3- ".basename("/etc/Zaidap.com")."<br />"; echo "4- ".basename("/etc/")."<br />"; echo "5- ".basename(".")."<br />"; echo "6- ...
Hàm chgrp() trong PHP - PHP Function
Code $filename = 'shared_file.txt'; $format = "%s's Group ID @ %s: %d "; printf($format, $filename, date('r'), filegroup($filename)); chgrp($filename, 8); clearstatcache(); // do not cache filegroup() results printf($format, $filename, date('r'), filegroup($filename));