Post by Goborijung at 2020-08-02 12:15:01 | ID: 694
UPDATE tblName set url = concat('page?p=',REPLACE(name,' ','%20')) WHERE url = '#'
Post by Goborijung at 2020-04-11 14:26:08 | ID: 492
ref. https://techbloghunting.com/how-to-set-phpmyadmin-password-on-xampp-or-wamp-server/ Goto “C:xampp/phpMyAdmin” or “C:wampapps/phpMyAdmin” and find “Config.inc.php” file. $cfg['Servers'][$i]['auth_type'] = 'config'; $cfg['Servers'][$i]['user'] = 'root'; $cfg['Servers'][$i]['password'] = ''; $cfg['Servers'][$i]['AllowNoPasswordRoot'] = false; chang to $cfg['Servers'][$i]['auth_type'] = 'cookie'; $cfg['Servers'][$i]['user'] = 'root'; $cfg['Servers'][$i]['password'] = 'your_password'; $cfg['Servers'][$i]['AllowNoPasswordRoot'] = false;
Post by Goborijung at 2018-12-24 16:38:31 | ID: 65
https://www.w3schools.com/sql/default.asp
Post by Goborijung at 2024-05-22 11:45:24 | ID: 2015
https://www.inmotionhosting.com/support/website/phpmyadmin-export-table/
Post by Goborijung at 2018-12-24 16:41:36 | ID: 66
// แบบที่ 1 $conn = mysqli_connect('ชื่อโฮส','ชื่อผู้ใช้','รหัสผ่าน','ชื่อฐานข้อมูล') or die('mysqi_error'); mysqli_set_charset($link,'utf8'); //กำหนดการแสดงผลภาษาไทย // แบบที่ 2 $link = mysqli_connect("ชื่อโฮส","ชื่อผู้ใช้","รหัสผ่าน"); $connDB = mysqli_select_db($link,"ชื่อฐานข้อมูล"); mysqli_set_charset($link,'utf8'); //กำหนดการแสดงผลภาษาไทย
Post by Goborijung at 2018-12-24 16:48:20 | ID: 68
// แบบที่ 1 $sql = mysqli_query($conn,"SELECT * FROM table1 t1, table2 t2 WHERE t1.id=t2.id AND t1.id='1' "); // แบบที่ 2 $sql = mysqli_query($conn,"SELECT * FROM table1 t1 INNER JOIN table2 t2 ON t1.id=t2.id WHERE t1.id='1' ");
Post by Goborijung at 2018-12-24 16:51:40 | ID: 69
// แบบที่ 1 $sql = mysqli_query($conn,"SELECT * FROM table1 t1, table2 t2, table3 t3 WHERE t1.id=t2.id AND t1.id=t3.id AND t1.id='1' "); // แบบที่ 2 $sql = mysqli_query($conn,"SELECT * FROM TABLE1 AS t1 INNER JOIN TABLE2 AS t2 ON (t1.id=t2.id) INNER JOIN TABLE3 AS t3 ON (t1.id=t3.id) WHERE t1.id='1' ");
Post by Goborijung at 2018-12-24 16:43:33 | ID: 67
UPDATE `table_name` SET `field_name` = 'value' WHERE `f_id` = '3';
Post by Goborijung at 2019-01-08 09:39:36 | ID: 81
$sql = mysqli_query($conn,"SELECT COUNT(*) AS total FROM tbName"); $data = mysqli_fetch_assoc($sql); echo $data['total'];