1
ChadK
I want to show chat topics.. getting '
  • 2004/8/25 18:01

  • ChadK

  • Quite a regular

  • Posts: 242

  • Since: 2004/7/9 1


I use flashChat and I am trying to make a block that shows the recent chat topics. here's what I have so far but is shows any chat lines that have a ' in them instead with '
Any idea how I can get rid of that?
print "";
global 
$xoopsDB;
$sql="SELECT COUNT(id)  
FROM  `xoops_messages` 
WHERE xoops_messages.command =  'msg'"
;
$result $xoopsDB->query($sql);
$row mysql_fetch_array($result);
$start=$row[0]-5;
$sql="SELECT xoops_users.uname, `txt`
FROM `xoops_messages`
INNER JOIN xoops_users ON xoops_messages.userid = xoops_users.uid
WHERE xoops_messages.command = 'msg'
ORDER BY xoops_messages.created ASC LIMIT "
.$start." , 5";
$result $xoopsDB->query($sql);
while (
$row mysql_fetch_array($result)) {
     print 
$row[0].":".$row[1]."";
}
print 
"";

Login

Who's Online

327 user(s) are online (243 user(s) are browsing Support Forums)


Members: 0


Guests: 327


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits