PHP Indonesia - Facebook | PHP Indonesia is a community for everyone that loves PHP. Our focus is in the PHP world but our topics encompass the entire LAMP stack. Topics include PHP coding, to memcached handling, db optimizations, server stack, web server tuning, code deploying, hosting options and much much more. Youtube Channel : http://www.youtube.com/user/OurPHPIndonesia Twitter : @php_indonesia NOTE: Rules for Wall posting: https://www.facebook.com/groups/35688476100/doc/10151597056316101/ Daftar Keanggotaan : http://www.facebook.com/groups/35688476100/doc/10150671770741101/ | |
 | Design-Led Engineering
Sourcebits - When your Mobile App has to be absolutely developed right. We've built more than 20 apps that have cracked the Top 10 in the App Store.  | From our sponsors | | |
mhon bantuanya PASS udh bner tpi mlah ini yang kel... Sep 2nd 2013, 10:39, by Ariez | mhon bantuanya PASS udh bner tpi mlah ini yang keluarl "Access denied for user 'root'@'localhost' (using password: yes)" |
| | localhostnya diganti atuh pak |
| | bkan itu mksd sya di input scra online gan
ini codenya <html>
<head><title> input data ke dalam database</title></head>
<body>
<form action=# method=post>
<table border=1>
<tr>
<td>Nama</td><td>:</td><td><input type=text name=nama size=20></td>
</tr>
<tr>
<td>komentar</td><td>:</td><td><input type=text name=komentar size=20></td>
<tr>
<td colspan=3><input type=submit value=Simpan name=proses></td>
</tr>
</table> <html> <?php
if($_POST['proses']){
$nama=$_POST['nama'];
$komentar=$_POST['komentar'];
$databasename='mangat';
$link=mysql_connect('localhost','root','')
or die (mysql_error());
mysql_select_db($databasename,$link);
$sql="INSERT INTO list (nama,komentar) VALUES ('$nama','$komentar')";
$query=mysql_query($sql);
if($query){
echo "Data Berhasil Diinput";
}else{
echo "Data Gagal Diinput";
}
} ?>
</body>
</html>
</body>
</html> |
| | passwordnya mas sesuaikan dengan localhost servernya |
| | buka di koneksi.php nya ganti localhost jd nama server dan passwordnya!!!!! | | |
|
Tidak ada komentar:
Posting Komentar