So I have an old module, that is using oldscool sql calls. How would I replace...
mysqliquery
mysqlifetchassoc
mysqlinumrows
like...
```
$GLOBALS['___mysqlist'] = mysqliconnect(DBSERVER, DBUSER_, DBPASSWD_);
$sql2 = mysqliquery($GLOBALS['___mysqlist'], '
SELECT *
FROM '._DB_PREFIX_.'product_shop
WHERE id_product = '.(int)$idc['idproduct'].' AND id_shop = '.(int)$this->context->shop->id.'
');
$result2 = mysqlifetchassoc($sql2);
$count2 = mysqlinum_rows($sql2);
```
Question
SLiCK_303
So I have an old module, that is using oldscool sql calls. How would I replace... mysqliquery mysqlifetchassoc mysqlinumrows like... ``` $GLOBALS['___mysqlist'] = mysqliconnect(DBSERVER, DBUSER_, DBPASSWD_);
$sql2 = mysqliquery($GLOBALS['___mysqlist'], ' SELECT * FROM
'._DB_PREFIX_.'product_shop
WHEREid_product
= '.(int)$idc['idproduct'].' ANDid_shop
= '.(int)$this->context->shop->id.' '); $result2 = mysqlifetchassoc($sql2); $count2 = mysqlinum_rows($sql2); ```4 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now