Bravo List

Bravo List (http://www.bvlist.com/index.php)
-   Community Cafe (http://www.bvlist.com/forumdisplay.php?f=18)
-   -   category function (http://www.bvlist.com/showthread.php?t=6079)

it53lv 27th February 2011 00:31

category function
 
So i'm writing a little thing and i'm kinda stuck at some simple place :wallbash:
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:


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 :wallbash:

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?

daffy 8th March 2011 16:50

which source

it53lv 8th March 2011 16:58

custom made


All times are GMT +2. The time now is 13:27.

Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.