473,320 Members | 1,982 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,320 software developers and data experts.

retriving info from a database and print it ind a form???

i have a page where info can be inserted in a form that consists of some
textarea and some textfield.

but when i get to the page, i want the last inserted info, which is saved in
a database, to be retrived and be displayet ind the 6 text field/area??? can
that be done?

the user can then edit some of the text and leave some of it unedited.....

can it be done??


Jul 23 '05 #1
2 1529
In article <40*********************@dread12.news.tele.dk>, "jeghers"
<sadkas> says...
i have a page where info can be inserted in a form that consists of some
textarea and some textfield.

but when i get to the page, i want the last inserted info, which is saved in
a database, to be retrived and be displayet ind the 6 text field/area??? can
that be done?

the user can then edit some of the text and leave some of it unedited.....

can it be done??


Yes. Do you actually have server-side JavaScript capability? If not,
you need to think about using something like Perl, PHP, or ASP to get at
the information in the database.

Whatever the case, you haven't given enough information here. What
server? What scripting language? What database?

--
Hywel I do not eat quiche
http://kibo.org.uk/
http://kibo.org.uk/mfaq.php
Jul 23 '05 #2
On Sun, 2 May 2004 14:37:57 +0200, in comp.lang.javascript "jeghers"
<sadkas> wrote:
| i have a page where info can be inserted in a form that consists of some
| textarea and some textfield.
|
| but when i get to the page, i want the last inserted info, which is saved in
| a database, to be retrived and be displayet ind the 6 text field/area??? can
| that be done?
|
| the user can then edit some of the text and leave some of it unedited.....
|
| can it be done??


This can be achieved in the sql statements. To retrieve the last
record inserted then you would need to use something like:
rs.Source = "SELECT * from myTable order by fieldName DESC LIMIT 1";
rs.Open();

Your html page would set the default values according to the record
i.e.
<input type="text" value="<%=rs.Fields.Item("field1").value%>" />

<textarea .... ><%=rs.Fields.Item("field2").value%></textarea>
---------------------------------------------------------------
jn****@yourpantsbigpond.net.au : Remove your pants to reply
---------------------------------------------------------------
Jul 23 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Eric Kincl | last post by:
Hello, its been a while since I posted/looked here... my normal email client doesn't handle newsgroups :( (ximian evolution) I was wondering how you stick a file into a database, and then...
11
by: iffy agbim | last post by:
I have a form that displays information selected from an Access Data base. A select statement is used to do this on my asp page SQLQuery = "SELECT * FROM tblopgaCOm2 WHERE billNo = '" &...
1
by: Kenshin | last post by:
Hey! I have another script where i pull all the information from the database and I want to send it to the person. What they do is they enter in their email, and if the email matches, than it will...
0
by: Pato Secruza | last post by:
Hi everyone! I have a really frustrating error and need help. I’m trying to do a function that gets the properties and names of the fields in a MS Access database using ASP. I haven’t...
2
by: Manish Naik | last post by:
Hi, Using ASP.Net, I want to store and retrive documents (Word, excel, etc) from SQL Server 2000 database. I have tried image type data field, but could not succed. Can any one help me please. ...
2
by: James Proctor | last post by:
Hi There, I have written an SQL script which i run though a VB.net application. It has some print statements in which print results of the Script to the message window if you run the script in...
6
by: kavithadevan | last post by:
Hi, I am trying to retriving some datas from the database.using submit button i am getting result but i inserted one submit image and i gave link to that image and then i run that script but its...
8
by: Christina123 | last post by:
Currently working with Microsoft Office 2000 and whatever version of Access came with that. I am developing a database to track the comings and goings of shared tools. Everything works...
3
by: Semajthewise | last post by:
Hi all I have a problem with getting info from another forms textbox. All the other posts I seen related to it seem to say the same thing. And do not allieviate my problem. So heres what I'm doing...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.