TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,964
  • Latest: stylix
Stats
  • Total Posts: 195,933
  • Total Topics: 21,311
  • Online today: 959
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 801
  • Total: 801

Farvorite Game Block

Started by robert420, March 02, 2006, 09:37:18 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

robert420

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

elpvn

It's not work with my site  :o

G6Cad

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

yjobcreations

why is this included in the Snippets Index if it's not working?

IchBin

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.

This website is proudly hosted on Crocweb Cloud Website Hosting.