what is the new code for the following
Hi,
I have sessions based on the older sql
<?php
@session_start();
if(!($totalRows_rsCoupons == 0)) {
$_SESSION["PromoAmount"] = "".$row_rsCoupons['couponAmount'] ."";
}
?>
What would be the new code based on MySQLi if the recordset is not empty.
This does not appear in the eCart / General / set session value if using the newer MySQLi recordset
I've tried the following code.
<?php
@session_start();
if(!($rsCoupons->num_rows == 0)) {
$_SESSION["PromoAmount"] = "".($rsCoupons->getColumnVal("couponAmount")) ."";
}
?>
But it does not seem to work