473,396 Members | 1,833 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

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 1326
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: NAN Team | last post by:
Dear Proponent, Your proposal has been accepted and the C.F.V. has been waived. The newsgroup was created for you. As an added bonus, we have also created additional newsgroups in the alt and us...
0
by: WhatsPHP | last post by:
Hi I have this MySql and PHP installed on the same machine. The Mysql general query log was started with mysqld --log, to log all the queries that will be received by the mysql server. This does...
2
by: Nicolas | last post by:
Why does for the same code I got different result the VB code gave me what I want why not the csharp? Thank you for your help... CSHARP CODE int sx, sy; double sdegrees; sdegrees = (90 -...
3
by: Wire | last post by:
Hello experts, I have a little group by problem, hope you can help me. I have a lot off records which I want to group by "HOUR(timefield)" example: 01-02-2005 13:28:00 25.0 01-02-2005 ...
12
by: briansmccabe | last post by:
Does anyone have a good approach to displaying in PHP a simple COUNT query that is performed on a table in a MySQL db? Thanks
3
by: Felix_Jiang | last post by:
The following code returns different result when running on dotnetFramework 1.1 and 2.0. For 1.1, it returns "Object". For 2.0, it returns "String". Can anyone explain to me why? Thanks! ...
5
tolkienarda
by: tolkienarda | last post by:
Hi all how would i go about reseting the internal pointer in a mysql_query result I use a loop to display the results of a colom in a select box here is the loop $i=1; while ($i<=$row)...
6
by: barrathi | last post by:
hai all, how to merge the two table( i need query) ex: table a eno ename 1 a 2 b
1
by: anubha12 | last post by:
hi ALL, i want a different types query for practice the sql server.i am just start learning a sql server..so suggest to me a some websites where the query is available.. thnax in advanced
2
by: kailashchandra | last post by:
<html> <head> <title>PHP Test</title> </head> <body> <?php echo $_SERVER; ?> </body> </html>
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.