MySQL

Contoh Script Koneksi MySQL Dengan PDO di PHP

29 Nov 2016

<?php echo ($_POST[‘nama’]); echo ($_POST[‘kelas’]); /*mysql_connect(‘localhost’, ‘root’, ”);*/ /*mysql_connect(‘server’, ‘user’, ‘password’) */ $server = “localhost”; $username = “root”; $password = “”; $dbname = “sekolah”; /* $conn = new mysqli($server, $username,...