tdeez173 Posted October 18, 2009 Share Posted October 18, 2009 1 PHP Applications, Frameworks and Libraries / PHP Applications / Re:Here is my shopping cart code on: Yesterday at 02:20:17 PM Here is my shopping cart 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"); Link to comment https://forums.phpfreaks.com/topic/178093-php-shopping-cart-update-qtys-script-not-workin-for-ie8-or-ff-3014/ Share on other sites More sharing options...
tdeez173 Posted October 18, 2009 Author Share Posted October 18, 2009 Here is my shopping cart 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"); Link to comment https://forums.phpfreaks.com/topic/178093-php-shopping-cart-update-qtys-script-not-workin-for-ie8-or-ff-3014/#findComment-939047 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.