• Downloading from our site will require you to have a paid membership. Upgrade to a Premium Membership from 10$ a month today!

    Dont forget read our Rules! Also anyone caught Sharing this content will be banned. By using this site you are agreeing to our rules so read them. Saying I did not know is simply not an excuse! You have been warned.

Ae vô hỏi chút php nè

mày.hả.bưởi

Active Member
Vip
Ae cho mình hỏi tí , mình đang add smile vào wap chat nhưng nó báo lỗi ae chỉ mình lỗi gì

code mình đây

<?php
error_reporting(0);
require_once("../in/tren.php");
$tit = 'Phòng Chat - Tán Gẫu - Trò Chuyện';
echo '<div class="navigation"><b>Phòng Chat Mới</b></div><div align="right"><div style="border-top: 3px solid #13cfeb;"></div></div></div>';
$sql=@mysql_query("select * from rum order by thoigian desc limit 5;");
$c=mysql_result(mysql_query("select count from rum"),0);
if($c == 0) {
echo '<div class="main_menu"><b style="color:red">Chưa Có Phòng Nào</b></div>';
}else
while($ar=@mysql_fetch_array($sql))
{
echo '<div class="main_menu">&bull;<a href="rum.php?&id='.$ar['id'].'">'.$ar['tenphong'].'</a><br>('.$ar['tgt'].' /'.mysql_result(mysql_query("select count from cmr where idr='".$ar['id']."'"),0).' cm)</div>';
}
echo '</div><br><div class="navigation"><b>Top Phòng Chat</b></div><div align="right"><div style="border-top: 3px solid #13cfeb;"></div></div></div>';
$sql = mysql_query("SELECT * FROM `rum` ORDER BY `luotxem` DESC LIMIT 5");
$c=mysql_result(mysql_query("select count from`rum` WHERE `luotxem` > '0' ORDER BY luotxem"),0);
if($c==0) {
echo '<div class="main_menu"><b style="color:red">Chưa Phòng Nào</b></div>';
}
else while($ar=mysql_fetch_array($sql)) {
echo '<div class="main_menu">&bull;<a href="rum.php?&id='.$ar['id'].'">'.$ar['tenphong'].'</a><br>('.$ar['tgt'].' /'.mysql_result(mysql_query("select count from cmr where idr='".$ar['id']."'"),0).' cm)</div>';
}
echo '<br><div class="main_menu">&raquo;<a href="dsphong.php">Danh sách phòng</a></div>
<div class="main_menu">&raquo;<a href="tao.php">Tạo Phòng Mới</a></div><br><div class="navigation"><b>Chat Room</b></div><div align="right"><div style="border-top: 3px solid #13cfeb;"></div></div></div>';
$ql = 'op';
if($set['chat'] != $ql && $taikhoan['quyen'] < 2)
{ echo '<div class="main_menu"><b style="color:red">Phòng Chat Tạm Thời Đóng Cửa</b></div>';
}else{
if($user_id && $taikhoan['quyen'] != 0)
{
echo '<div class="main_menu"><form action="chat.php?chat=viet" method="post"><textarea cols="20" rows="2" name="noidung"></textarea><input type="submit" value="Gửi"> | <a href="?rf='.rand(1,20).'">Tải Lại</a> | <a href="../chat/bb.php">BBCode</a></form></div><hr>';
}else{
echo '<div class="main_menu"><a href="../dangnhap.php">Đăng nhập</a> hoặc <a href="../dangki.php">Đăng kí</a> thành viên để chat.</div>';
} }
if(!$_GET['page']) {
$_GET['page'] = '1';
}
$page=$_GET['page'];
$chat="SELECT count FROM chat";
$total_chat=mysql_query($chat);
$num_chat=5;
$num_chat=(int)$num_chat;
$lip = $page*5;
$lip = $lip-5;
$chat="SELECT * FROM chat ORDER BY id DESC LIMIT $lip,$num_chat";
$soob=mysql_query($chat);
$count=mysql_result($total_chat,0);
if($count<1) { echo '<div class="main_menu"><font color="red">Phòng Chat Trống</font></div>';
}
else while($v=mysql_fetch_array($soob)) {
$id_chat = trim($v['id']);
$id_chat = (int)$id_chat;
$noidung = bbcode(trim($v['noidung']));
$tg = $v['thoigian'];
$ten = $v['ten'];
if($ten == BOT){
$arnick = '<b style="color:blue">BOT</b> <img src="../img/on.png"> (Cọp)';
$avatar = '<img src="../files/aBOT.png" width="50" height="60" alt="Ảnh">';
$vip = '<img src="../img/ma/vip.png">'; }else{
$arr = mysql_fetch_array(mysql_query("select * from `taikhoan` WHERE `nick` = '".$ten."'"));
if($arr['quyen'] == 0){
$font = 's'; $mau = '#000000'; $c ='(Ban)'; }
if($arr['***'] == nam && $arr['quyen'] == 1){
$font = 'b'; $mau = '#00EEEE'; $c =''; }
if($arr['***'] == nu && $arr['quyen'] == 1){
$font = 'b'; $mau = '#FF00FF'; $c =''; }
if($arr['quyen'] == 2){
$font = 'b'; $mau = '#777700'; $c ='(CMod)'; }
if($arr['quyen'] == 3){ $font = 'b'; $mau = '#0000FF'; $c ='(SMod)'; }
if($arr['quyen'] == 4){
$font = 'b'; $mau = '#DD0000'; $c ='(Admin)'; }
if($arr['quyen'] == 5){
$font = 'b'; $mau = '#FF0000'; $c ='(SV!)'; }
$tvo=mysql_result(mysql_query("select count from online where ten = '".$arr['nick']."'"),0);
if($tvo > 0) { $tvol = '<img src="../img/on.png">'; }else{ $tvol = '<img src="../img/off.png">'; }
$arnick = '<a href="../canhan/pro.php?profile='.$arr['nick'].'"><'.$font.' style="color:'.$mau.'">'.$arr['nick'].'</'.$font.'></a> '.$tvol.' '.$c.'';
$avatar = '<a href="../canhan/pro.php?profile='.$arr['nick'].'"><img src="../files/'.$arr['avatar'].'" width="50" height="60" alt="Ảnh"></a>';
if($vip == 0)
{
$vip = ' <img src="../img/ma/mem.png">';
}else{
$vip = '<img src="../img/ma/vip.png">';
} }
echo '<table width="100%"style="border-left:1px solid #00a6ff; border-bottom:1px solid #00a6ff; border-right:1px solid #00a6ff; background:white; padding:2px; margin:2px"><tr><td align="center" width="32px" ><br>'.$avatar.'<br>'.$vip.'<br></td><td><div style="text-
align:left;" class="main_menu"> '.$arnick.'<br>';
if($user_id)
{
echo ' [<a href="chat.php?chat=quote&q='.$id_chat.'">Q</a>|<a href="../canhan/tin.php?tin=quotet&c='.$id_chat.'">PM</a>]';
}
echo '</div><div class="baiviet" style="text-align:left;">'.$noidung.'<br>('.$tg.')</div></td></tr></table></div>';
if($taikhoan['quyen'] > 1) {
echo '[<a href="chat.php?chat=sua&id='.$id_chat.'"><font class="green">Sửa</font></a> | <a href="chat.php?chat=xoa&id='.$id_chat.'"><font class="green">Xóa</font></a>]<br>____________';
}
echo '</div>';
}
echo '</div>';
if($count > 5) {
echo '<div class="tmn"><b>Trang</b>: ';
$onpage=5;
$pages = ceil($count/$onpage);
showLP($pages);
$count_chat = $count;
echo '</div>';
if($taikhoan['quyen'] > 1)
{
echo '<div class="main_menu">[<a href="chat.php?chat=xoahet"><b class="red">Làm Sạch Phòng</b></a>]</div>';
} }
?>
<?php
function smile($text) {
$text=preg_replace('/\[b\](.*?)\[\/b\]/','<b>$1</b>',$text,1);
$text=preg_replace('/\[i\](.*?)\[\/i\]/','<i>$1</i>',$text,1);
$text=preg_replace('/\[u\](.*?)\[\/u\]/','<u>$1</u>',$text,1);
$text=preg_replace('/\[s\](.*?)\[\/s\]/','<s>$1</s>',$text,1);
$text=preg_replace('/\[blink\](.*?)\[\/blink\]/','<font style="text-decoration:blink">$1</font>',$text,1);
$text=preg_replace('/\[center\](.*?)\[\/center\]/','<center>$1</center>',$text,1);
$text=preg_replace('/\[red\](.*?)\[\/red\]/','<font color="red">$1</font>',$text,1);
$text=preg_replace('/\[blue\](.*?)\[\/blue\]/','<font color="blue">$1</font>',$text,1);
$text=preg_replace('/\[yellow\](.*?)\[\/yellow\]/','<font color="yellow">$1</font>',$text,1);
$text=preg_replace('/\[green\](.*?)\[\/green\]/','<font color="green">$1</font>',$text,1);
$text=preg_replace('/\[aqua\](.*?)\[\/aqua\]/','<font color="aqua">$1</font>',$text,1);
$text=preg_replace('/\[color\=(.*?)\](.*?)\[\/color\]/','<font color="$1">$2</font>',$text,1);
$text=preg_replace('/\[textarea\](.*?)\[\/textarea\]/','<textarea rows="4" cols="30">$1</textarea>',$text,1);
$text=preg_replace('/\[quote\](.*?)\[\/quote\]/','<div class="quote">$1</div>',$text,1);
$text=preg_replace('/\:\)|\:\-\)|8\-\)/','<img src="image/1.gif" alt="" />',$text,1);
$text=preg_replace('/\:\(|\:\-\(|8\-\(/','<img src="image/2.gif" alt="" />',$text,1);
$text=preg_replace('/\;\)|\;\-\)/','<img src="image/3.gif" alt="" />',$text,1);
$text=preg_replace('/\|\:\-P/i','<img src="image/4.gif" alt="" />',$text,1);
$text=preg_replace('/\|\:\-D/i','<img src="image/5.gif" alt="" />',$text,1);
$text=preg_replace('/\:bietloi:/i','<img src="image/bietloiroima.jpg" width="100" alt="" />',$text,1);
$text=preg_replace('/\:botay:/i','<img src="image/botay.jpg" width="100" alt="" />',$text,1);
$text=preg_replace('/\:chan:/i','<img src="image/chan.jpg" width="100" alt="" />',$text,1);
$text=preg_replace('/\:coykiengiko:/i','<img src="image/coykiengiko.jpg" width="100" alt="" />',$text,1);
$text=preg_replace('/\:cuibap:/i','<img src="image/cuibap.jpg" width="100" alt="" />',$text,1);
$text=preg_replace('/\:cuoilennao:/i','<img src="image/cuoilennao.jpg" width="100" alt="" />',$text,1);
$text=preg_replace('/\inthua:/i','<img src="image/dauhang.jpg" width="100" alt="" />',$text,1);
$text=preg_replace('/\:wow:/i','<img src="image/depwa.jpg" width="100" alt="" />',$text,1);
$text=preg_replace('/\:ngon:/i','<img src="image/duxai.jpg" width="100" alt="" />',$text,1);
$text=preg_replace('/\:bietchetlien:/i','<img src="image/bietchetlien.jpg" width="100" alt="" />',$text,1);
$text=preg_replace('/\:batkhaxampham:/i','<img src="image/batkhaxampham.jpg" width="100" alt="" />',$text,1);
$text=preg_replace('/\:gianhuthan:/i','<img src="image/gianhuthan.jpg" width="100" alt="" />',$text,1);
$text=preg_replace('/\:gomthat:/i','<img src="image/gomthat.jpg" width="100" alt="" />',$text,1);
$text=preg_replace('/\:haha:/i','<img src="image/haha.jpg" width="100" alt="" />',$text,1);
$text=preg_replace('/\:imlang:/i','<img src="image/imlang.jpg" width="100" alt="" />',$text,1);
$text=preg_replace('/\:kolamphien:/i','<img src="image/kolamphien.jpg" width="100" alt="" />',$text,1);
$text=preg_replace('/\:love:/i','<img src="image/love.jpg" width="100" alt="" />',$text,1);
$text=preg_replace('/\:nhetay:/i','<img src="image/nhetay.jpg" width="100" alt="" />',$text,1);
$text=preg_replace('/\:nhoem:/i','<img src="image/nhoem.jpg" width="100" alt="" />',$text,1);
$text=preg_replace('/\:eek:cchimse:/i','<img src="image/occhimse.jpg" width="100" alt="" />',$text,1);
$text=preg_replace('/\:nhingi:/i','<img src="image/nhingi.jpg" width="100" alt="" />',$text,1);
$text=preg_replace('/\:tangem:/i','<img src="image/tangem.jpg" width="100" alt="" />',$text,1);
$text=preg_replace('/\:tuideptuicoquyen:/i','<img src="image/tuideptuicoquyen.jpg" width="100" alt="" />',$text,1);
$text=preg_replace('/\:tuingheo:/i','<img src="image/tuingheo.jpg" width="100" alt="" />',$text,1);
$text=preg_replace('/\aumachanh:/i','<img src="image/xaumachanh.jpg" width="100" alt="" />',$text,1);
$text=preg_replace('|http\:\/\/([0-9a-z\-\.\?\/\=\+\_\&\;\%\#\-\)\(\!\,\]\[]*)|iu','<a href="transfer.php?url=\\1">http://\\1</a>',$text);
return $text;
require_once("../in/duoi.php");
?>
 
Máy không support utf-8 nên gây lỗi em à
 
Máy không support utf-8 nên gây lỗi em à

Em sửa đc rùi nhưng nó k hiện smile là sao hả anh :((

----------> Bổ sung bài viết lúc 11:05 <----------> Bài viết trước lúc 10:53 <----------

dc rùi , tks mọi người nha
 
Ừ, không có gì...
 

Facebook Comments

Similar threads
Thread starter Title Forum Replies Date
S ai biết về bắn tiền ở bảo kim vô mình hỏi chút Thảo luận chung 0
T Ai dùng blog của mrtam vô m hỏi chút Kiến thức lập trình 11
T [you] và ae vô m hỏi chút Thảo luận wap việt 21
G ai dùng galaxy y đả root vô mình hỏi tí Android, ios, java, windows phone 2
H thắng vô tớ hỏi với Hỗ trợ sử dụng diễn đàn 0
U Anh thắng vô em hỏi tí về rank alexa Kiến thức lập trình 6
KhangSkull Các pro vô em hỏi về word Máy tính 5
chomchom Share MobiFone: Chọn gói buffet data - Vô tư lướt mạng xã hội cả tháng chỉ 10k Điện thoại di động 0
katy Android Chọn D24 MobiFone: Vô tư giải trí – Không lo cước phí Điện thoại di động 12
katy Android Giới thiệu bạn bè, nhận quà vô hạn từ Vietlott SMS Điện thoại di động 0
katy Android Đăng ký thẻ Lotusmiles nhận vô vàn quà tặng từ MobiFone Điện thoại di động 10
haopro Nonstop Squid Game Remix Trò Chơi Con Mực BASS Đập Vô Cực Thủng Cả Loa Thùng - Vol 2 Âm nhạc 0
tunglamed ĐĂNG KÝ TIN KHUYẾN MÃI – NHẬN VÔ VÀN ƯU ĐÃI Điện thoại di động 1
N MobifoneGO: Vô tư data – Thả ga thẻ cào Thông tin các mạng di động 12
haopro NST Nhạc DJ - Vinahouse 2019 EndGame Đêm Phê Cuối Cùng - Anh Dắt Em Vào Hư Vô Âm nhạc 0
dammechiase Hack Dream League Soccer Mới Nhất Đội Hình Argentina Vô Hạn Coins Trò chơi 0
dammechiase Hack Dream League Soccer Mới Nhất 2019 Đội Hình Pháp Full Chỉ Số Vô Hạn Coins Trò chơi 0
dammechiase Hack Dream League Soccer 2019 Mới Nhất-Đội Hình Arsenal Vô Hạn Coins, Buff Full Chỉ Số 100 Toàn Đội Trò chơi 0
dammechiase Hack Dream League Soccer Mới Nhất 2019 Đội Hình Manchester City DLS19 Vô Hạn Coin Trò chơi 0
dammechiase Hướng Dẫn Hack Dream League Soccer 2019 Đội Hình AC Milan Vô Hạn Coins Trò chơi 0
haopro Album Nhạc Cổ Vũ Đội Tuyển U23 Việt Nam Vô Địch - Nhạc Sàn DJ 2018 Nonstop Bass Dập Liên Tục Không Nghỉ Âm nhạc 0
haopro Nonstop Nonstop dance pop 2017 không bay không lắc đời vô vị Âm nhạc 0
Thichquangboom Fshare.vn: Ngày nhiều vô tận, giá giảm bất ngờ Thông tin khuyến mại Fshare 0
Thichquangboom Fshare miễn phí người dùng khi Leicester vô địch !!! Thông tin khuyến mại Fshare 1
fsend.vn Trực tiếp trận tranh hung GIẢI VÔ ĐỊCH PES ĐÔNG NAM Á - Sea Champion League 2016 Trò chuyện linh tinh 1
hunglata Ai biết làm film vô Thiết kế đồ họa 10
cuken Truyện Cười - Vô Hết Chưa Truyện cười 4
B Việt Nam Vô Đối mới nhất Truyện cười 0
Cuongstyleyb Hướng dẫn Hướng dẫn UnLock Tài khoản Facebook bị Vô Hiệu Hoá ( FAQ ) by Lee Dzung Tut, tool, mmo 0
Admin Hướng dẫn vô hiệu hóa gửi mail vbulletin Vbb tutorial 0
I Xin Anh em ai reg domain quốc tế vào giúp cái vô cùng cấp thiết. Hosting & Domain Share 0
Admin Hướng dẫn vô hiệu hóa chuyển hướng khi di chuyển và gộp chủ đề vbb Vbb tutorial 0
Admin Hướng dẫn tạo plugin vô hiệu hóa ai đã đọc bài viết cho vbb Vbb tutorial 0
W Thảo luận Text link site ** nè nhào vô Thảo luận wap việt 0
H Tại sao wap mình vô bằng ucbrow không được Thảo luận wap việt 3
W Hôm nay nhà vịttel đã khuyến mãi nhào vô nào Tin tức, sự kiện thường ngày 0
N Android Nơi bán Sky A810 chính hãng giá vô cùng ưu đãi Android, iOS 0
T Thủ thuật Địa chỉ bán SAMSUNG S2 HD giá vô cùng ưu đãi Điện thoại di động 0
T SPVH Địa chỉ bán LG G F180 cũ 90-98% giá cả vô cùng phải chăng Điện thoại di động 0
I Bill Haas vô địch công ty uy tín nhất về giày patin AT&T National Trò chuyện linh tinh 0
C Giới thiệu trang bị account đấu tập cùng nhà vô địch Trò chuyện linh tinh 0
C Chúc mừng Gunner Việt đoạt ngôi vô địch thế giới Trò chuyện linh tinh 0
nhokzodanh Congtu37 vô đây Trò chuyện linh tinh 1
blog4me Kết thúc 1 ngày buồn vô tận Trò chuyện linh tinh 3
Lee_Jin Help Ai on = pc vô up code lên wapftp hộ mình với Johncms 3
Lee_Jin Hỏi Vô hiệu hoá header ở file index cuả xtgem thế nào? Wap builder, wapego, xtgem, wen.ru, wapka, wap4 1
T Nhà cái: Muller ghi bàn, Bayern vô địch Tin tức, sự kiện thường ngày 0
T MU: 5 khiếm khuyết của nhà vô địch Tin tức, sự kiện thường ngày 0
L [Help]ae ai biết ghép nhạc nhào vô mình nhờ tí nhé! Âm nhạc 0
G ai dùng galaxy Y vô gấp Thủ thuật ĐTDĐ 8

Similar threads

New posts New threads New resources

Back
Top