Jump to content

Use Prestashop variable into sql query for filtering with WHERE.


pmaojo

Recommended Posts

Hello

 

Im stucked on a problem related with this...

 

Can anyone help me? I want to insert the customer ID into the SQL query with WHERE.

 

How could I use the customer ID variable of Prestashop here to make this work and only show the user his rows?:

 



$eventos = Db::getInstance()->executeS('SELECT * FROM `pss_tabla` WHERE id_cliente=  customer_id  }'); 

Edited by pmaojo (see edit history)
Link to comment
Share on other sites

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...