Senin, 07 Oktober 2013

PHP Indonesia - Facebook: ini kenapa yaa? saya udah bener kok masukin script...

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/ 
ini kenapa yaa? saya udah bener kok masukin script...
Oct 8th 2013, 04:19, by Bagus Sentana

Bagus Sentana 4:19am Oct 8
ini kenapa yaa? saya udah bener kok masukin script phpnya .. kok gk mau tampil

Novarli Siradjuddin 4:20am Oct 8
Querynya salah ...

Bagus Sentana 4:21am Oct 8
<?php

$tampil2=mysql_query("SELECT * FROM depan ORDER BY id DESC");
$r2=mysql_fetch_array($tampil2);
?>

Bagus Sentana 4:21am Oct 8
itu scriptnya gan

Novarli Siradjuddin 4:22am Oct 8
Koneksi ke databasenya mana?

Zaini Jamathsani 4:22am Oct 8
query na komen disini saya perbaiki

Bagus Sentana 4:22am Oct 8
<?php
$my['host'] = "localhost";
$my['user'] = "root";
$my['pass'] = "";
$my['dbs'] = "balitour";

$koneksi=mysql_connect($my['host'],$my['user'],$my['pass']);
if (! $koneksi){
echo "Gagal Koneksi..!".mysql_error();
}
mysql_select_db($my['dbs'])
or die ("Database Tidak Ada".mysql_error());
?>

Bagus Sentana 4:23am Oct 8
ntr saya pake include ke halaman index

Novarli Siradjuddin 4:23am Oct 8
Coba tambahkan
$tampil2=mysql_query("SELECT * FROM depan ORDER BY id DESC") or die(mysql_error());

Lalu lihat dilayar sekarang muncul apa?

Bagus Sentana 4:25am Oct 8
@nova : no databse selected

Bagus Sentana 4:25am Oct 8
hasil d layar

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