473,804 Members | 3,649 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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("omsaetni ng_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 1339
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("omsaetni ng_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
1833
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 hierarchies for you. comp.databases.mysql us.comp.databases.mysql alt.comp.databases.mysql
0
1148
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 not happen. All the queries are logged, except the ones that initiated through PHP on the same machine. Any idea what is wrong? Help !!
2
3955
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 - (5/15) * 90) * (System.Math.PI / 180);
3
1783
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 13:11:01 24.0 01-02-2004 13:10:03 23.5
12
22793
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
1423
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! ========================================= using System; delegate object D(); class A {
5
4396
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) { $row2=mysql_fetch_row($result);
6
5159
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
2558
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
5576
by: kailashchandra | last post by:
<html> <head> <title>PHP Test</title> </head> <body> <?php echo $_SERVER; ?> </body> </html>
0
9569
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10318
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10302
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9130
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7608
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5503
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5636
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4277
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2975
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.