hi everybody ,
could u please help me to find out the error on my asp codes,i can't retrieve the inserted values.
Here is below the code:
<%@LANGUAGE="VB SCRIPT" CODEPAGE="1252" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%
connect_string = "Driver={SQ L Server};Server= NLROSDBCL9-10;Database=Sca nners;Uid=scann ers;Pwd=bertran d;"
set dbConn = Server.createOb ject ("ADODB.connect ion")
dbConn.open connect_string
mySQL ="select * from EMPLOYEE,DEPART MENT,SCANNER,TE CHNICALDESCR WHERE EMPLOYEE.emplNO =SCANNER.emplNO AND EMPLOYEE.dprtNo =DEPARTMENT.dpr tNO AND SCANNER.scandes cr=TECHNICALDES CR.scandescr"
set result=dbConn.e xecute(mySQL)
On Error Resume Next
If result.eof then
response.write "There are no records."
Else
Do while NOT result.eof
Response.write result("EMPLNO" )
Response.write result("EMPLNAM E")
Response.write result("EMPLSTA RTDATE")
Response.write result("EMPLSTA TUS")
Response.write result("DPRTNO" )
Response.write result("SCANNO" )
Response.write result("SCANDES CR")
Response.write result("DOCUMEN T")
Response.write result("FILES")
Response.write result("DPRTNAM E")
Response.write result("DPRTLOC ATION")
Response.write "<br>"
result.MoveNext
Loop
End if
result.Close
Set result =Nothing
dbConn.Close
Set dbConn = Nothing
%>
<html>
<head>
<title>Untitl ed Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body bgcolor="#99999 9">
<form action="scanner 2.asp" method="post">
<table >
EMPLOYEE
<tr>
<td height="70">Emp lNO </td> <td ><input name="emplNo" type="text"> </td>
<td >EmplName</td> <td ><input name="emplName" type="text"></td>
<td >EmplStartdat e</td><td ><input name="emplStart Date" type="text"></td>
<td >EmplStatus</td><td ><input name="emplStatu s" type="text"></td>
<td >DprtNo</td><td ><input name="DprtNo" type="text"></td>
</tr></table>
<table>DEPARTME NT
<tr>
<td height="70">Dpr tNo</td><td><input name="DprtNo" type="text"></td>
<td>DprtName</td><td><input name="DrptName" type="text"></td>
<td>DprtLocatio n</td><td><input name="DprtLocat ion" type="text"></td>
</tr>
</table>
<table>SCANNE R
<tr>
<td height="70">Sca nNo</td><td><input name="ScanNo" type="text"></td>
<td>ScanDescr </td><td><input name="ScanDescr " type="text"></td>
<td>EmplNo</td><td><input name="EmplNo" type="text"></td>
</tr>
</table>
<table >TECHNICALDES CR
<tr>
<td height="70">Sca nDescr</td>
<td><input name="ScanDescr " type="text"></td>
<td>Document</td><td><input name="Document" type="text"></td>
<td> Files</td>
<td><input name="Files" type="text"></td>
</tr>
</table>
<td width="50">&nbs p;
<input name="Insert" value="Insert" type="submit"></td>
<td width="50">&nbs p; < input name="Reset" value="Reset" type="reset"></td>
</table>
</form>
</body>
</html>
Best regards,
Bazubwabo J.B.
3 1496 sashi 1,754
Recognized Expert Top Contributor
hi everybody ,
could u please help me to find out the error on my asp codes,i can't retrieve the inserted values.
Here is below the code:
<%@LANGUAGE="VB SCRIPT" CODEPAGE="1252" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%
connect_string = "Driver={SQ L Server};Server= NLROSDBCL9-10;Database=Sca nners;Uid=scann ers;Pwd=bertran d;"
set dbConn = Server.createOb ject ("ADODB.connect ion")
dbConn.open connect_string
mySQL ="select * from EMPLOYEE,DEPART MENT,SCANNER,TE CHNICALDESCR WHERE EMPLOYEE.emplNO =SCANNER.emplNO AND EMPLOYEE.dprtNo =DEPARTMENT.dpr tNO AND SCANNER.scandes cr=TECHNICALDES CR.scandescr"
set result=dbConn.e xecute(mySQL)
On Error Resume Next
If result.eof then
response.write "There are no records."
Else
Do while NOT result.eof
Response.write result("EMPLNO" )
Response.write result("EMPLNAM E")
Response.write result("EMPLSTA RTDATE")
Response.write result("EMPLSTA TUS")
Response.write result("DPRTNO" )
Response.write result("SCANNO" )
Response.write result("SCANDES CR")
Response.write result("DOCUMEN T")
Response.write result("FILES")
Response.write result("DPRTNAM E")
Response.write result("DPRTLOC ATION")
Response.write "<br>"
result.MoveNext
Loop
End if
result.Close
Set result =Nothing
dbConn.Close
Set dbConn = Nothing
%>
<html>
<head>
<title>Untitl ed Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body bgcolor="#99999 9">
<form action="scanner 2.asp" method="post">
<table >
EMPLOYEE
<tr>
<td height="70">Emp lNO </td> <td ><input name="emplNo" type="text"> </td>
<td >EmplName</td> <td ><input name="emplName" type="text"></td>
<td >EmplStartdat e</td><td ><input name="emplStart Date" type="text"></td>
<td >EmplStatus</td><td ><input name="emplStatu s" type="text"></td>
<td >DprtNo</td><td ><input name="DprtNo" type="text"></td>
</tr></table>
<table>DEPARTME NT
<tr>
<td height="70">Dpr tNo</td><td><input name="DprtNo" type="text"></td>
<td>DprtName</td><td><input name="DrptName" type="text"></td>
<td>DprtLocatio n</td><td><input name="DprtLocat ion" type="text"></td>
</tr>
</table>
<table>SCANNE R
<tr>
<td height="70">Sca nNo</td><td><input name="ScanNo" type="text"></td>
<td>ScanDescr </td><td><input name="ScanDescr " type="text"></td>
<td>EmplNo</td><td><input name="EmplNo" type="text"></td>
</tr>
</table>
<table >TECHNICALDES CR
<tr>
<td height="70">Sca nDescr</td>
<td><input name="ScanDescr " type="text"></td>
<td>Document</td><td><input name="Document" type="text"></td>
<td> Files</td>
<td><input name="Files" type="text"></td>
</tr>
</table>
<td width="50">&nbs p;
<input name="Insert" value="Insert" type="submit"></td>
<td width="50">&nbs p; < input name="Reset" value="Reset" type="reset"></td>
</table>
</form>
</body>
</html>
Best regards,
Bazubwabo J.B.
Hi there,
Are the fieldnames / tablenames spelled correctly? Is the any error message being prompt / thrown while executing this code? Good luck & Take care.
thanks for your reply ,
indeed i have received an error message ("there are no records").
By the way,i don't know right now wether the problem is over the code: i can't anymore retrieve the inserted values
Could please hepl me to find out the error.
Regards,
Bazubwabo J.B.
IT student
sashi 1,754
Recognized Expert Top Contributor
thanks for your reply ,
indeed i have received an error message ("there are no records").
By the way,i don't know right now wether the problem is over the code: i can't anymore retrieve the inserted values
Could please hepl me to find out the error.
Regards,
Bazubwabo J.B.
IT student
Hi there
Can you please double check the 4 tables ( EMPLOYEE,DEPART MENT,SCANNER,TE CHNICALDESCR) invloved to make sure the are data in it. Just in case, this will narrow down posibilities in terms of debuging yuor code. Good luck & Take care.
Sign in to post your reply or Sign up for a free account.
Similar topics |
by: Andy Jackman |
last post by:
Hi,
I'm new to mySql. I've got a table with an integer field defined like
this:
l_start_wait int(9) not null
I inserted a value into the table using mysql command line client with:
Insert into tbl_wait_list values(12345678);
When I use mysql_fetch_row() to retrieve the column values I am
surprised to see
that mysql_fetch_lengths() returns a length of 8 rather than 4 and
|
by: hshen |
last post by:
Hi All,
I have encountered a weird behavoir of embedded MySQL. Through a
simple program I made (in Delphi 6), I can insert rows to a table
through embedded MySQL and I can retrieve the rows from my program.
But using mysql.exe which points to the same table (through 127.0.0.1,
with the same basedir and datadir), I cannot see the rows I inserted
using my embedded program. Another way around, the rows inserted by
mysql.exe can be seen...
|
by: BashiraInTrouble |
last post by:
Hi Friends,
I have tried almost everything but I cant seem to shrink the
transaction log.
Executing DBCC SQLPERF(LOGSPACE)
gives me this info:
Database Log Size (MB) Log Space Used (%) Status
MY_eems 368.49219 16.034182 0
I made a complete backup of the database and transaction log and then
executed this statement:
DBCC SHRINKFILE (MYeems_log, 1)
|
by: Kostas Koukoravas via .NET 247 |
last post by:
Hi,
I'm developing an application that needs to read a UML diagramfrom Visio. By iterating through the shapes collection of eachShape that represents a Class, I can retrieve the attributes ofthe class and its operations.
I cannot retrieve though the value of any other item that existsin the properties dialog of the class. More specifically I needthe Tagged Values of each class shape (to get the Documentationinfo) and the tagged values of...
|
by: baustin75 |
last post by:
Posted: Mon Oct 03, 2005 1:41 pm Post subject: cannot mail() in ie
only when debugging in php designer 2005
--------------------------------------------------------------------------------
Hello,
I have a very simple problem but cannot seem to figure it out. I have a
very simple php script that sends a test email to myself. When I debug
it in PHP designer, it works with no problems, I get the test email. If
| |
by: Jean-David Beyer |
last post by:
I have some programs running on Red Hat Linux 7.3 working with IBM DB2
V6.1 (with all the FixPacks) on my old machine.
I have just installed IBM DB2 V8.1 on this (new) machine running Red Hat
Enterplise Linux 3 ES, and applied FixPack fp5_mi00069.tar to it. After
creating an instance, starting the database, creating a database, and
entering the table definitions, all of which seems to work OK, I entered a
tiny 8-row table and can do...
|
by: nicholas |
last post by:
I would like to insert a new record in a Ms Access database and retrieve the
newly created ID (autonumber).
I would like to do it in VB.NET for an ASP.NET page. ( no asp)
I found several examples on the net, but most of them just work with
sql-server (@@indentity), or use just asp with includes etc.
Hope someone can help me with a 'working' example...
|
by: feets |
last post by:
OK first time poster, so hello everyone in advance. Right i'm sure this is a simple problem to solve, but I'm just getting the hang of SQL 2000. What I've got is a form where I input the values and then through a procedure these values are inserted into a table. That's fine. However I now need to open a subform which is linked by the ID field created through the first procedure. How do I retrieve that value back into the form??
The...
|
by: questionit |
last post by:
How do i retreive 10 rows from a table using SQL
SELECT Names from Customers... how do i change it to retrieve only 'n' number of rows?
Please suggest an easy method
Thanks
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
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,...
| |
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
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...
|
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,...
|
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |