Forums
This topic is locked
Help on Simple Script
Posted 13 Nov 2005 18:10:24
1
has voted
13 Nov 2005 18:10:24 Frank Riedel posted:
Why will this script not redirect ???<?php
session_start();
$_SESSION['aktuel_uge'] = date("W"+1;
$_SESSION['uge'] = date("W"
?>
<?php
include("adminpro_class.php"
$prot=new protect();
if ($prot->showPage)
$curUser=$prot->getUser();
$_SESSION['user'] = date("W".$curUser ;
$curUser=$prot->getUser();
$_SESSION['userN'] = (date("W"+1).$curUser ;
$curUserV=$prot->getUserV();
$_SESSION['buy_v_user'] = $curUserV ;
{
?>
<?php require_once('Connections/DBZ.php');?>
<?php
$colname_Recordset1 = "1";
if (isset($HTTP_SESSION_VARS['userN'])) {
$colname_Recordset1 = (get_magic_quotes_gpc()) ? $HTTP_SESSION_VARS['userN'] : addslashes($HTTP_SESSION_VARS['userN']);
}
mysql_select_db($database_DBZ, $DBZ);
$query_Recordset1 = sprintf("SELECT uge FROM userbuy WHERE uge = '%s'", $colname_Recordset1);
$Recordset1 = mysql_query($query_Recordset1, $DBZ) or die(mysql_error());
$row_Recordset1 = mysql_fetch_assoc($Recordset1);
$totalRows_Recordset1 = mysql_num_rows($Recordset1);
?>
<?php
if ($row_Recordset1 is empty)
{ header("Location: /bestillingsside2.php"
exit();
else
{ header("Location: /bestillingsside1a.php" }
exit();
?>
<?php
mysql_free_result($Recordset1);
?>
<?php
}
?>
Replies
Replied 22 Nov 2005 20:14:01
22 Nov 2005 20:14:01 Aron K replied:
re: ($row_Recordset1 is empty)
are you using the dmx version of this?
ie the server behavoirs > show is recordset is emtpy
-- USWebPro.com
ASP & PHP Web Development
are you using the dmx version of this?
ie the server behavoirs > show is recordset is emtpy
-- USWebPro.com
ASP & PHP Web Development