Senin, 14 Oktober 2013

PHP Indonesia - Facebook: Ni Gambarnya Dari kirimanku yang pertama.

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/ 
Start taking a college level music theory class today.

This beginner class is now accessible to aspiring musicians of all ages. Learn all of the basic concepts in an easy to follow manner.
From our sponsors
Ni Gambarnya Dari kirimanku yang pertama.
Oct 14th 2013, 09:50, by Saiful Stmik Dipanegara

Saiful Stmik Dipanegara 9:50am Oct 14
Ni Gambarnya Dari kirimanku yang pertama.

Saiful Stmik Dipanegara 9:55am Oct 14
Iful.php(Index)
<html>
<head>
<title>Index</title>
<link rel="stylesheet" href="stile.css">
</head>
<body>
<div id="main">
<?php include "menu.php";
?>
<div id="header">
<img src="Gambar/head.jpg">
</div>
<div id="menu-tengah">
<div id="bg-menu">Silahkan Membaca
</div>
<div id="content-menu">
<?php
include "koneksi.php";
include "test.php";
include "baru.php";
?>
</div>
</div>
<div id="menu-kanan">
<div id="bg-menu">Last news
</div>
<div id="content-menu">
<?php
include "koneksi.php";
include "kategori.php";
?>
</div>
</div>
<div class="clear">
</div>
<div id="footer">
<img src="gambar/foot.jpg">
</div>
</div>
</body>
</html>

Test.php
<html><head>
<link rel="stylesheet" href="stile.css">
</head>
<body>
<?php
include "koneksi.php";
include "search.php";
$id_arikel=$_GET['id_artikel'];
$isi = $result['isi'];
$isi = substr($isi,0,40);
$isi = substr($isi,0,strrpos($isi," "));
$query=mysql_query("select * from artikel where id_artikel='$id_artikel'");
?>
<center>
<?php
while($row=mysql_fetch_array($query)){
?>
<input type="hidden" name="id_artikel" value="<?php echo $id_artikel;?>"/>
<tr>
<?php echo $row['judul'];?> <br>
</tr>
<tr>
<?php echo $row['isi'];?> <br>
</tr>
<tr>
<?php echo "<img src='img/$row[foto]' width='200' height='200' border='2px'";?>/><br>
</tr>
<?php
print "<h4><b>Komentarnya : </b></h4><hr width='200px'>";
include "comment.php";
?>
<?php
if ($_REQUEST['entry'] == "comment")
{
$id_komentar = $_POST['id_komentar'] ;
$nama_komentar = $_POST['nama_komentar'];
$isi_komentar = $_POST['isi_komentar'];
$query2 = "insert into komentarnya values('','$id_komentar','$nama_komentar','$isi_komentar')";
$runquery2 = mysql_query($query2);
print "Berhasil di masukkan<br>";
print "<a href='iful.php?id_artikel=<?php echo $result[id_artikel]; ?>'>Kembali. . .</a>";

}
?>
<?php
}
?>
</table>
</form>
</center>
</body>
</html>

Comment.php
<html><head>
<link rel="stylesheet" href="stile.css">
</head>
<body>
<?php
include "koneksi.php";
$query = "select nama_komentar, isi_komentar from komentarnya where id_komentar=$id_artikel order by id_artikel asc";
$runquery = mysql_query($query);
while ($result = mysql_fetch_array($runquery))
{

$nama_komentar = $result['nama_komentar'];
$isi_komentar = $result['isi_komentar'];

print "<h4>Nama : $nama_komentar <br> $isi_komentar</h4> <hr>" ;
}
?>
<br>

<b>Isi Komentar :</b> </br>
<form action="?entry=comment" method="post">
nama : <input type="text" name="nama_komentar"><br>
komentar : <br><textarea name="isi_komentar" rows="10" width="800px"></textarea><br>
<input type="submit" name="submit" value="submit">
<input type="hidden" name="id_komentar" value="<?php print $id_artikel ;?>"> </form>
</body>
</html>

Bro Minta Tolong Gi mana Supaya COmentarnya Bisa Terinput dan tampil di Halaman Utama.

Newbie Sourcecodeerror 9:57am Oct 14
inbox

Saiful Stmik Dipanegara 10:05am Oct 14
mksdx/>>

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