[Openfirst-cvscommit] emoticon emoticonf.php,1.9,1.10
Brought to you by:
xtimg
From: <xt...@us...> - 2003-08-23 20:14:47
|
Update of /cvsroot/openfirst/emoticon In directory sc8-pr-cvs1:/tmp/cvs-serv11958 Modified Files: emoticonf.php Log Message: Replace mysql functions with new database functions Index: emoticonf.php =================================================================== RCS file: /cvsroot/openfirst/emoticon/emoticonf.php,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** emoticonf.php 23 Aug 2003 20:06:38 -0000 1.9 --- emoticonf.php 23 Aug 2003 20:14:44 -0000 1.10 *************** *** 35,39 **** $query = ofirst_dbquery("SELECT * FROM ofirst_emoticon"); ! if (mysql_num_rows($query) != 0){ while ($er = ofirst_dbfetch_object($query)) { $text = str_replace($er->emoticon, $er->substitution, $text); --- 35,39 ---- $query = ofirst_dbquery("SELECT * FROM ofirst_emoticon"); ! if (ofirst_dbnum_rows($query) != 0){ while ($er = ofirst_dbfetch_object($query)) { $text = str_replace($er->emoticon, $er->substitution, $text); *************** *** 65,69 **** $query = ofirst_dbquery("SELECT * FROM ofirst_slurblock"); ! if (mysql_num_rows($query) != 0){ while ($er = ofirst_dbfetch_object($query)) { $text = str_replace($er->slur, $er->substitution, $text); --- 65,69 ---- $query = ofirst_dbquery("SELECT * FROM ofirst_slurblock"); ! if (ofirst_dbnum_rows($query) != 0){ while ($er = ofirst_dbfetch_object($query)) { $text = str_replace($er->slur, $er->substitution, $text); |