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

Select and Insertion

I dont know how to go about this

i have a form that i want to retrieve data, i mean some of the textfields.

on the top frame, i would i have 1 textfield
ID

and a retrieve button

user will insert the id of the data and click on the retrieve button to retrieve the data on the bottom frame.
/////////////////////////////////////////////////////////////////////////

on the botton frame, i would 5 textfields. 3 are readonly from database after retrival and 2 others are not readonly, data would be inserted into those

ID
Name (readonly)
Age (readonly)
Sex
Weight



then a button in the bottom to submit all into the database...

i tot of this and this is the solution to a small form i am creating, but i dont know how to create the script...

Please anyone that can help me write this one script, or if you have a better solution to this, i would be very grateful
Aug 14 '08 #1
7 1177
Markus
6,050 Expert 4TB
You can apply in the jobs section for freelance writes for this.
Aug 14 '08 #2
nathj
938 Expert 512MB
what code do you have at present? There are many articles on this site and others that will get you started.

You need to have a go and then ask specific code related questions or hire someone as suggested previously.

If you have a go and get stuck post back I will be happy to help then

nathj
Aug 14 '08 #3
ok do you know of any article where a textfield can retrieve search result after clicking the search button
Aug 15 '08 #4
nathj
938 Expert 512MB
ok do you know of any article where a textfield can retrieve search result after clicking the search button
What do you have so far?

I'm assuming you have a web page with the text field on and a submit button. You then want the user to be able to enter information into the text field and click the button to search your site - is that correct?

The next question I have, beore i can make any suggestions or recommendations is how is the site built? Is it all static HTML files or is it built form a database, or some combination of the two. What I'm getting at here is 'where is the content that is to be searched?'

If you are searching a DB for the string entered then I can help you out, I've just don this my self and I can point you ion the right direction.

If, however, your pages are static then I suggest you look at the free stuff from Google before we attpemt any in file searching ourselves.

Cheers
nathj
Aug 15 '08 #5
What do you have so far?

I'm assuming you have a web page with the text field on and a submit button. You then want the user to be able to enter information into the text field and click the button to search your site - is that correct?

The next question I have, beore i can make any suggestions or recommendations is how is the site built? Is it all static HTML files or is it built form a database, or some combination of the two. What I'm getting at here is 'where is the content that is to be searched?'

If you are searching a DB for the string entered then I can help you out, I've just don this my self and I can point you ion the right direction.

If, however, your pages are static then I suggest you look at the free stuff from Google before we attpemt any in file searching ourselves.

Cheers
nathj

exactly a DB...
the user will input the id and the result will display in textfields, not on the plain page,
like 3 other textfields will show on the bottom frame with results, so that i can insert them into another table..

hope u undastand this
Aug 15 '08 #6
nathj
938 Expert 512MB
exactly a DB...
the user will input the id and the result will display in textfields, not on the plain page,
like 3 other textfields will show on the bottom frame with results, so that i can insert them into another table..

hope u undastand this
Right, this is getting clearer by the post.

The user enters a number and then you retrieve the info from the DB using that number and display the results on the page.

I would tackle this as follows:

1. A page with the the text box and button, not necessarily in a form.
2. Button calls some JS that uses AJAX to pass the number entered to a PHP script.
3. PHP script checks that it is a number, if it is NOT it returns a message to that effect. If it IS a number then the SQL is executed and the results returned as the output.

I recommend you read the following:
PHP DataObject
AJAX Data Querying

This should get you started with some code. If you get stuck with the specifics then post your code here and I'll take a look for you. I've done this sort of thing a lot, but I don't want to simply give away the code - you will learn more by doing it yourself.

Cheers
nathj
Aug 15 '08 #7
thanks , i will read it...
Aug 15 '08 #8

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: skidvd | last post by:
Hello: I have just recently converted to using the InnoDB table type so that I can enforce FOREIGN key constraints. I have been using MyISAM tables (accessed via JDBC) successfully for some...
20
by: Patrick Guio | last post by:
Dear all, I have some problem with insertion operator together with namespace. I have a header file foo.h containing declaration of classes, typedefs and insertion operators for the typedefs in...
10
by: Anton.Nikiforov | last post by:
Dear all, i have a problem with insertion data and running post insert trigger on it. Preambula: there is a table named raw: ipsrc | cidr ipdst | cidr bytes | bigint time | timestamp...
5
by: John N. | last post by:
Hi All, Here I have a linked list each containing a char and is double linked. Then I have a pointer to an item in that list which is the current insertion point. In this funtion, the user...
7
by: skeddy | last post by:
In a nutshell, I'm trying to dynamically create a select box with ResultSet code in vbscript and then need to be able to access the value of that select box later with a Save button. I've got...
4
by: Andrix | last post by:
Hi, I have a table with 20.000.000 of tuples. I have been monitoring the performance of the insertion and updates, but not convince me at all. The table have 30 columns, what and 12 of it, are...
0
by: polocar | last post by:
Hi, I have noticed a strange behaviour of CurrencyManager objects in C# (I use Visual Studio 2005 Professional Edition). Suppose that you have a SQL Server database with 2 tables called "Cities"...
6
by: barcaroller | last post by:
If I insert/remove an element in a set, will an iterator to this set automatically become invalid? Does the position of the iterator before the insertion/removal matter? How are vectors and...
3
by: kvnsmnsn | last post by:
I've been asked to overload the insertion operator. What exactly is the insertion operator in C++, and how would one overload it? I think that in C I could overload the "+" operator like so: ...
9
by: python_newbie | last post by:
I don't know this list is the right place for newbie questions. I try to implement insertion sort in pyhton. At first code there is no problem. But the second one ( i code it in the same pattern i...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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...
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...

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.