469,927 Members | 1,904 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,927 developers. It's quick & easy.

Different result from query made in mysql-front and from ASP

Hi

I have a strange problem with a mysql database and ASP.

I try to retrieve a value from a table I have just created with a very
simple sql statement.

Ex. SELECT myValue FROM myTable WHERE userID = 'myName'

If I type the query in mysql-front it works fine but if I execute it
from and ASP page I get no value.

I have tried something similar with other tables in my database without
this problem.

My ASP script looks like this:
<%
sql = "SELECT * FROM t_organisation_salg WHERE brugerID = '10025'"
set objRS = objConn.execute(sql)

IF NOT objRS.EOF THEN response.write objRS("omsaetning_gruppe")

objRS.close
set objRS=nothing
objConn.close
set objConn = nothing
%>

My database connection is included from another file.

Can anybody help?

/Brian
Jun 8 '06 #1
1 1220
Brian Bendtsen wrote:
Hi

I have a strange problem with a mysql database and ASP.

I try to retrieve a value from a table I have just created with a very
simple sql statement.

Ex. SELECT myValue FROM myTable WHERE userID = 'myName'

If I type the query in mysql-front it works fine but if I execute it
from and ASP page I get no value.

I have tried something similar with other tables in my database without
this problem.

My ASP script looks like this:
<%
sql = "SELECT * FROM t_organisation_salg WHERE brugerID = '10025'"
set objRS = objConn.execute(sql)

IF NOT objRS.EOF THEN response.write objRS("omsaetning_gruppe")

objRS.close
set objRS=nothing
objConn.close
set objConn = nothing
%>

My database connection is included from another file.

Can anybody help?

/Brian


Hi
I found out that if I change the fields with type decimal to type double
it works. Has anyone experienced this problem before?

/Brian
Jun 9 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

7 posts views Thread by NAN Team | last post: by
reply views Thread by WhatsPHP | last post: by
12 posts views Thread by briansmccabe | last post: by
6 posts views Thread by barrathi | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.