rseigel Posted August 1, 2015 Share Posted August 1, 2015 SELECT * FROM ps_product WHERE ps_product.active = '1' AND ps_product.ean13 = '' AND ps_product.id_category_default != '73' Works perfectly in phpMyAdmin yet when I put it in a QUERY $result = mysqli_query($con,'SELECT * FROM ps_product WHERE ps_product.active = '1' AND ps_product.ean13 = '' AND ps_product.id_category_default != '73'') or die(mysqli_error()); it fails. Thanks, Ron Quote Link to comment Share on other sites More sharing options...
Solution Barand Posted August 1, 2015 Solution Share Posted August 1, 2015 This is your query 'SELECT * FROM ps_product WHERE ps_product.active = ' You need to use double quotes to enclose the query, not single quotes. Quote Link to comment Share on other sites More sharing options...
rseigel Posted August 1, 2015 Author Share Posted August 1, 2015 I'm such a moron....thanks for that catch. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.