Pradinis
Pagalba
Užsisakyk!
- Reklamą
- Hostingą
- El. pašto dėžutę
Užsisakyk!
Įrankiai
Pasidalink
- Visos temos
Forumas | PHP-Fusion, WordPress, Shopify, PHP ir MySQL (PROGRAMAVIMAS) | Bendri PHP-F klausimai |
Autorius: cropp | Peržiūrų: 1578 |
cropp Narys Margas Pranešimai: 89 Įstojęs: 2011 Gru. 24 00:12:51 | |
Sveiki, reikia jūsų pagalbos turiu modą ant v6 fusioną jį pasiredagavęs pasileidau ant v7, tačiau nerodo vienos užklausos. Iš pradžių rodo fantasy sport ir latest game opentable, paspaudžius ant komandų nieko neišmeta <a href='".FUSION_SELF."?game_id=".$data['game_id']."'>".$guest['team_name']." vs. ".$home['team_name']."</a> , o turėtų išmesti šią dalį, redirect(FUSION_SELF."?game_id=".$data['game_id']."&st=b"); } elseif(isset($game_id) && is_numeric($game_id)){ if($st == "b") echo "<b>Your bet was placed</b><br><br>"; opentable("Fantasy Sportsss"); $result = dbquery("SELECT * FROM ".DB_PREFIX."fs_games WHERE game_id='$game_id'"); if(!dbrows($result)) fallback(FUSION_SELF); $data = dbarray($result); $guest = dbarray(dbquery("SELECT * FROM ".DB_PREFIX."fs_teams WHERE team_id='".$data['game_guest']."'")); $home = dbarray(dbquery("SELECT * FROM ".DB_PREFIX."fs_teams WHERE team_id='".$data['game_home']."'")); echo "<table cellpadding='0' cellspacing='0' width='100%' class='tbl'>\n<tr>\n"; echo "<td>Namu Komanda:</td><td><a href='".FUSION_SELF."?team_id=".$home['team_id']."'>".$home['team_name']."</a></td></tr>"; echo "<tr>\n"; echo "<td>Sveciu Komanda:</td><td><a href='".FUSION_SELF."?team_id=".$guest['team_id']."'>".$guest['team_name']."</a></td></tr>"; echo "<tr>\n"; echo "<td>Laikas:</td><td>".$data['game_time']."</td></tr>"; echo "<tr>\n"; if($data['game_winner']){ $winner = dbarray(dbquery("SELECT * FROM ".DB_PREFIX."fs_teams WHERE team_id='".$data['game_winner']."'")); echo "<td>Nugaletojas:</td><td>".$winner['team_name']."</td></tr>"; echo "<tr>\n"; } echo "<td>Pagrindinis Laimejimas:</td><td>"; $jp = dbarray(dbquery("SELECT * FROM ".DB_PREFIX."fs_jackpot WHERE jackpot_game='".$data['game_id']."'")); echo $jp['jackpot_jackpot']." pts."; echo "</td></tr>"; echo "<tr>\n"; echo "</table>"; closetable(); if(iMEMBER){ tablebreak(); opentable("Bet"); if(!$data['game_winner']){ $ha = dbquery("SELECT * FROM ".DB_PREFIX."fs_bets WHERE bet_user='".$userdata['user_id']."' AND bet_game='".$data['game_id']."'"); if(dbrows($ha)) $had = dbarray($ha); echo "<center><form action='".FUSION_SELF."' method='post'>"; echo "<input type='submit' name='guest' class='textbox' value='Bet 20pts on Guest"; if($had['bet_bet'] == $data['game_guest']) echo " √"; if($had) echo "' disabled='true"; echo "'> "; echo "<input type='hidden' name='guest_id' value='".$data['game_guest']."'>"; echo "<input type='submit' name='home' class='textbox' value='La˛ybai 20tašku Namu Komandai"; if($had['bet_bet'] == $data['game_home']) echo " √"; if($had) echo "' disabled='true"; echo "'>"; echo "<input type='hidden' name='home_id' value='".$data['game_home']."'>"; echo "<input type='hidden' name='game_id' value='".$data['game_id']."'>"; echo "</form></center>"; } else { echo "Statyti u˛drausta, laimetojas paskelbtas."; } closetable(); }
|
mNm. Narys Tankas Pranešimai: 2039 Įstojęs: 2008 Rugp. 28 00:08:02 | |
error nemeta jokiu? 0 nolife.lt / c-s.lt |
|
mNm. Narys Tankas Pranešimai: 2039 Įstojęs: 2008 Rugp. 28 00:08:02 | |
pvz pamegink tiesiogini linka. uzeik paprasciausiai i adresas.lt/modas.php?game_id=1 ar ten koks kitas id veikiantis aisku ir ar rodo ka nors 0 nolife.lt / c-s.lt Redagavo mNm. 2013 Gru. 8 15:12:09 #1 nerodo, rodo tą patį veiksmą koks buvo nuo praždių,
/fantasy_sports_panel/fantasy_sports.php einu spaudžiu ant rungtynių linkas pasikeičia /fantasy_sports_panel/fantasy_sports.php?game_id=1 bet vistiek tą patį rodo.... huj žina
o turi šią dalį rodyti..
[geshi=php]redirect(FUSION_SELF."?game_id=".$data['game_id']."&st=b");
} elseif(isset($game_id) && is_numeric($game_id)){
if($st == "b") echo "<b>Your bet was placed</b><br><br>";
opentable("Fantasy Sportsss");
$result = dbquery("SELECT * FROM ".DB_PREFIX."fs_games WHERE game_id='$game_id'");
if(!dbrows($result)) fallback(FUSION_SELF);
$data = dbarray($result);
$guest = dbarray(dbquery("SELECT * FROM ".DB_PREFIX."fs_teams WHERE team_id='".$data['game_guest']."'"));
$home = dbarray(dbquery("SELECT * FROM ".DB_PREFIX."fs_teams WHERE team_id='".$data['game_home']."'"));
echo "<table cellpadding='0' cellspacing='0' width='100%' class='tbl'>\n<tr>\n";
echo "<td>Namu Komanda:</td><td><a href='".FUSION_SELF."?team_id=".$home['team_id']."'>".$home['team_name']."</a></td></tr>";
echo "<tr>\n";
echo "<td>Sveciu Komanda:</td><td><a href='".FUSION_SELF."?team_id=".$guest['team_id']."'>".$guest['team_name']."</a></td></tr>";
echo "<tr>\n";
echo "<td>Laikas:</td><td>".$data['game_time']."</td></tr>";
echo "<tr>\n";
if($data['game_winner']){
$winner = dbarray(dbquery("SELECT * FROM ".DB_PREFIX."fs_teams WHERE team_id='".$data['game_winner']."'"));
echo "<td>Nugaletojas:</td><td>".$winner['team_name']."</td></tr>";
echo "<tr>\n";
}
echo "<td>Pagrindinis Laimejimas:</td><td>";
$jp = dbarray(dbquery("SELECT * FROM ".DB_PREFIX."fs_jackpot WHERE jackpot_game='".$data['game_id']."'"));
echo $jp['jackpot_jackpot']." pts.";
echo "</td></tr>";
echo "<tr>\n";
echo "</table>";
closetable();
if(iMEMBER){
tablebreak();
opentable("Bet");
if(!$data['game_winner']){
$ha = dbquery("SELECT * FROM ".DB_PREFIX."fs_bets WHERE bet_user='".$userdata['user_id']."' AND bet_game='".$data['game_id']."'");
if(dbrows($ha)) $had = dbarray($ha);
echo "<center><form action='".FUSION_SELF."' method='post'>";
echo "<input type='submit' name='guest' class='textbox' value='Bet 20pts on Guest";
if($had['bet_bet'] == $data['game_guest']) echo " √";
if($had) echo "' disabled='true";
echo "'> ";
echo "<input type='hidden' name='guest_id' value='".$data['game_guest']."'>";
echo "<input type='submit' name='home' class='textbox' value='La˛ybai 20tašku Namu Komandai";
if($had['bet_bet'] == $data['game_home']) echo " √";
if($had) echo "' disabled='true";
echo "'>";
echo "<input type='hidden' name='home_id' value='".$data['game_home']."'>";
echo "<input type='hidden' name='game_id' value='".$data['game_id']."'>";
echo "</form></center>";
} else {
echo "Statyti u˛drausta, laimetojas paskelbtas.";
}
closetable();
} [/geshi] — cropp, 2013 Gru. 8 15:12:37 - [Prisegė .DeXter 2014 Vas. 18 17:02:38] |
Peršokti į forumą: |