Re: [ITCENTER]tolong ya kasih tahu cara koneksi Php ke MySQL
From: Danang Nur Cahyadi Bagaimana ya koneksi php ke MySQL, saya coba-coba gak bisa tolong ya! == ?php // nama server basis data MySQL, biasanya localhost $server = localhost; // nama pengguna/user basis data, defaultnya root $user = root; // password mysql. Defaultnya kosong $pass = rahasia; // misalkan passwordnya adalah rahasia // membuka koneksi PHP ke basis data MySQL $koneksi = mysql_connect($server, $user, $pass) or die(Salah server, nama pengguna, atau passwordnya!); mysql_select_db(db_name); //nama database yang digunakan. ? -- www.itcenter.or.id - Komunitas Teknologi Informasi Indonesia Gabung, Keluar, Mode Kirim : [EMAIL PROTECTED] ## Jobs: itcenter.or.id/jobs ## Bursa: itcenter.or.id/bursa ## ## Jaket ITCENTER tersedia di http://shop.itcenter.or.id Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/ITCENTER/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/ITCENTER/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [ITCENTER]tolong ya kasih tahu cara koneksi Php ke MySQL
coba script berikut: ?php $conn = mysql_connect(alamat,user,password) if ($conn) { mysql_select_db(nama_database); } } Danang Nur Cahyadi [EMAIL PROTECTED] wrote: Bagaimana ya koneksi php ke MySQL, saya coba-coba gak bisa tolong ya! - Park yourself in front of a world of choices in alternative vehicles. Visit the Yahoo! Auto Green Center. [Non-text portions of this message have been removed] - Sucker-punch spam with award-winning protection. Try the free Yahoo! Mail Beta. [Non-text portions of this message have been removed] -- www.itcenter.or.id - Komunitas Teknologi Informasi Indonesia Gabung, Keluar, Mode Kirim : [EMAIL PROTECTED] ## Jobs: itcenter.or.id/jobs ## Bursa: itcenter.or.id/bursa ## ## Jaket ITCENTER tersedia di http://shop.itcenter.or.id Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/ITCENTER/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/ITCENTER/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [ITCENTER]tolong ya kasih tahu cara koneksi Php ke MySQL
Coba script berikut : ?php // membuka koneksi $conn = mysql_connect(localhost, , ); // memilih database yang akan digunakan mysql_select_db(kawan,$conn) or die(koneksi gagal); // memberi perintah SQL $sql = CREATE TABLE telepon ( id int not null primary key auto_increment, nama varchar (50), telp varchar (25)); // mengeksekusi perintah SQL $hasil = mysql_query($sql, $conn); // menampilkan isi hasil echo $hasil; ? - Danang Nur Cahyadi [EMAIL PROTECTED] wrote: Bagaimana ya koneksi php ke MySQL, saya coba-coba gak bisa tolong ya! - Park yourself in front of a world of choices in alternative vehicles. Visit the Yahoo! Auto Green Center. [Non-text portions of this message have been removed] - Need a vacation? Get great deals to amazing places on Yahoo! Travel. [Non-text portions of this message have been removed] -- www.itcenter.or.id - Komunitas Teknologi Informasi Indonesia Gabung, Keluar, Mode Kirim : [EMAIL PROTECTED] ## Jobs: itcenter.or.id/jobs ## Bursa: itcenter.or.id/bursa ## ## Jaket ITCENTER tersedia di http://shop.itcenter.or.id Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/ITCENTER/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/ITCENTER/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [ITCENTER]tolong ya kasih tahu cara koneksi Php ke MySQL
Bagaimana ya koneksi php ke MySQL, saya coba-coba gak bisa tolong ya! - Park yourself in front of a world of choices in alternative vehicles. Visit the Yahoo! Auto Green Center. [Non-text portions of this message have been removed] -- www.itcenter.or.id - Komunitas Teknologi Informasi Indonesia Gabung, Keluar, Mode Kirim : [EMAIL PROTECTED] ## Jobs: itcenter.or.id/jobs ## Bursa: itcenter.or.id/bursa ## ## Jaket ITCENTER tersedia di http://shop.itcenter.or.id Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/ITCENTER/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/ITCENTER/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/