Imagine I have a database table with three columns (userID, urlName, urlAddress). Imagine the values in these columns are "aa, bb, cc". Now imagine I have some information like this sotred in the table:
userID urlName urlAddress
-------------------------------------------
aa bb cc
aa bb cc
aa bb cc
aa bb cc
aa bb cc
xx bb cc
zz bb cc
Now imagine that I wanted to delete urlName=bb where userID=aa....but not have it delete all 5 records with the same info in them?
so I've had the file upload feature working on the website now for sometimes and feed file info into a database for use elsewhere. I can edit/update/delete/etc...
whatever on the database end with no trouble, but how do I delete an uploaded file itself using asp? Is there a way?
i have a recordset that displayed all the infos about a record and a delete herf or button i want whenever i wanna delete a record a dialog box to appear with YES/NO/CANCEL button.
yes to confirm delete no to disagree and return to the previous page Cancel to cancel the action and remain in the same page !!
I created connection to the Microsoft Access DB using DSN from my ASP page.
<% Set vpconn = Server.CreateObject("ADODB.Connection") vpconn.ConnectionString = "File Name=c:inetpubwwwrootDBDNAME.dsn" vpconn.Open ' Close connection immediately after opening for testing vpconn.Close Set vpconn=Nothing %>
The Microsoft Access, for every database opened for shared use, creates an .ldb file to prevent users from writing data to pages that other users have locked. Whenever the last user closes a shared database, the .ldb file should be deleted.
It is working; the .ldb file is deleted immediately after closing connection but not if you open/close this connection from your ASP page.
What I found, the .ldb file is deleted with about 70 seconds delays after closing connection from an ASP page.
i use access database and made add record page and it is added on the database then i made another page to add on another table on the same database it is not working i donot know why,and the problem from me or from the server setting???
i try to display record from oracle to form format. all the records will get from INST_REC table which have fields such IID,SN,SID and STN. how can i write the html statement to let the record display in the below text field.
i hv write the html code for this, but got error.i think the problem is in the value ="<%rs("IID")%>". what should i write for the value part in order to get record from oracle?
Initialy I guess the title suggests that it should be fairly easy to point me in the
direction of a good tutorial about how to add a record via a webpage into a database.
First of all add one peice of information into a database.
the column id like people to enter information in, would be in line with another column, and sometimes that field would be blank and isnt used. and i dont want the input box to display on that bit. can this be done?
has anyone got a good example somwhere I can look at?
I have just recently use record paging, i now have a problem the way the records are displayed.
I have a table header with each header name of records to be displayed, and each individual record should be displayed directly underneath each other PHP Code:
I'm trying to add a record to an access database using asp.
I create the database, the input form where i put the information, the asp code where i process the information and last the asp code to view the record added but when i press the submit button it show me a Downloading box for a downloaing process.Does any tell me how can i fix this problem.
I have a database which I need to display a hyperlink to another web page when the results are displayed in an existing web page. The current line of code is as follows:
This displays the information I need but it also displays the hyperlink as text after the field information ie development team#http://www.awebaddress.com# .what the line of code should be in order for the contact field to appear as a working link to another web page.
i am trying to figure out the best way to display records. I have a page which pulls multiple data from mulitple tables in multiple queries. In order to get the page layout to put the records in the right spot i would like to be able to display each record invidually.
Is there a way to echo a record to a spot instead of using a datagrid? I know in php i can specify the database recordset and then echo the value for that particular record. Does asp have the equivalent to this?
I have built a set of forms to add delete and edit records on my database for asp pages the add and delete are working fine but the edit form opens and I can change the field but if I try to update the record I get the following error MM_editCmd.
I have a mysql database and i want to make the records have an expiry time. i'm thinking have a field with the time the record was added and then add another field which is that time + 7 days for example. then on my search results page have some code that only displays records before or on the expiry date.
I've looked for other similar things on the internet but can't find anything relevant. does this sound ok, or does anyone know of a better way to do it?
i cant add a record to my access database! i think the code is right which i used asp script but then only blank record was added! It added a record but then no data in it! Code:
I want to take the last record in my database and display it on my ASP program. From my understanding, when last record + 1, it will be autonumber right. It's like generaing the autonumber for invoice number.
For easier view, my last record is 21. So I want that 21 appear in my ASP system as 22. Is anyone can give me the idea how to make it?
I am uploading records automatically from an access database to the asp pages, but I am looking for a way to deactivate the record in the database so that it is not loaded into the asp page.
(the ID field will be the auto incrementing index)
there might be 10 records in the DB, there might be 10,000. i need to open the DB and randomly select a record (and then display the name, which i dont have a problem with)
how can i randomly select a record? im guessing id have to open a recordset and check the count to get the number of records, so lets say there were 100 records. i imagine i would have to generate a random number between 1 and 100....
I'm trying to add a record to an access database using asp. I create the database, the input form where i put the information, the asp code where i process the information and last the asp code to view the record added but when i press the submit button it show me a Downloading box for a downloaing process.
I've got a form that adds a record to a database. What I want to do is on submit, look at the records in the database to make sure no value in a particular column matches what the individual is trying to submit.
More simply, Form A has a field called "collection" which inserts into the database column named "collection" I want to make sure that the value in the collection field hasn't been used.
How can i check if a vlaue exists ? Sample to get the idea: Code:
set con=server.createobject("adodb.connection") con.open "Menu1" sTempquery ="Select * FROM Voorkeur Where gebruikersnaam = '"& Request.Servervariables("LOGON_USER") &"'" Set autor=Server.CreateObject("adodb.recordset") autor.Open STempquery, Con
The idea is that if the "LOGON_USER" does not exist in the Dbase he must execute code. How can i do that?
Is it possible to use CDONTS to send an email and INSERT a record to a database, once a form has been submitted. They work individually but I cant get the scripts to work together.
I'm having a trouble to insert data into the database. I can't understand what do I do wrong. I've got 2 pages , one is html with user registration form and another one is asp with the following code:
I have just created a register page for my site. I have had one running for years now, but I want to upgrade so it works a bit better.
Using the code below, the record that is entered into the database is corrupt. If i try and view the page with my admin page (works with records created with my old registration system), i get a 500 error, and if i view the database in access, the rows entered by thius code all show as hash symbols... any ideas? Code:
I am using a Replace function to replace single quotes with double when submitting a text field in the database i.e. Replace (q, "'", "' ' ") which works fine. When I retrieve the field from the database which has apostrophe I am getting 'Object expected' error message. Is there a way to fix this?
I have a simple table "Line" with Columns Key, OrderNumb, Panels, Gates, Posts, Color, Memo, Comp. A user enters the information into the powder.asp page. It is then added to the database. The Comp Column is populated NO by a hidden input type. The data is then displayed on a page in a table and the last column has a submit button.
When the user Presses that button I would like it to update that record in the database to change Comp to YES. Some code snipits are below. The first is where the data is presented and where the submit button is. It then will go to the next snippet that hypotheticly will change just the Comp on that record to YES. I am not sure if I am not executing the SQL correctly or something but it will not change that order number row comp to 'yes'. Code:
i can display the results ok, but if i return 100 records from my table i would like it to display 5 records per page. i have looked at asp recordset paging on several sites, however cannot find any scripts that work with ASP JAVASCRIPT....