Bravo List
Register
Go Back   > Bravo List > P2P > Forum > Community Cafe
Reply
Thread Tools
  #1  
Old 27th February 2011, 00:31
it53lv's Avatar
it53lv it53lv is offline
Senior Member
 
Join Date: Feb 2011
Latvia
Posts: 134
Default category function
So i'm writing a little thing and i'm kinda stuck at some simple place
The idea is simple

I have mysql table "categories" with id,name etc
And "data" table with categorie entrie (ore what you call it)

So the problem is this part in code
Code:
<a href="torrents.php?by_cat&category=<?= $category ?>"><?= $category ?></a>
as you can see there is dublicate for $category function for link name
but what i wan't is kinda hard for me to explain

so the first $category function puts an category id in front of the link (what it takes from mysql "data" table ) and second one basicly displays the category id as well but what i want is that the second one to show categorie name from "categories" table basing it on it's id from "data" table

So any ideas how to define $category for that i know it's kinda simple but i'm stuck here.

Can any one please help?
Reply With Quote
  #2  
Old 8th March 2011, 16:50
daffy's Avatar
daffy daffy is offline
Senior Member
 
Join Date: Mar 2009
United Kingdom
Posts: 550
Default
which source
__________________
"FFS PPL READ GOD DAMMIT, WHAT AM I GOOGLE?"
"I Kill You!" simples


http://i.imgur.com/DtcRfH5.gif

I also Setup And Modify Trackers PM For Details
Reply With Quote
  #3  
Old 8th March 2011, 16:58
it53lv's Avatar
it53lv it53lv is offline
Senior Member
 
Join Date: Feb 2011
Latvia
Posts: 134
Default
custom made
Reply With Quote
Reply

Tags
category , function


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



All times are GMT +2. The time now is 04:42. vBulletin skin by ForumMonkeys. Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.