Question
Simple Query Not Working
I have a pretty straight forward query and for the life of
me, when I try to output data from a field, I get an error:
Variable VEHICLESTOCK is undefined. (this pops up after inserting into page)
Here is my query:
<cfquery name="getUsedVehicles" datasource="#datasource#">
SELECT *
FROM tbl_vehicle, tbl_images
WHERE tbl_vehicle.vehicleStock = tbl_images.vehicleStock
AND tbl_vehicle.vehicleCondition = 'trade'
</cfquery>
When I try to use vehicleStock anywhere in the page, I get that error. I have checked db and fields are text. Not sure what I'm doing wrong.
Thanks
Terry
Variable VEHICLESTOCK is undefined. (this pops up after inserting into page)
Here is my query:
<cfquery name="getUsedVehicles" datasource="#datasource#">
SELECT *
FROM tbl_vehicle, tbl_images
WHERE tbl_vehicle.vehicleStock = tbl_images.vehicleStock
AND tbl_vehicle.vehicleCondition = 'trade'
</cfquery>
When I try to use vehicleStock anywhere in the page, I get that error. I have checked db and fields are text. Not sure what I'm doing wrong.
Thanks
Terry
