/*
mysql_connect(DB_SERVER, DB_USER, DB_PASSWORD);
mysql_select_db(DB_NAME);
*/
//include("../config/config.php");
//define('DEBUG_LEVEL', 1);
include("../../sub_library.php");
$year = $_REQUEST['year'];
$sql="select * from home_now ";
list(,$result)=query($sql);
$rs=fetchRow($result);
if($year==$rs[year] and $rs[2]==0){
header("location:../main/index.php?year=$rs[year]");
}
//***Query
list(,$result) =query("SELECT * FROM winner WHERE year=$year");
$temp = fetchRow($result);
$w=explode("+",$temp['winner']);
// $w[0] =winner1 , $w[1] =winner2 , $w[2]=winner3 , $w[3] =winner4
?>
:: BBC - SEED OF SUCCESS ::
 |
|
 |
//$result=@mysql_query("SELECT images FROM inside_bg WHERE year=$year");
//$img=@mysql_result($result,0,0);
list(,$result) = query("SELECT images FROM inside_bg WHERE year=$year");
$rw_img = fetchRow($result);
$img = $rw_img['images'];
//$img=@mysql_result($result,0,0);
?>
|
//* check
$sql="select * from main_team where year='$year' and id='$w[0]'";
list(,$result) = query($sql);
$rs = fetchRow($result); //$rs=mysql_fetch_array($result);
//addDebug($rs);
list(,$result) = query("select file_attach1,file_attach2 from winner_fileattach where winner_team='$w[0]'");
$rw_file = fetchRow($result);
$file_attach[0] = $rw_file['file_attach1'];
?>
 |
|
 |
|
//print_r($rs);
$tm=explode("+",$rs[team_m]);
?>
| | |