Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
PHP shoutbox with database
#6
sedikit tambahan dari wong copo

masukan scrip berikut dibawah scrit
"$content = strip_tags(stripslashes($row['content']), $allowed_tags);"
*tanpa kutip

PHP Code:
$content = str_replace(":)", "<img src=\"emoticons/smiley-happy014.gif\">", $content); $content = str_replace(":(", "<img src=\"emoticons/sedih.gif\">", $content); $content = str_replace(":bahagia:", "<img src=\"emoticons/bahagia.gif\">", $content); $content = str_replace(":bingung:", "<img src=\"emoticons/bingung.gif\">", $content); $content = str_replace(":bonyok:", "<img src=\"emoticons/bonyok.gif\">", $content); $content = str_replace(":culas:", "<img src=\"emoticons/culas.gif\">", $content); $content = str_replace(":ehm:", "<img src=\"emoticons/ehm.gif\">", $content); $content = str_replace(":hantu:", "<img src=\"emoticons/hantu.gif\">", $content); $content = str_replace(":D", "<img src=\"emoticons/huwaa.gif\">", $content); $content = str_replace(":love:", "<img src=\"emoticons/love.gif\">", $content); $content = str_replace(":*", "<img src=\"emoticons/kiss.gif\">", $content); $content = str_replace(":maho:", "<img src=\"emoticons/maho.gif\">", $content); $content = str_replace(":mantab:", "<img src=\"emoticons/mantab.gif\">", $content); $content = str_replace(":marah:", "<img src=\"emoticons/marah.gif\">", $content); $content = str_replace(":perimaho:", "<img src=\"emoticons/perimaho.gif\">", $content); $content = str_replace(":santet:", "<img src=\"emoticons/santet.gif\">", $content); $content = str_replace(":sedih:", "<img src=\"emoticons/sedih.gif\">", $content); $content = str_replace(":sombong:", "<img src=\"emoticons/sombong.gif\">", $content); $content = str_replace(":tidak:", "<img src=\"emoticons/tidak.gif\">", $content); $content = str_replace(":what:", "<img src=\"emoticons/what.gif\">", $content); $content = str_replace(":wow:", "<img src=\"emoticons/wow.gif\">", $content);

ss
[Image: 294131_284085274953546_100000562284321_1...1280_n.jpg]
note:
str_replace berfungsi untuk menghapus kata
<img src=\"emoticons/wow.gif\"> lokasi gambar

jadi inti-nya script ini untuk merubah tulisan yg berbentuk smile menjadi sebuah gambar
low ada yg error boleh ditanyakan
Reply


Messages In This Thread
PHP shoutbox with database - by killerbyte - 10-03-2011, 05:18 PM
RE: PHP shoutbox with database - by Up_ - 10-04-2011, 08:35 AM
RE: PHP shoutbox with database - by Gelby - 10-04-2011, 09:58 AM
RE: PHP shoutbox with database - by killerbyte - 10-04-2011, 01:27 PM
RE: PHP shoutbox with database - by Up_ - 10-04-2011, 10:26 PM
RE: PHP shoutbox with database - by febrian - 10-05-2011, 07:48 PM
RE: PHP shoutbox with database - by jaka69 - 10-06-2011, 12:26 AM
RE: PHP shoutbox with database - by febrian - 10-06-2011, 07:50 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
Computer_16 Database PHP MyAdmin faizalpranajaya 5 89 06-06-2014, 06:34 AM
Last Post: faizalpranajaya
  ASK Contoh Database pada situs autofollow fanglisinaulan 0 44 01-14-2014, 09:04 PM
Last Post: fanglisinaulan
Online-offline_16 [ask] Konsep Rancangan Web+Database Dj_Aloy 3 61 11-23-2013, 12:19 AM
Last Post: Dika_xb
  [Ask] script php membaca isi database Terakhir roisbwi 3 93 10-29-2013, 02:43 PM
Last Post: hogyz
  [php & mysql] membatasi data di database yang di tampilkan di php cinta.damai 9 169 04-10-2013, 08:45 PM
Last Post: hogyz
  [ask] Konsep Database Toko Online (e-commerse) al_star54 8 191 12-05-2012, 03:02 PM
Last Post: bedhoel
  Script ShoutboX Chat aandoni 7 164 07-28-2012, 11:08 PM
Last Post: skyland_hacker
  [ask] cara bikin aplikasi perTambahan dalam database gimana ya? jaka69 1 58 06-22-2012, 09:16 AM
Last Post: Dika_xb
  [PHP] Melindungi Password Koneksi ke Database dari Rooting K4pT3N 22 257 06-09-2010, 12:41 PM
Last Post: Cruz3N

Forum Jump:


Users browsing this thread: 1 Guest(s)