Plz tell me hw i can make smiley list by category, adult,emotions,own smileys etc category
Smiley list by difrent category,how?
Started on the old forum in February 2010 · view the original in the archive · old links redirect here
add in _smilies a new line : tipe int(1) ... //
$lcateg = 8; //last categ
$categ = (int)$_GET["cat"];
if($categ<1||$categ>$lcateg)$categ = 0; else $categ = $_GET["cat"];
//replace count
$noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_smilies WHERE tipe='". $categ."'"));
//and replace $sql
$sql = "SELECT id, scode, imgsrc FROM ibwf_smilies WHERE tipe='".$categ."' ORDER BY id DESC LIMIT $limit_start, $items_per_page";
/// and add in links &cat=$categ
//make an action whit links to categ
<a href=\"lists.php?action=smilies&cat=0&sid=$sid\">Diverse Emotions</a><br/>
//
// user 0 for diverse tipe of emotions:D
please help
i0nutzxp wrote: add in _smilies a new line : tipe int(1) ... //
$lcateg = 8; //last categ $categ = (int)$_GET["cat"]; if($categ<1||$categ>$lcateg)$categ = 0; else $categ = $_GET["cat"]; //replace count $noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_smilies WHERE tipe='". $categ."'")); //and replace $sql $sql = "SELECT id, scode, imgsrc FROM ibwf_smilies WHERE tipe='".$categ."' ORDER BY id DESC LIMIT $limit_start, $items_per_page"; /// and add in links &cat=$categ //make an action whit links to categ <a href=\"lists.php?action=smilies&cat=0&sid=$sid\">Diverse Emotions</a><br/> //// user 0 for diverse tipe of emotions:D
i have put new line in smilies database with categ int 1, where do i put the above code?
its already telling you lol
$lcateg = 8; //last categ $categ = (int)$_GET["cat"]; if($categ<1||$categ>$lcateg)$categ = 0; else $categ = $_GET["cat"]; ////////////////////////////////////////////////////////////////////////////////// //replace count ////////////////////////////////////////////////////////////////////////////////// $noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_smilies WHERE tipe='". $categ."'"));
////////////////////////////////////////////////////////////////////////////////// //and replace $sql ////////////////////////////////////////////////////////////////////////////////// $sql = "SELECT id, scode, imgsrc FROM ibwf_smilies WHERE tipe='".$categ."' ORDER BY id DESC LIMIT $limit_start, $items_per_page";
////////////////////////////////////////////////////////////////////////////////// /// and add in links &cat=$categ ////////////////////////////////////////////////////////////////////////////////// //make an action whit links to categ ////////////////////////////////////////////////////////////////////////////////// Diverse Emotions
//
😉
its already telling you lol
$lcateg = 8; //last categ $categ = (int)$_GET["cat"]; if($categ<1||$categ>$lcateg)$categ = 0; else $categ = $_GET["cat"]; ////////////////////////////////////////////////////////////////////////////////// //replace count ////////////////////////////////////////////////////////////////////////////////// $noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_smilies WHERE tipe='". $categ."'"));
////////////////////////////////////////////////////////////////////////////////// //and replace $sql ////////////////////////////////////////////////////////////////////////////////// $sql = "SELECT id, scode, imgsrc FROM ibwf_smilies WHERE tipe='".$categ."' ORDER BY id DESC LIMIT $limit_start, $items_per_page";
////////////////////////////////////////////////////////////////////////////////// /// and add in links &cat=$categ ////////////////////////////////////////////////////////////////////////////////// //make an action whit links to categ ////////////////////////////////////////////////////////////////////////////////// Diverse Emotions
//
😉