Jump to content

Recommended Posts

Could this code kill off the other queries?

 

"Kill off other queries"? Not sure what you mean by that. You can erroneously create code that prevents other code from running properly, but that is not a limitation of the code. That is simply a bug that needs to be fixed.

you're concatenating incorrectly, and it's not even needed. this will do fine:

 

$query = "SELECT Car_Make, Car_Model, Image_Van,  FROM products WHERE Car_Make= '$strMake' AND Car_Model = '$strModel'";

 

Remove the comma before the "FROM". I also prefer to format my queries in multiple lines to make them easier to read/analyze.

 

$query = "SELECT Car_Make, Car_Model, Image_Van
          FROM products
          WHERE Car_Make= '$strMake'
            AND Car_Model = '$strModel'";

 

missed that, thanks

What I mean is that all the other data is now not appearing but there are prices and buy buttons appearing although all the prices are showing as 0.00

 

It appears that the new piece of code stops everything else after it from working...

 

Ok, I need to go though this all again!!

 

(long night ahead....)

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.