Cara Koneksi PHP ke Mysql
Berikut cara mengkoneksikan PHP ke database mysql..
Ingat.. Mysql, bukan Mysqli
<title>Koneksi ke Databse</title>
<link href="css/bootstrap.min.css" rel="stylesheet">
<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
<script src="jquery.min.js"></script>
<!-- Include all compiled plugins (below), or include individual files as needed -->
<script src="js/bootstrap.min.js"></script>
<?php
mysql_connect("localhost", "root" ,"" ) or die(mysql_error());
mysql_select_db("db_informasi") or die(mysql_error());
?>
0 Response to "Cara Koneksi PHP ke Mysql"
Post a Comment