I am trying to connect to my SQL Server database & I have the following codes which doesn't work, it only showed "Display up to here":
var cn = new ActiveXObject("ADODB.Connection"); // the following info. is an example var strConn = "Provider=sqloledb;SERVER=220.127.116.11,1000;DATABASE=WebTable;UID=ABC;PWD=password"; var SQL = "Select * from GuestName Where ID = 3865989"; alert ("Display up to here"); cn.Open(strConn); rs.Open(SQL, cn); [Code]...
I am having no luck with my post form to mysql. It is only posting the first letter of the word/phrase for the text input fields to the mysql database. It is a photo and text post form. The photo and only first letter of text are posting to database. I am using Jqtouch, jquery, and phonegap.
I have a script which needs to detect when the internet connection is lost and hold the content of the web page until the connection is restored.
My web page, I have a web page which contains some text and graphics but more importantly it also has an iFrame. The iFrame connects to an SQL database and displays data which is refreshed every 20 seconds.
According to this[url] I prepared mine search which works fine. it displays which products are intel and which amd for example. I wonder how can i add a second similar search for sochet or something else,but not separate one for example if i have selected the intel as 1st option then choosing my 2nd one it display only intel products.
I'm making a list on a web page of my different books (exemple).
<a href="#" id="permissions1">my favorite book </a> <a href="#" id="permissions2"> best selling book </a> <a href="#" id="permissions3">most expensive book </a> When the user clicks on the link, I want to do a dropdown sheet with the info of the book (the info is in a mysql datebase), name , author, nb pages etc)
I have generated onclick fonctions automatically, that passes a parameter (ie 1,2,3) but don't know how link it to the info in my database.
There are only 25 books, so I could just create an array and get it that way. But the day that I modify info in my database, I'd need to correct my code and I would like to avoid that.
I was just notified that the individual that wants this done also does not want the external .js file to be able to be copied, and someone else profit from his/our work. I know that you cannot hide a client side file; no matter how hard you try someone can get it. However, if I deciped to go with a database instead, could I use a variant of this file or convert it to another type that will allow me to use an access dbase that we have, and yet keep my navigation the way I programmed it?
I do not know the value of both PHP-Values, they come from a database. I have tried now some hours to grab the values of this array, because i have to compare them to other values in similar inputs. But I simply do not know how? For a simple test i simply want to change the value of the chosen fields. I tried (nearly) everything from something like $("input[name='combi']").val('test'); to $("input[name='combi'//[//]//[//]]").val('test'); . In PHP I have absolutely no problem, i go simply through the arrays with:
I'm looking to fill out an input box, and onBlur get info from the database and echo it. Very similar to how you register on this site, when you fill out a username, onBlur it checks to see if the username is available and echos yes or no. I want to fill out a username, and when you click out of the textbox, echo the First and Last name if it exists.
You may use any descriptive text for DESC. I suggest limiting the description to 20 or fewer characters. The unit cost will be in dollars and cents. The amount is up to you, but keep the it in the range $0.50 to $100.00. Also, keep the item and the price somewhat realistic.
Create a form to access the database. There will be 2 input boxes, one for the SKU number and one for quantity. There will be 3 output boxes, one for the Description, one for the Subtotal (price x quantity), and one for the Total Cost (a sales tax of 7% added to the subtotal). There will be 1 button to retrieve the data and display the result (Description, Subtotal and Total Cost).