Ask a Question related to Coldfusion Database Access, Design and Development.
-
Brown1 #1
Would anyone know why this works locally,but notremotely?
This little piece of code works locally and on my old host, but will generate
an error on my new host (all running CF 6.1)
<cfquery name="getused1" datasource="JetDB">
SELECT *
FROM Used,Dealers
WHERE Used.Dealer = Dealers.Name
AND Used.City = Dealers.City
</cfquery>
<cfoutput query="getused1">#getused1.City#</cfoutput>
I get this error
Element CITY is undefined in GETUSED1.
Obviously Used.City = Dealers.City is conflicting (I know I havent the best
coding practices by using the same column name in 2 tables)
but why would it work on 2 servers but not the third? A simple setting maybe
(I hope) or total re-code??
Thank you all in advance
Brown1 Guest
-
xml works locally but not on the server
So I have an html file with a swf in the center which loads pictures and text via XML. It works fine on my own computer but on the actual site it... -
webservice works locally but not public
1: ntsiii yes i can see the wsdl. and it works from my laptop when i run it from flexbuilder. 2: because the result is output in a datagrid. And... -
#39370 [NEW]: $_GET no longer works under FastCGI but works under CGI.
From: trustpunk at gmail dot com Operating system: Windows PHP version: 6CVS-2006-11-04 (snap) PHP Bug Type: CGI related Bug... -
Remote XML Data feed works locally - but not on server
I am hoping someone can help me out here... I have Flash Movie (version 8) - that collects XML data from a dynamically generated XML file (call... -
works for me locally, not for him on his server?
Hello. I learned some PHP in the last couple of days and wrote a trivia game and it works on my PC with XP pro and Apache and PHP but on a... -
Dan Bracuk #2
Re: Would anyone know why this works locally,but notremotely?
Speaking of best coding practices, stop using select *. Specify your
fieldnames in the select clause. Select only those fields you need. Use
aliases if necessary. See if this suggestion solves this specific problem.
Dan Bracuk Guest
-
Brown1 #3
Re: Would anyone know why this works locally,but notremotely?
Thanks Dan, the problem was solved by using
<cfoutput query="getused1">#getused1.dealers.City#</cfoutput>
thanks for your help
Brown1 Guest
-
boughtonp #4
Re: Would anyone know why this works locally,but notremotely?
The other way you could have solved it is by doing:
SELECT used.city AS u_city, dealers.city AS d_city
Then doing #getused1.d_city# inside the CFOUTPUT
boughtonp Guest



Reply With Quote

