shopping cart script does not update qtys in ie8 or ff 5.0

tdeez173's Avatar, Join Date: Oct 2009
Newbie Member
My shopping cart and udate qtys script does not work in ie8 or ff 5.0 but it works perfectly in ie 7 and ff 3.0.10. I have googled for hours trying to fix this, and I would appreciate any help anyone could offer, thanks.

here is my code for the change qty script
HTML Code:
 
<?php
 session_start();
 include('tlc_Sc_scrts/tlc_sc_fns.php');
$conn = db_connect();
 mysql_select_db ( 'tdeez173300', $conn);
  $sessid = session_id();
if (isset($_POST['mod_s'])){
 $mod_s = $_POST['mod_s'];
 }
if (isset($_POST['mod_h'])){
   $mod_h = $_POST['mod_h'];
 }
if (isset($_POST['mod_f'])){
  $mod_f = $_POST['mod_f'];
}
if (isset($_POST['hidden_ch'])){
  $hidden_ch=$_POST['hidden_ch'];
}
if (isset($_POST['menu_id'])){ 
  $menu_id=$_POST['menu_id'];
} 
 
 $query2 = "SELECT * FROM temp_data_table WHERE carttemp_hidden='$hidden_ch'"; 
 $results2 = mysql_query($query2) or (mysql_error()); 
$query_act =  "update temp_data_table set carttemp_qty_s='$mod_s', carttemp_qty_h='$mod_h', carttemp_qty_f= '$mod_f' where carttemp_session='$sessid' and      carttemp_menu_id='$menu_id'";
$results_act = mysql_query($query_act) or die(mysql_error());
 header("location: shoppingCart.php?action=change");
0
tdeez173's Avatar, Join Date: Oct 2009
Newbie Member
here is my change qty script.
PHP Code:
<?php
 session_start
();

 include(
'tlc_Sc_scrts/tlc_sc_fns.php');
$conn db_connect();
 
mysql_select_db 'tdeez173300'$conn);
  
$sessid session_id();

if (isset(
$_POST['mod_s'])){
    
$mod_s $_POST['mod_s'];
    }
if (isset(
$_POST['mod_h'])){
         
$mod_h $_POST['mod_h'];
 }
if (isset(
$_POST['mod_f'])){
        
$mod_f $_POST['mod_f'];
}
if (isset(
$_POST['hidden_ch'])){
        
$hidden_ch=$_POST['hidden_ch'];
}
if (isset(
$_POST['menu_id'])){    
        
$menu_id=$_POST['menu_id'];

 
 
$query2 "SELECT * FROM temp_data_table WHERE carttemp_hidden='$hidden_ch'"
 
$results2 mysql_query($query2) or (mysql_error()); 

$query_act =  "update temp_data_table set carttemp_qty_s='$mod_s', carttemp_qty_h='$mod_h', carttemp_qty_f= '$mod_f' where carttemp_session='$sessid' and                     carttemp_menu_id='$menu_id'";
$results_act mysql_query($query_act) or die(mysql_error());
 
header("location: shoppingCart.php?action=change");

Last edited by shabbir; 18Oct2009 at 10:33.. Reason: Code blocks
0
nimesh's Avatar, Join Date: Apr 2009
Invasive contributor
ff 4 is not out and you working on 5, where did you get that from?
0
tdeez173's Avatar, Join Date: Oct 2009
Newbie Member
My bad, I was looking at mozilla 5.0, but the firefox version is actually 3.10.14 that my update qtys script is not working for, plus its not workin for ie 8. Can anyone help me out with this problem or pont me in some direction, I would greatly appreciate it.