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

Recent

Welcome to TinyPortal. Please login or sign up.

May 28, 2023, 01:01:33 AM

Login with username, password and session length
Members
  • Total Members: 3,864
  • Latest: Joonoz
Stats
  • Total Posts: 194,353
  • Total Topics: 21,156
  • Online today: 82
  • Online ever: 3,540
  • (September 03, 2022, 01:38:54 AM)
Users Online
Users: 0
Guests: 91
Total: 91

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.