This is the community forum. For a developer response use the Client Area.
Follow us on Facebook, Twitter and YouTube!

Tanya Cara menampilkan coment user dan admin di halaman customer
#1

permisi para sesepuh newbie minta bantuan yaa..
mau tanya script php untuk nampilkan komentar di halaman user yang di mana isi kolom komentarnya hanya id user dan hasil reply dari admin website itu gmn ya???

PHP Code:
[color=#9400D3][b]form input nya[/b][/color]
<?php
<?php
include "koneksi.php";
$pelanggan = $_SESSION['user'];
$hari_ini = date("Y-m-d");
?>
<form method="post" action="direct_tanyajawab.php">
<table align="center"><tr><td colspan="3" align="center"></td></tr>
<tr><td>Pertanyaan Tentang</td><td>:</td><td><select name="PERTANYAAN_TENTANG"><option value="0" selected></option>
<option value="PRODUK">Produk</option>
<option value="PROMOSI">Promosi</option>
<option value="TRANSAKSI PEMBELIAN">Transaksi Pembelian</option>
<option value="DELIVERY">Delivery</option>
</select>
</td></tr>

<td style="display:none">
<input type="text" value="<?php { echo "$hari_ini";} ?>" name="PERTANYAAN_TGL">
</td>
<tr><td>Nama Pelanggan </td><td>:</td><td><input type="text" name="PELANGGAN_NAMA" value="<?php { echo "$pelanggan"; }?>" readonly="" /></td></tr>
<tr><td valign="top">Isi Pertanyaan </td><td valign="top">:</td><td><textarea name="PERTANYAAN_ISI" rows="7" cols="50"></textarea></td></tr>
<tr><td> </td><td></td><td><input type="submit" name="submit" value="Send" /><input type="reset" name="reset" value="Clear" /></td></tr>
</table></form>

[color=#9400D3][b]ini form untuk view komentar dari custumer (tapi komentar dari admin g muncul)[/b][/color]

<?php
include "koneksi.php";

$query = "SELECT PELANGGAN_NAMA,PERTANYAAN_TENTANG,PERTANYAAN_TGL,PERTANYAAN_ISI FROM pertanyaan WHERE PELANGGAN_NAMA='$pelanggan' ORDER BY PERTANYAAN_TGL";
$hasil = mysql_query($query);
while (
$data=mysql_fetch_array($hasil)) {
?>
<tr><td colspan="2"><?php echo "<hr/>"; ?></td></tr>
<tr><td bgcolor="#FF9900" align="left" colspan="2"><font color="#FFFFFF" face="Comic Sans MS, cursive"><?php echo $data['PELANGGAN_NAMA']; ?></font></td></tr>
<tr><td><font size="-1"><?php echo $data['PERTANYAAN_TENTANG']; ?> <?php echo $data['PERTANYAAN_TGL']; ?></font></td></tr>
<tr><td colspan="3"><?php echo $data['PERTANYAAN_ISI']; ?></td></tr>

<?php
}
?> ?>
Reply
#2

Please post this question in English.

Have you completed the interview?
Reply
#3

(29-May-2012, 10:11 AM)Steven Wrote:  Please post this question in English.

I'm so sorry

I want make comment like as :

Custummer login in web with session, and then he ask product in administrator website, admin reply comment from custummer in back office or administrator page and then in custumer page show his comment and comment reply from administrator, I want don't show comment from any custumer. So in this custumer page only show admin reply and his comments.

I want make script with php and mysql
Reply
#4

It's difficult to understand what you mean, but it sounds like you want a 'ticket support system'.

Something like this http://www.hesk.com/

Have you completed the interview?
Reply
#5

(31-May-2012, 10:40 AM)Steven Wrote:  It's difficult to understand what you mean, but it sounds like you want a 'ticket support system'.

Something like this http://www.hesk.com/

no, my mean like interview, between custumer with custumer service, so custumer login in my website and custumer type answer in form and then custumer service will be reply answer from custumer
Reply


Possibly Related Threads…
Thread / Author Replies Views Last Post
Last Post by Steven
23-Feb-2014, 01:57 PM
Last Post by skilife
13-May-2012, 01:11 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)