Jump to content
thirty bees forum
  • 0

replacing sql calls


SLiCK_303

Question

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); ```

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...