require('./Settings.php');
$link = mysql_connect($db_server, $db_user, $db_passwd);
mysql_select_db($db_name, $link);
// Functions begin
// All returns array
// game_list( [category id] )
//function game_list($cat_id = ""){
global $link,$db_prefix,$boarddir,$boardurl;
function game_list($cat_id = ""){
{
// Game listing (Default)
$context['sub_template'] = 'game_list'; // Set subtemplate to correct
$query= "SELECT * FROM {$db_prefix}games_favorite WHERE member='{$ID_MEMBER}'";
while($fob = mysql_fetch_array($res))
{
$myf[] = $fob['game'];
}
// 0 - 11
$order_array = array('name','id','game','dsc','highscore','category','width','height','type','file','bgcolor','help','rating');
}
i started this code but i cant seem to get it to work if anyone insrested and helping me feel free this is my first time trying to code something
It's not work with my site :o
If you read the whole post you can see why itÂÃ,´s not working ;)
Quotestarted this code but i cant seem to get it to work if anyone insrested and helping me feel free this is my first time trying to code something
why is this included in the Snippets Index if it's not working?
Because we don't test any of the snippets, its just an index of posts. More is planned for the block code snippets board, but as it stands I'm not going to go through and make sure everything works in this board until Bloc is ready to change he way we do it for TP 1.0.