199,114 Archived Topics
Remove Filter ![]() | |
In the code below, the updates are performing successfully, but the page is not redirecting Please Check: [CODE] out.println("<html>"); out.println("<head>"); out.println("<script>"); out.println("function redirect()"); out.println("{"); out.println("window.location='EmpForm.jsp'"); out.println("}"); out.println("</script>"); out.println("</head>"); Class.forName("org.gjt.mm.mysql.Driver"); con = DriverManager.getConnection("jdbc:mysql://192.168.101.98:5501/TestNJ", "testnj","testnj"); st=con.createStatement(); query="UPDATE emp1 SET E_Name='"+EName+"',E_Address='"+Add+"',E_Dept='"+Dept+"' WHERE E_ID='"+EID+"'"; st.executeUpdate(query); out.println("<body onload='redirect()'>"); out.println("</body></html>");[/CODE] | |
hey guys! I'm new at ASP, and I hope that could please ask for some advice. Basically I got a little test website that i am experimenting with, what I would like to to if the main page of the web site loads that in one of the tables that … | |
hey how to use calendar picker from Microsoft calendar control 11.0 | |
Hi all, So, I'm a real newbie at this, and I don't even know where to start really. I'd appreciate some help. I've downloaded Allegro 4.9 onto my computer (running Windows Vista), and I want to use it with Code::Blocks IDE. I've tried many a google search, but none of … | |
Greetings! The below is an example of a text file from PDB. ATOM 2 CA ASP E 423 [B]-50.931 46.011 -16.062[/B] 1.00153.24 C ATOM 3 C ASP E 423 [B]-51.314 44.692 -15.381[/B] 1.00152.70 C ATOM 4 O ASP E 423 [B]-52.175 44.673 -14.497[/B] 1.00153.08 O ATOM 5 CB ASP E … | |
hey i ve an imagebox height=5820 width=6400 which dynamically loads any image. now the problem is when i set its stretch property true it displays the pic but it appear strectched and distorted. if i use the following code it displays the pic in its original size....bt the dimensions of … | |
I want to assign a whole chunk of html content to a php variable. I was wondering if anybody knows of a way other than catenating manually. It's a huge chunk of html full with escape characters so don't want to do '' or "" thing. Any help is appreciated. | |
As-salaam-o-alaikum i hope all fine. a) What is Static Polymorphism? Write its alternative name with a simple example with code. b) What is Dynamic Polymorphism? Write its alternative name with a simple example with code. c) What is the main difference between Data Hiding and Data Abstraction? How we achieve … | |
Hello i am developing a encryption/decryption Application in which i am first converting string into its ascii values then reversing this ascii values and then generating the hex values of this reversed ascii values... I have completed the encryption part as i am able to convert the string into hex … | |
First, of course a List box (it has it's default name List1) is not a variable. I tried variables that were close because Visual Basic gets "confused" about its error messages (as when one has nested strings and it lists the wrong one an error) Oddly the current version I'm … | |
Hi. I am very new to VBA and the task in hand is a tough one to start with. Basically I have requirement of code I can run using Active X in DTS to load data that sits in excel files in a certain folder location into an sql server … | |
I have a DVD inventory record program that creates a DAT file if none exists and then stores the user input. As long as the program is running the user may then advance one record at a time (forward or back) through the files, skip at anytime to the first … | |
Hi all, Is there any way to get the location of the CLASSPATH environment variable within a pragram. I need to get the location of rt.jar so that I can dynamically load the classes within that jar file using URLClassLoader. thanks in advance. | |
I'm a student and taking an intro to C class and would appreciate some help! I've got a file with 10 words that I've loaded into a 2D array. I've written code that will generate a random number between 0 and 9 to select a string from the array. I'm … | |
Hello! I want to make a simple game like this: [IMG]http://img340.imageshack.us/img340/6393/gamea.jpg[/IMG] So I need to start by moving the rectangles. Now I want to make an option for player VS player. I need to somehow check what keys are in "key down" state. How can I do that? (I'm using … | |
I am trying to write code to send a mail message with an attached file. my code works fine if I don't try to attach a file but crashes when I do. I have not been able to figure this out. My code looks like this. [ Dim mail As … | |
I want to make a 3D game and I don't know what to use OpenGL or SDL? | |
Hello, Im trying to get this program to display a receipt of the items bought with its price and total, but so far this is what I've acomplished, I've been trying for a long time now, to make it print the receipt in the win2 but I haven't been able. … | |
Hi Everybody, Is there a way to have a picture of the 3 or 4 sq. pixels you're mouse is hovering over appear in the bottom of the screen? Thanx. | |
Hi All I'm using the QClipboard class provided by Qt. I'm trying to create a QList that holds the last twenty items that have been copied. I am declaring the list as follows: [CODE] QList<const QMimeData*> *copiedList; [/CODE] I am creating the list as follows: [CODE] copiedList = new QList<const … | |
Hi everybody! I'm a newbie to C++ and I need some help to improve my skills in c++. *When you make input data "cafe monde" into a string variable, the variable only accept "cafe" and not the white space and "monde". What should I do to retrieve white spacem "monde" … | |
Hi every one. i m sending mail in php and facing a problem the problem is when i add some text in the body like this <b>this text is bold</b> then this text is shown as it is in the mail i want to show this text bold The problem … | |
hi guys, so iam writing a program which creates a .bat file in a directory and copies it to another directory through copyfile...the problem is that while the .bat file is created properly but when it's copied to the other directory an error occurs saying its not a win32 appropriate … | |
Im trying to learn c++ loops and structures with the c++ primer plus book. Here is the question no6: [url]http://books.google.com/books?id=zuyAIZ9ZIskC&pg=PA205&lpg=PA205&dq=c%2B%2B+primer+plus+programming+exercise+how+many+cars+do+you+wish+to+catalog&source=bl&ots=mbyXM-wZBZ&sig=o0nBYx-ZkCShRJztCVoFTy4S1eM&hl=en&ei=BqxQTMKVK4eosQPi_bynBw&sa=X&oi=book_result&ct=result&resnum=1&ved=0CBIQ6AEwAA#v=onepage&q&f=false[/url] My current code: #include <iostream> #include <string> struct car { std::string carname; int yearmade; }; int main(void) { using namespace std; int zero = 0; int vb2 = 1; int … | |
Hi everybody! I'm having some problems and hope to get help in this forum. My website name is SNIP. At this time it is setup as coins website. I'm trying to reinstall original categories to make it a full auction site. When I ran SQL dump file that was given … | |
i have a ver starbge problem , i was making a site and was completly correct on the localhost,but when i upload irt to a server to test it something stange happened which is i got that error Warning: mysql_result() expects parameter 1 to be resource, boolean given in /home/saraanv/public_html/blog_web/index.php … | |
Hi All I'm trying to write to a variable contained within an indexed record. Currently the record is not updating when I assign the new value. If I create a 'buffer' record and assign the value to the 'buffer' record and then assign the 'buffer' record to the indexed record, … | |
I am working on a code to read N user input numberb and then display the largest and the smallest of them. The inesgers have to fall in between -999999 and 999999, I have been tinkering with this for a few days now and can't seem to figure out how … | |
| |
hello frnds....i am mukul working on a java project using mysql database and swings in netbeans ide can anyone tell me how to retrieve data from mysql and show tha data in JTable......in netbeans....... i know how resultset and statements commanda.......but dont know how to show that data in JTable | |
I am sure that this is a silly question for most of you, but I have googled and searched, and I cant find what I am looking for. I have altered an opensource website script. A script that you install on a server and bam... you have a website. like...joomla, … ![]() | |
Howdy, I'm a GIS guy trying to get my hands dirty with some Python. What I'm trying to do is iterate through a file (shapefile), reading specific fields from each row of the file's associated table. The table has thousands of rows, which is why a Python script is handy … | |
I store matrix entries in std::vector<double>, such that the reading is row by row. This means, for matrix 1 3 4 8 9 3 3 6 8 1 1 2 2 0 9 8 7 6 the std::vector<double> would have entries: {1,3,4,8,9,3,3,6,8,1,1,2,2,0,9,8,7,6}. To transpose the matrix I use the naive … | |
I'm writing a form that will include a place to upload a pdf. I would like the upload section to be a separate form in a popup. After the user successfully uploads a file I want the original form/window to update with a link to the uploaded file and a … | |
hi as i am new to PHP I am trying to find the name and mobile number from a string. i am using textarea as input format is as 1 - name, mobile(10 digit[9999999999], 11 digit[0-9999999999], 12 digit[91-9999999999]) in a single line 2 - user can input only mobile number … ![]() | |
Hi, I wish to create my own blog website but the problem is i still am confused about how it is done. I would like to use ASP.NET and C#.net to create the website and HTML & CSS to design the website. The main issue is can i store the … | |
I used datetimepicker.value.date to insert the value in database. Then I used this [CODE]dateTimePicker1.Value= Convert.ToDateTime(dt.Rows[0]["Issued_Date"]);[/CODE] But it doesn't work, neither .ToString(). | |
i want to print words in reverse. i could print characters in reverse but not words for(int i=arr.length;i>0;i--) printf(arr[i]); | |
When I tried to compile my code, I got this in the log: child 2136(0xD8) died before initialization with status code 0x1 *** child state waiting for longjmp *** child state waiting for longjmp Resource temporarily unavailable C:\Users\Collin\Desktop\Programming\Makefile.win [Build Error] [HW8P1Class.o] Error 2 This is the file that seems to … | |
Hi, I want to know how to read the binary file from 10th byte to 90th byte in a file size of 100 bytes and need to write the read data into new binary file. please help me in doing this. | |
[CODE] #include<stdio.h> #include<conio.h> #include<stdio.h> void maketree(struct node**); void inorder(struct node**); struct node{ struct node *left; struct node *right; int data; } void main() { struct node *root; root=NULL; printf("Enter root"); maketree(&root); preorder(&root); getch(); } void maketree(struct node **root) { int num; struct node *temp; if(*root==NULL){ //printf("Enter number"); scanf("%d",&num); temp=(struct node*)malloc(sizeof(struct … | |
i was looking at this code and thinking when is it a good idea to use the do-while method. [CODE]import java.io.*; class ValidHex { public static void main(String[] args) { Console console=System.console(); String hex; boolean valid; do{ System.out.println("Please enter a valid hexadecimal number"); hex=console.readLine(); if(hex.length()==0) valid=false; else valid=true; for(int index=0;index<hex.length() … | |
Is there a way to set tinymce so that the user can post text and html in the same box without having to open the html box to enter code? I have seen on other sites where you can enter text and then some html and it comes out fine … | |
I created a dyanamic array through malloc() function. (size is 1024) next time i want to change buffersize as 500 . how can do this? | |
Hi all... I tried the following code in my Turbo C++ .. [CODE]int j=5; cout<<++j + ++j + j++;[/CODE] and got the result 20, as expected. But, when I replaced the code and assigned the same to another variable x, it gives result 21. ie, [CODE]int j=5,x; x= ++j + … | |
Hi there, I have a form that loads data from the database and the and tose data are being disabled so that the user can’t edit any information on it. In the same form I have two radio button as received and denied, Weh I select deny another small form … | |
Hi all, I'm trying to develop a javascript to display a few images in a div. The plan is to get two pictures which will act as next/last image, but I'm stuck for running the script when the page loads, which is using the onLoad function in the body tag. … | |
Well, right now i'm using linux, but i've heard that windows is really best for programing videogames ( on c++ ) well, wich O.S. do you think is the best? P.D. Sorry for the bad english jeje :$ | |
Hello everybody, I'm having the same problem. I can connect to a SQL server with default instance (no named), but can't connect to a named instance! I tried escaping backslashes, and putting port number, with no success. Examples: $connection = mssql_connect('MYSERVER', 'USER', 'PWD'); --> WORKS OK $connection = mssql_connect('MYSERVER\INSTANCE', 'USER', … |
The End.