Thank you for using rssforward.com! This service has been made possible by all our customers. In order to provide a sustainable, best of the breed RSS to Email experience, we've chosen to keep this as a paid subscription service. If you are satisfied with your free trial, please sign-up today. Subscriptions without a plan would soon be removed. Thank you!
mau buat form download... data download di panggil dari folder yang udah di buat sebelumnya. data pelengkapnya di ambil dari isi table pada database.. kurang lebih gini scriptnya, tapi gak nampil yaa : _-------------------------------------------------------------__ //MASUK PHP <?php session_start(); if(!isset($_SESSION['nis'])&&!isset($_SESSION['password'])) { header('location:index.php'); exit;} else { $nis = $_SESSION['nis']; } //KONEKSI DATABASE $koneksi=mysql_connect("localhost","root",""); mysql_select_db("data_learning"); $query= mysql_query("SELECT * FROM materitb"); ?> <body background="Gambar/background.jpg""> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <div id="kotak"> <table width="912" border="0" align="center"> <tr> <td><center> <img src="Gambar/logoysm.jpg" width="180" height="172" /> </center></td> <td width="640"><img src="Gambar/bannersiswa.jpg" width="800" height="160" /></td> </tr> <tr> <td width="262"><a href="indexsiswa.php">Beranda</a></p> <a href="downloadmateri.php">Materi</a> </p><a href="logout_siswa.php">Logout</a></p></td> <p> <td><font color="#009900" size="+3">Materi Pelajaran</font> <p><p> // MASUK PHP <? $cek=mysql_num_rows($query); if($cek){ ?> <h2 align="center">Download Files</h2> <table class="datatable" align="center"> <tr> <th>No</th> <th>Nama File</th> <th>Ukuran (byte)</th> <th>Tgl Upload</th> <th>Keterangan</th> <th>Download</th> </tr> <? while($row=mysql_fetch_array($query)){ ?> <tr> <td><? echo $c=$c+1;?></td> <td><? $row['pengirim'];?></td> <td><? $row['pelajaran'];?></td> <td><? $row['kelas'];?></td> <td><? $row['kelas2'];?></td> <td><? $row['deskripsi'];?></td> <td><? "<a href='file_materi/1544-13-871224403500.doc'> download </a>" ;?></td> </tr> <? } ?> </table> <? }else{ echo "<font color=red><center><b>Belum Ada Data!!</b><center</font>"; } ?> ------------------------------ thanks... | |||
oya buat linknya itu didatabase fieldnya apa ? | |||
datadown gan.... emang dari database dulu gan.. bukan langsung di ambil dri folder.?? :/ |
Hambalie Constantine 05 Jul, 2013
-
Source: http://www.facebook.com/groups/35688476100/?id=10151735867311101
--
Manage subscription | Powered by rssforward.com
Tidak ada komentar:
Posting Komentar