ich hab ein problem mit folgendem:
Code: Alles auswählen
$team = array();
if (isset($HTTP_POST_VARS['Tag']))
{
$tag = $_POST["Tag"];
}
$tag = request_var('tag', 0, true, true);
else
{
$sql = "SELECT (case when max(spieltag) is null then 0 else max(spieltag) End) as spieltag FROM tippspiel_spieltage";
$result = $db->sql_query($sql);
while($row = $db->sql_fetchrow($result))
{
$tag = $row['spieltag']+1;
}
if ($tag > $tippspiel_config['tipp_spieltaganzahl'])
{
$tag = $tippspiel_config['tipp_spieltaganzahl'];
}
}
if( isset($HTTP_GET_VARS['Tag']))
{
$tag = $_GET["Tag"];
}
for ($s = 1 ; $s < $tippspiel_config['tipp_spieltaganzahl']+1; $s++)
{
$template->assign_block_vars('form_block', array(
'S_SPIELTAG' => $s,
'S_SELECTED' => ($tag == $s) ? 'selected' : ''
)
);
}
Code: Alles auswählen
if(isset($HTTP_POST_VARS['foo']))
{
$foo = intval($HTTP_POST_VARS['foo']);
}
elseif(isset($HTTP_GET_VARS['foo']))
{
$foo = intval($HTTP_GET_VARS['foo']);
}
else
{
$foo = 0;
}
Code: Alles auswählen
$foo = request_var('foo', 0, true, true);
Code: Alles auswählen
$tag = request_var('tag', 0, true, true);
wäre top, wenn mir jemand auf die sprünge helfen könnte