having problems with this sections on the script.
From: josh dismukes (sk8er1796_at_yahoo.com)
Date: 03/30/04
- Previous message: Tim: "Re: PHP control array syntax vs HTML standard"
- Next in thread: Andy Hassall: "Re: having problems with this sections on the script."
- Reply: Andy Hassall: "Re: having problems with this sections on the script."
- Reply: Pedro Graca: "Re: having problems with this sections on the script."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 30 Mar 2004 10:59:30 -0800
//Query the Database
$query = "SELECT type FROM map WHERE map_file = " .
$_SESSION['new_map'] . " AND col = " . $_SESSION['new_col'] . " AND
row = " . $_SESSION['new_row'];
$db_result = @mysql_query($query);
$db_cell_type = @mysql_fetch_array($result);
//Evaluate the Cell Type
if ($db_cell_type=='W'){
$_SESSION['new_col']=$_SESSION['old_col'];
$_SESSION['new_row']=$_SESSION['old_row'];
$_SESSION['new_map']=$_SESSION['old_map'];
$_SESSION['celltype']='W';}
elseif($db_cell_type=='T'){
$query2 = "SELECT townID FROM map WHERE map_file = " .
$_SESSION['new_map'] . " AND col = " . $_SESSION['new_col'] . " AND
row = " . $_SESSION['new_row'];
$db_result2 = @mysql_query($query2);
$db_townid = mysql_fetch_array($db_result2);
$_SESSION['townID'] = $db_townid;
$_SESSION['is_town'] = 1;
$_SESSION['celltype']='T';}
else {
$_SESSION['old_col']=$_SESSION['new_col'];
$_SESSION['old_row']=$_SESSION['new_row'];
$_SESSION['old_map']=$_SESSION['new_map'];
$_SESSION['celltype']='L';}
- Previous message: Tim: "Re: PHP control array syntax vs HTML standard"
- Next in thread: Andy Hassall: "Re: having problems with this sections on the script."
- Reply: Andy Hassall: "Re: having problems with this sections on the script."
- Reply: Pedro Graca: "Re: having problems with this sections on the script."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]