MySQLi and OO noob
First off, let me say I'm very impressed with this extension, no drama's no problems, just works!
I'm now converting one of my sites over to bootstrap and mySQLi
On my old site I had this code
<?php if (isset($_POST['giftWrapId']) And $_POST['giftWrapId']!=0):
mysql_data_seek($rsGiftWrapCharge, $_POST["giftWrapId"]-1);
$row = mysql_fetch_row($rsGiftWrapCharge);
$giftwrap = floatval("".$row[0] ."");
$giftwrapcharge = floatval("".$row[2] ."");
$giftwrapdesc = "".$row[1] ."";
else:
$giftwrap = 0;
endif;
?>
My attempt with this code fails
<?php if (isset($_POST['giftWrapId']) And $_POST['giftWrapId']!=0):
mysqli_data_seek($rsGiftWrapCharge, $_POST["giftWrapId"]-1);
$rsGiftWrapCharge->data_seek(2);
$row = $rsGiftWrapCharge->fetch_row();
$giftwrap = floatval("".$row[0] ."");
$giftwrapcharge = floatval("".$row[2] ."");
$giftwrapdesc = "".$row[1] ."";
else:
$giftwrap = 0;
endif;
?>
Any guidance would be appreciated
Cheers