im in the process of creating a MySQL database and I am trying to figure out how I am going to accomplish what i need done. I have 2 scenarios to solve:
1) When a user clicks a button.. I need the action to be set on a timer so that the event will take place in X number of seconds.
2) I need to be able to have a couple thousand rows of data that will need to be continually updated every second.
ie. a person has a bank account that is to gain .0001 th of a penny every second. i m not really sure where to start with this.. I am setup on an MySql database and will be using ASP and VB.
i wrote a shopping cart using cookies found out thatIE 7 won't let me add more cookies after a certian number. decided to use DB along with cookies and now i have very weired problem never encountered before Code:
first the item sold and recorded as sold in the sale table secondly the item will be deleted from the stock table third the item wil be automatically reordered in the order table.
is this possible please. I am using Dreamweaver/access and some of ASP that is generated,
I have this form that people fill out with information and it updates. I'm fetching from two tables and it doesn't seem to update any forms related to the second table. Code:
I am using an Access Database and I want to be able to update user address records using VBScript via Asp. Looked at many sites and cant work out an answewr. All I want is for the user to enter there new details into a text box hit submit and the address fields within the database to be updated automatically.
whenever i try to add a new entry to a database through ASP i keep getting the following message:
Error Type: Microsoft OLE DB Provider for ODBC Drivers (0x80004005) [Microsoft][ODBC Microsoft Access Driver] Operation must use an updateable query.
i have enabled WRITE in IIS and i have made sure that the database is not read-only in ODBC. Funny thing is it was working fine a few weeks before but now when i try and add a new record that message keeps coming up. I am fresh out of ideas. I have created a new DSN in ODBC but it still comes up with that message.
ive noticed loads of online apps that allow emails sent to a particular address, to update a database i.e. ta-da.com - can this be achieved with COMless scripting in asp?
I would like to be able to update an image I have stored in a database by uploading it through a form. The current pages I have now will only add a new entry to the database. I would like the customer to be able to change the image on their index page through the form. How can I change the following code to do that?
I have a form that when the user inserts the password data it is supposed to update the member info in the database with the password but instead it just adds a new row with the password and leaves the id requiring the password blank. SO it does add to the database but just not in the correct row.
I have created a nice form that i want on my site for users to fill in detail. But i was wondering if anyone knew any good tutorials on how i can get this info sent to my database?
Is there any way you can put a variable in the values in an update command?
If oRS("n4") <> 0 then Response.Write ("<tr>") Response.Write ("<td>4</td>") Dim qn4 qn4 = oRS("n4")*intQuantity strsql = "INSERT INTO report (q1) VALUES (qn4)" Set oRS2 = oConn.Execute(strSQL) Response.Write ("<td>Meter box, meter and test block</td>") Response.Write "<td>" & oRS("n4")*intQuantity & "</td></tr>" end If
im doin some code on asp where ive got an excel file and run it against a database file. i am trying to code it so that it runs asp code that checks the data in the database and if the data isnt present in the database- the code insert it , but if its already in the database- it should be updated.
Ive used sql commands, connection and a few loops-to run to this- it adds new data to the database but it overrides and re- inserts the data when run a second time.
i am trying to build a page that my client can log onto with a password and update information daily, if there is someone who can point me in the right direction or tell me how to do this it will save me days of research trying to find it myself.
Currently i am using this function to update the database for the values of the checkboxes. Anyidea on how to go about including the values of those not selected. 0= not checked 1=checked
MenuName | Super | IT Menu1 1 1 Menu2 0 1
Code:
for each chk in Request.Form("opt") sSQL = "UPDATE GroupAccess SET IT = 1 WHERE MainMenuID = " & chk Conn.execute(sSQL) next
I know this is a redundant question but I can't find a straight answer anywhere. I've got an online registration page that I just want to save name, address, etc ... to a record in an Access 2000 database via ASP on a site of ours.
I know it's a permissions issue. How do I make my connection to the database where I will have rights to update, or add records, to the database? My local test environment works fine so the update code and logic are fine.
I need to know the specifics of how to do this on our host server. I've done this simple task before a couple years ago, but things obviously changed since then. My Web_Account has Read, Write, and Executable rights, but it dies everytime it tries to update my record to the table.
I'm building a shopping-cart like feature with Dreamweaver MX 2004, an access database and ASP & VbScript.
I'm now at the point where I need to add several rows to the same table in the database. Each time the amount of rows that need to be added tot the database varies from 1 row to however many orders a customer places. I'm cappable to make this function for one single row. But not for orders with several rows. Code:
I have a query i know that in ASP we can generate the Reports in excel i wanted to know is there any way to update the database through the excel report which will be generated.
I have a form and when you click submit it is supposed to open up the database add the stuff from the form to the database and close the database. The problem is i am getting an error that says this:
Microsoft OLE DB Provider for ODBC Drivers error '80004005'
[Microsoft][ODBC Microsoft Access Driver] Operation must use an updateable query.
if it is possible to insert and update records in a database from the data that is in an HTML table? I have a program that converts data to an HTML table and would like to be able to insert/update records to the database on the webserver.
Well, my script consists in check if the typed code doesn't exist in the DATABASE, but thats not the problem... the problem is that the PAGE1.ASP (that check the code) redirects to the ADD.ASP that will add those codes to the database!
That's the line in page1.asp that redirects to the add.asp. So, when the database is completed empty and, the page1.asp checks that there ins't any problem with it and redirect to the add.asp that doesn't update my database!! So, it continues without any record. But, if the database has, at least, one record, the script works normally without any problem!
Another thing that I noticed is that when I, manually, type the adress Http://127.0.0.1/add.asp?cod_1=176096, for example, and the the database is empty, the script does the UPDATE and adds the code to the table!
I have no idea that the problem is. Does any one have a clue?
I'm not sure if this is an ASP thing, a IIS thing, or a GoDaddy (where my domain is registerd and forwarded from) thing...
First I'll start by saying I run my own Windows XP web server and do all the coding myself..
I've noticed in the past (and never really gave it much thought, because the site works fine), that when I switch pages within my site, that the URL line is not always updated.
For example, I go into the pictures section, view a few pictures, then select the "Home" tab... The URL will stay with the variables that were passed when I was viewing the pictures. Therefore, if I do a "refresh", the page goes back to the pictures I was previously looking at, not the home page.
I've tried this on multiple computers at multiple sites, and with multiple browsers... And seems to happen rather consistantly...
I am looking at updating a notes part of my data base. I am calling two fields (first name and last) from the data base and putting them into read only text box (as i dont want the details changing). All of this is contained within a form. I am also calling a feild from the database called notes which originally has been inserted using a <textarea> tag. The problem i face is that you cant put values into a <textarea> (ie. i can put data from the database into the value tag of a textbox but <textarea> doesn't have a value tag). Due to this i am putting existing notes onto the page as text. Under this i have do have a <textarea> to put the new notes in. The problem i have is that i some how need to store the existing data in the notes field and then add it to the new notes that i will be adding. I just don't know how to put the data i am getting from the notes field in the database into a variable.
Having problems writing an update script because in one of my fields I'm adding a chunk of HTML that contains ' characters. Obviously this throws up an error. How do I get around this?
I have a function below that works fine. It takes a XML dox parses it, etc.
What I need to do is after the update of a record, I need to query the same table again for another record. If it finds this second record, I need to update it.
The problem is I can't get it to work, mostly because I don't completely understand the .open() method. Can I requery and the test for the existance of a returned record - if so how? Code:
I placed a post a couple of weeks ago discussing how I was having trouble using ASP and the XMLDOM to differentiate between the text content of Parent and Child Nodes in an XML file.
ie: IF PARENT.text > "" Then 'Do Something with PARENT.text ElseIf CHILD.text > "" Then 'Do something with the CHILD.text End If
The problem being that I couldn't differentiate between the text values of PARENT and CHILD.
I've managed to work around that problem in a fashion but I'm begining to think that I'm going about this with the entirely wrong approach.
All I want to do is edit the following XML file through ASP: * Note that there are attributes with values and some nodes and child nodes have text values as well Code: