Code: Select all
@ini_set('display_errors', 'on');
Moderators: egami, macek, gesf
Code: Select all
@ini_set('display_errors', 'on');
you also want to escape your strings etc. think about if $EAN contained the value "0; DROP TABLE ps_product;" your query to return all rows just turned into 2 queries where the first returns no results, and the second discards the table.SELECT field1,field2,field3 FROM atable WHERE criteria=true