Jumat, 11 Oktober 2013

PHP Indonesia - Facebook: Mw tanya gan ane bikin form buat isi data ke datab...

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/ 
Curious about the benefits of meditation?

In just a few minutes daily, this course will teach you how to relax and relieve stress. Even with a full schedule, you will want to make time for this!
From our sponsors
Mw tanya gan ane bikin form buat isi data ke datab...
Oct 12th 2013, 03:18, by Vesva ID

Vesva ID 3:18am Oct 12
Mw tanya gan ane bikin form buat isi data ke database tulisan d browser y udah berhasil connect tp ko d tabel database y g ad data y ya gan ? ini contoh scrip buat koneksiin ke database,, Sebelum y makasih ya :D

<html>
<body>
<?php
$no=$_POST[no];
$nim=$_POST[nim];
$nama=$_POST[nama];
$jurusan=$_POST[jurusan];
$thn_lulus=$_POST[thn_lulus];
$koneksi = mysql_connect("localhost","root","");

if (!$koneksi) {
die('could not connect: ' .mysql_error());
}
else {
echo 'success connected to database <br \>' ;
}
?>
</html>
<a href="index.php">datanye nambeh<a>
</body>

Rizki Romadhoni 3:21am Oct 12
udah konek, trus mysql msih bingung mau make database yg mana :-D

Vesva ID 3:23am Oct 12
maksud y mysql_select_db gan ?

Rizki Romadhoni 3:23am Oct 12
index array juga hrus pke tanda ' cth: $_POST['no']

Rizki Romadhoni 3:24am Oct 12
iya :-D udah blum?

Vesva ID 3:25am Oct 12
ok tq gan info y ane coba dulu.

Candra Nur Ihsan 3:25am Oct 12
querynye mane

Rizki Romadhoni 3:26am Oct 12
haha.. mysql juga gmau ngasih data kalo ga minta dlu.. mysql_query()

Daniel Setiawan 3:27am Oct 12
iye bener klo buat koneksiin ini udah cukup..
buat biar ada di Db, data nya di masukin dlu dong...
pake 1 script php lg.. :v

Livan Koko Afryanto 3:29am Oct 12
sudah bener koq kamu.. cuman ada yang kurang.. kamu kurang execute insert into nya.. pakai mysql_query contoh http://perpustakaanku.pusku.com/kv6asg78d.php

Daniel Setiawan 3:31am Oct 12
untuk jago maenin DB di php, harus hafal coding SQL dlu..

Vesva ID 3:32am Oct 12
ok tq all info y msh newbi lg coba" aj :D

Rizki Romadhoni 3:38am Oct 12
good luck bro.. yg pnting jangan nyerah

Vesva ID 3:49am Oct 12
klo digabung gini kira"bisa ga gan script y
<?php
include 'koneksi.php';
$koneksi =mysql_connect("localhost","root","");
$db = mysql_select_db("webalumni",$con);
$query = "SELECT * FROM tracer_study";
$result = mysql_query($query);
$no=$_POST['no'];
$nim=$_POST['nim'];
$nama=$_POST['nama'];
$jurusan=$_POST['jurusan'];
$thn_lulus=$_POST['thn_lulus'];

Febrian Alif Pramoedito 3:54am Oct 12
$sql = mysqli_query("INSERT INTO webalumni(no,nim,nama,jurusan,thn_lulus) VALUES('".$no."','".$nim."','".$nama."','".$jurusan."','".$thn_lulus.'")"); digituin dulu kan???

Vesva ID 4:03am Oct 12
tq gan Febrian bisa :D

Febrian Alif Pramoedito 4:04am Oct 12
baca2 lagi tutorial sql :D

Vesva ID 4:05am Oct 12
seep biasa corban copi paste hehe

You are receiving this email because you subscribed to this feed at blogtrottr.com.

If you no longer wish to receive these emails, you can unsubscribe from this feed, or manage all your subscriptions

Tidak ada komentar:

Posting Komentar