Senin, 16 September 2013

PHP Indonesia - Facebook: gan tanya donk..

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/ 
Want free Kindle ebooks?

Sign up to receive the best freebie Kindle ebook deals in your email every day.
From our sponsors
gan tanya donk..
Sep 17th 2013, 04:46, by זי סוטשינהאַ

זי סוטשינהאַ 4:46am Sep 17
gan tanya donk..

<?php
$no = 1;
mysql_connect('localhost','root','');
mysql_select_db('dbmhs');

$tampil="SELECT * FROM upload";
$qryTampil=mysql_query($tampil);
while ($dataTampil=mysql_fetch_array($qryTampil)) {
$no++
?>
<?php

echo "<a href=index.php?app=upload>Upload File</a><br/><br/>";
//database connection
$con = mysql_connect('localhost', 'root', '') or die(mysql_error());
//select database
$db = mysql_select_db('dbmhs', $con);
$query = "SELECT id, name FROM upload";
$result = mysql_query($query) or die('Error, query failed');
if(mysql_num_rows($result) == 0)
{
echo "Database is empty <br>";
}
else
{
while(list($id, $name) = mysql_fetch_array($result))
{
?>
<tr bgcolor="#FFFFFF">
<td><?php echo $no ; ?></td>
<td><?php echo $dataTampil['name']; ?></td>
<td><?php echo $dataTampil['type']; ?></td>
<td><a href="app/download.php?id=<?php echo urlencode($id);?>">Download</a> <br></td>

kok hasil;a malahan semua nama file jadi di ulang sebanyak 15x ya ? mohon bantuan dan pencerahannya gan.

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