199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for raul8

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]

0
72
Member Avatar for geoNeo_

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 …

Member Avatar for geoNeo_
0
92
Member Avatar for gloryy
Member Avatar for labq5
0
75
Member Avatar for jess314

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 …

Member Avatar for jess314
0
298
Member Avatar for hazeeel

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 …

Member Avatar for jon.kiparsky
0
623
Member Avatar for lazylearner

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 …

Member Avatar for vb5prgrmr
0
544
Member Avatar for solahere

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.

Member Avatar for solahere
0
268
Member Avatar for vu student

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 …

Member Avatar for UsmanKashif
0
78
Member Avatar for andy_aphale

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 …

Member Avatar for vb5prgrmr
0
221
Member Avatar for InfrequentCoder

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 …

Member Avatar for vb5prgrmr
0
261
Member Avatar for Baz_Singh

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 …

Member Avatar for vb5prgrmr
0
138
Member Avatar for Guest51

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 …

Member Avatar for Guest51
0
4K
Member Avatar for Danny_501

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.

Member Avatar for Danny_501
0
101
Member Avatar for atechnikality

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 …

Member Avatar for atechnikality
0
1K
Member Avatar for ganav

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 …

Member Avatar for Adak
0
105
Member Avatar for jonniebl

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 …

Member Avatar for jonniebl
0
180
Member Avatar for web3
Member Avatar for daviddoria
0
271
Member Avatar for gonzigg

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. …

Member Avatar for gonzigg
0
4K
Member Avatar for Ghost

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.

Member Avatar for volvo14
0
1K
Member Avatar for CanYouHandstand

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 …

Member Avatar for Agni
0
202
Member Avatar for fullmetalboy

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" …

Member Avatar for fullmetalboy
0
140
Member Avatar for adcodingmaster

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 …

Member Avatar for adcodingmaster
0
157
Member Avatar for libathos

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 …

Member Avatar for libathos
0
145
Member Avatar for katokato

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 …

Member Avatar for katokato
0
154
Member Avatar for maliy0

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 …

Member Avatar for maliy0
0
166
Member Avatar for sara nabil

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 …

Member Avatar for sara nabil
0
359
Member Avatar for CanYouHandstand

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, …

Member Avatar for CanYouHandstand
0
100
Member Avatar for dylgod

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 …

Member Avatar for jon.kiparsky
0
116
Member Avatar for cblue
Member Avatar for Rez11
0
145
Member Avatar for mukulnimker

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

Member Avatar for mukulnimker
0
151
Member Avatar for musicofthehart

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, …

Member Avatar for Zagga
0
143
Member Avatar for cmalkmes

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 …

Member Avatar for cmalkmes
0
267
Member Avatar for onako

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 …

Member Avatar for jon.kiparsky
0
110
Member Avatar for nizuya

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 …

Member Avatar for zeah
0
2K
Member Avatar for infosoft

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 …

Member Avatar for diafol
0
145
Member Avatar for priyam1309

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 …

Member Avatar for Lusiphur
0
102
Member Avatar for AngelicOne

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().

Member Avatar for Lusiphur
0
443
Member Avatar for pavani2006

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]);

Member Avatar for devaru2003
0
222
Member Avatar for teedoff

Sometimes when I view my webpage, which has a search form on it and then search for records in my database, and I let it sit there for a few minutes and then refresh or hit the back button, it throws up an error saying: "500 Internal Server Error: There …

Member Avatar for teedoff
0
70
Member Avatar for mebob

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 …

Member Avatar for mebob
0
273
Member Avatar for hisan

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.

Member Avatar for hisan
0
89
Member Avatar for fsl4faisal

[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 …

Member Avatar for gusano79
0
166
Member Avatar for NewOrder

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() …

Member Avatar for NewOrder
0
120
Member Avatar for valonesal

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 …

Member Avatar for valonesal
0
90
Member Avatar for sabareesh

I created a dyanamic array through malloc() function. (size is 1024) next time i want to change buffersize as 500 . how can do this?

Member Avatar for sabareesh
0
92
Member Avatar for vidyasmani

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 + …

Member Avatar for arkoenig
0
106
Member Avatar for judithSampathwa

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 …

Member Avatar for nick.crane
0
177
Member Avatar for bsewell

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. …

Member Avatar for fxm
0
270
Member Avatar for pato wlmc

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 :$

Member Avatar for Excizted
0
182
Member Avatar for pgperez

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', …

Member Avatar for pgperez
0
119

The End.