Smiley list by difrent category,how?

Started on the old forum in February 2010 · view the original in the archive · old links redirect here

6 replies · 662 views · started 16 years ago · 1 min read

5 participants
manavworld Developer · 118 posts #1

Plz tell me hw i can make smiley list by category, adult,emotions,own smileys etc category

i0nutzxp Developer · 150 posts #2

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

<?php unlink('World/Europe/Romania.country'); ?>
Kirsty Developer · 59 posts #4

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?

WhiteWarrior Principal · 1,419 posts #5

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

//

😉

WhiteWarrior Principal · 1,419 posts #6

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

//

😉

animal1982 Junior · 24 posts #7

lists.php, ownercp.php and ownrproc.....search its there lol 🙂

Write your reply now; next you create a free account (or sign in) and it is posted right away. Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close