64,152 Solved Topics
Remove Filter ![]() | |
what is wrong in following code [code] <form name="log" method="post" action="login.htm"> <% try { //Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); //String url="jdbc:odbc:ODVS"; Connection conn=null;//DriverManager.getConnection(url,"downtime","downtime"); Class.forName("oracle.jdbc.driver.OracleDriver"); conn=DriverManager.getConnection("jdbc:oracle:thin:@10.10.10.2:1521:PLMDM","vvv","vvv"); String uid=request.getParameter("username"); String pwd=request.getParameter("password"); String sqlQry=("select * from USR_PASS_TB where username='"+uid+"' and password='"+pwd+"'"); Statement stmt=conn.createStatement(); ResultSet rs=stmt.executeQuery(sqlQry); if(rs.next()==true) { //response.sendRedirect("../HTML/index_group.htm"); %> <jsp:forward page="login_cae.htm" /> <% } else { //response.sendRedirect("..HTML/invalid_login.htm"); … | |
Hello, I know this is a basic question but i didnt get the answer myself. So posting it here. I have a program that spans many files, all are .java. If i have to compile them should all of them be in the bin folder of the JDK? Can i … | |
Hi, I m inserting Record in Access using VB6 SQL statement as follows [code]Dim str As String On Error GoTo solve str = "INSERT INTO [compinfo]([cID],[cname],[address],[add2],[city],[Postno],[mob],[phno],[faxno],[email],[workday],[offtime],[saldate],[duedate],[amount],[paytyp],[web],[type],[expdat],[charge]) values (" & "'" & txtcomid.Text & "'" & _ "," & "'" & txtcomnam.Text & "'" & "," & "'" & txtcomadd.Text & … | |
Hi Guys, I've got a code that basically storing data from several controls, one of the control is GridView. when I "Submit" I get all rows from GridView and I need only the selected rows.. I've tried to use: str = GridView1.SelectedRow.Cells(1).Text but it gives me an error when I … | |
I am building a ticketing system and am currently working on the profile page. I have created drop down menu's so admins can select assign users to a specific group. My page is written in php and when submitting my form everything gets updated except the drop down menu's. I … | |
I'm new to php and am working on my first large scale project. I am making a custom ticketing system that requires users to login and let's technicians login to work tickets. I am trying to implement a account disabling feature so tech's that are no longer with the company … | |
Please help me understand if and how I can program a microcontroller myself and be able to use it in an electronic digital circuit to perform some simple tasks for example switching. | |
Can someone tell me how to create a simple but attractive splash screen to load at the start of my program which will highlight: 1) the program title 2) who the program is for 3) who designed the program and 4) what version of the program it is thanks | |
Why isn't the mReadkey macro outputting the string "Please enter...." ? [CODE] TITLE MASM Template (main.asm) ; Program: Chapter 10 Problem 1-5 ; Author: Jon Wayman ; Created Date: July 17th,2008 ; Revision date: INCLUDE Irvine32.inc INCLUDE Macros.inc ;------------------------------- mReadkey MACRO ; ; This macro asks user to press any … | |
hi i need to store data more than 8000 char in varchar in sql server 2000 how can i? plz help. | |
How in the hell do you divide by 7 using nothing but-- ~, ^, >>, <<, &, | -- In a set algorithm. I'm stumped. I've tried mapping out different numbers dividing by each other... it didn't work. I would map out a number subtracting from the other to see … | |
I've been getting an "Access Violation" error while running this program: [code=c++]#include "SDL/SDL_ttf.h" class Font { private: TTF_Font *font; public: Font() { font = TTF_OpenFont( "c:\\windows\\fonts\\cour.ttf", 20 ); } ~Font() { TTF_CloseFont( font ); //Access violation } }; int main( int argc, char *args[] ) { if( TTF_Init() < 0 … | |
Hello :) Umm I have a small question :) Which do you recommend for fast searching BST or AVL tree? My answer: It might be the BST because it'll be noticed that in the right subtree all the numbers greater than the root will be there also for the smaller … | |
Hi, I was wondering with the menu bar how to open, save and make a new file on the menu bar [code] case MENU_FILE_ID_OPEN: { //something to open the file } break; [/code] i have no idea at all how to do this, i have searched the net but it … | |
I'm writing a function that reads an IP address from input and generates its 32-byte values. If the input is correct, the whole thing can be done by this: [CODE=C++] int a, b, c, d; char buf; cin>>a>>buf>>b>>buf>>c>>buf>>d; ... [/CODE] If it's not, such as 256.0.0.0, or 1..2.3.4, I want … | |
if you use movefile and ofstream the ofstream file won't be made.. :s any way to solve this? | |
Hi Everyone! Need help in my new Project with Visual Basic 6.. I need to send a 5 volts signal from my pc using a VB6 program to the serial port where I could place a relay... Thanks :) Dexter A. | |
hi, can anyone give me a brief example using mailx and heredoc to send an email? [CODE]#!/bin/sh mail -s "subject" target@address >>body hello all, this is supposed to be the body of the mail body[/CODE] -----------------------------------------> i think i need somethink like above code, with mailx instead of mail -s......... … | |
Hi, I am trying to write a class that uses vectors that contain another class. When I compile my code using g++ I get the following error that I don't understand: [B]In file included from cars.cpp:5: car.h:24: error: syntax error before `;' token car.h:25: error: syntax error before `;' token[/B] … | |
Wasnt sure where to post this but it uses php... help mods? i can get the number of messages and connect to a telnet server so i say top 1 and responds something along the lines of -ERR protocol error 16 or something... not sure if thats exactly what i … | |
does anybody know how to make bubble sort work in progressively smaller sizes and determine if a list is sorted on it's first try? i've got the basic bubble sort algorithm down. i just can't figure out the rest of it (my basic bubble sort code below) [code] def bubbleSort(list1): … | |
I don't know if this is the best section to ( ask questions ). So, excuse me. It's my first topic anyway, and I couldn't find any other section to ask for help. I believe you don't need any explanation about my problem, but here it is anyway: E.g : … | |
Hello all, I want to make an application just like Notepad. Write text, save them, open them and thats it. Is there any tutorial for it? Thanks | |
import javax.servlet.*; import javax.servlet.http.*; these servlet package does not exist, any idea [QUOTE] import java.io.*; import java.sql.*; import javax.servlet.*; import javax.servlet.http.*; public class EmployeeDetails extends HttpServlet{ static int i; Connection con; PrintWriter out; ResultSet rs; public void ini(){ i=0; con=null; out=null; rs=null; } public void doGet(HttpservletRequest request, HttpServletResponse respose) throws … | |
just wanting to know how to implement any background like a picture or something into python programs, i think i can only use .bmp but yeah thanks | |
Hi I have 12 comboboxes for data entry. Everytime I type in some input in the form, it gets stored in the Access Database. Every time my form loads, it picks up all distinct values from the database and fills the combo box. But there are several repeated values because … | |
i am trying to set up this db and i am getting a parse error which it says it is on line 24 i cannot see the error. help need [CODE]$sql="CREATE TABLE IF NOT EXISTS `merc_users` ( `****` int not null, `******` varchar (250) not null, `*****` varchar(250) not null, … | |
Hi there I just need some clarification on how time is seen in PHP 1000 would equal 1 sec ? and therefore 60 000 would equal 1 minute right ? and 1 hour would be 3 600 000 ? I somehow think I'm wrong. | |
Hi, How can add 4 rows and 6 columns into MsFlexGrid1 with Command_click event in VB6? Thanks | |
can any one help me in getting the categories like this means i want the categories side by side like in this image [ATTACH]6677[/ATTACH] by providing the code, Rakesh Nagekar | |
hi all, iam trying to retrieve video file from database bit its nat working here is my code[CODE]<? include_once('functions.php'); include_once('conn.php'); if(!empty($_GET['pid'])) { $pqry="SELECT * FROM vdo_cat where c_id='".$_GET['pid']."'"; $pres=mysql_query($pqry) or die(mysql_error()); $prow=mysql_fetch_array($pres); $len=strrpos($prow['videos'],'.'); $vtype=substr($prow['videos'],$len+1,5); $vname=($prow['videos']); if(isset($vtype)) { ?> <link href="site.css" rel="stylesheet" type="text/css" /> <style type="text/css"> <!-- body { margin-left: 0px; … | |
hi i have a application where the user will post article in textarea.....i want to include some editor instead of text area.plese do tell me how to do tat thnks | |
hi [COLOR="Green"]below the coding i not opened the popup window [/COLOR] Code: [code] <html> <head> <script language="JavaScript"> window.open('test.htm','myExample9','width=200,height=200'); } </script> </head> <body> <form action="test.htm" target="myExample9"> <input type="submit" value="Open new window"> </form> </body> </html> [/code] | |
I am trying to get quite a large number 0.00012354684 to X required decimal places. Using <iomanip> and setprecision() but I cant seem to get it to work. Could someone please give me a small example. Thankyou, Regards X | |
![]() | Hopefully this will be an easy one for someone. I am trying to write a SELECT statement that pulls the row with the least time for each Special Number. Example data would be: Time Special Number 3:25:00 1 3:26:00 1 3:25:30 2 3:26:30 2 The expected output would be: 3:25:00 … |
i write the code for register but its not working can u please check the code please [ATTACH]6674[/ATTACH] please tell the solution for this the data is not inserting in database(Mysql) Thank you Rakesh Nagekar | |
Hello, I am currently having problems getting Coldfusion and SQL Server 2005 to connect on my home laptop. I have both installed correctly, I just cant seem to get the connection part down I keep getting this error from the Coldfusion Administrator. [I]Connection verification failed for data source: GTOTDsite java.sql.SQLException: … | |
I have 8.5 million combinations which are then put through 30 if statements. Then final output. Now I havent tried this yet BUT I dont think php will let me make a 8.5 million length array nor will C++. So what else can I do? Are there any other lanuages … | |
[code=java]import java.awt.Color; import java.awt.BorderLayout; import java.awt.event.*; import javax.swing.*; import java.io.*; import java.net.*; class SocketClient extends JFrame implements ActionListener { JLabel text, clicked; JButton button; JPanel panel; JTextField textField; Socket socket = null; PrintWriter out = null; BufferedReader in = null; SocketClient(){ //Begin Constructor text = new JLabel("Text to send over … | |
Hi all, Next term ,I will learn the ASP.NET .Any suggestions such as books and toturial or any other things that can help me learn ASP well? I have learned .NET GUI already. Many Thanks! --Vilice-- | |
Hi, using VB 2008, I have a datagridview bound to a datasource and want to position to a row based on the value keyed by the user in a textbox. I can sort of accomplish this with one line of code on the textbox changed event i.e.: Me.BindingSource.Position = Me.BindingSource.Find("ColumnName", … | |
for this code I need to set string d to char c, can anyone tell me how to do it? [ICODE]public static void main(String[] args) { int n; int m; String d; char c; Scanner sc = new Scanner(System.in); System.out.println("Input Integer: "); //get the value n=sc.nextInt(); int answer = sum_upto(n); … | |
Hello to everybody! I'm new in Python ... and have some problem with reading Excel... no matter that I've set format in Excel Text (for all my available data) - it get float value from it... Ok: here is the code: <code> import xlrd book=xlrd.open_workbook("C:/Py/aaa.xls") sh=book.sheet_by_index(0) print sh.cell_value(RowN,CellN) # it … | |
Thank you Vernon, the money does decrease, but when I buy a pistol for $200 and go to stats it says I have $0 and 50 pistol ammo witch is correct. When I save it though It basicaly erases everything. I opened the file. It said this: 0 0 0 … | |
hi!! i just started programming some stuff in c++. i made a simple program that compares a number given by the user to 0 n say if its cero, positive or negative. [code=cplusplus] // num_positivo_negativo.cpp : Defines the entry point for the console application. // #include "stdafx.h" #include <math.h> #include … | |
I have just started using C++ for the first time and I love it!!! First problem I have encoutered proably a simple one but [code] for (int a=0; a<10; a++) { for (int b=0; b<10; b++) { for (int c=0; c<10; c++) { if (b == 5) { break; beak; … | |
Hi all, I have a sample.bat file . I want to execute that file 10 times . I dunno command that executes bat files . | |
Hello, I have an interesting question. Is it possible to call a dll on the client machine from the server? I haven't found anything in my searches. I have been also wondering if I would have to write a custom extension for php to do this? My main goal is … | |
I'm trying to read a text file into a do while loop. For some reason I can't get it to countinue until ants = 0 . there are two different simulations, once ants go to o the counter needs to reset and do another simulation. Can someone help me? the … | |
Hi everyone! I want to have a coin toss on my program: i have two images (a heads and tails) and i want the user to click on a button which will generate one of these pictures randomly. There's all this code on how to create a random number generators, … |
The End.