199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for aksahoo17

Hello everybody, As i m beginner to Jsp/Servlet.. I want to Upload a image from client side and store it in MySql database then simultaneously display it. I need it urgently can anybody send me the code....... Please,..... Thanks

Member Avatar for jahanruhi3@gmai
0
183
Member Avatar for teoh

[CODE]class StudentMarks { public: int Marks; StudentMarks(); StudentMarks(int iMarks); char grade(); }; #include"grade.h" #include<iostream> using namespace std; StudentMarks::StudentMarks(int) { int iMarks=0; } /*StudentMark::StudentMark(int iStudentNewmark) { iStudentmark=iStudentNewmark;*/ char StudentMarks::getgrade() { if(iMarks>=80 && iMarks<=100) { return 'A'; } else if(iMarks>=75 && iMarks<80) { return 'A-'; } else if(iMarks>=70 && iMarks<75) { return …

Member Avatar for Clinton Portis
0
134
Member Avatar for iwanttolearnc

im trying my hand at reading data via serial communications on a windows 32bit computer. ive accomplished this, extremely crudely and have to some degree been successful. the device i am trying to read sends data in the format $A.B.C$ followed by a '\n' or newline. using the code written …

Member Avatar for Adak
0
214
Member Avatar for bhagawatshinde
Member Avatar for rusl07cl08

Write a program that asks for your age in years, months, and days and writes out your age in seconds. Do this by calculating the number of total days you have been alive, then multiply this by the number of hours per day (24), the number of minutes per hour …

Member Avatar for rusl07cl08
0
1K
Member Avatar for MARKAND911

how can I select one or more columns from a table by column-index and NOT by columnname? I got the columnIndices of table by using this query SELECT name, colid FROM sys.syscolumns WHERE (id = (SELECT id FROM sys.sysobjects WHERE (name = 'table_name')))

Member Avatar for MARKAND911
0
323
Member Avatar for hitler1331

I'm running ubuntu on x86_32...and I keep getting segmentation fault while running this program. [CODE] #include<stdio.h> #include<stddef.h> char *memcp(char *dest, const char *src, size_t n) { char *dp = dest; const char *sp = src; while(n--) *dp++ = *sp++; return dest; } int main() { char *s = "abcde"; char …

Member Avatar for Ancient Dragon
0
75
Member Avatar for DanielWuVB

which programming tool will be better if I need to write the POS system ? Thanks guy ..

Member Avatar for johnpitter
0
116
Member Avatar for devin1pm

First of all, Im not too good at c++. so please take it easy on me. I try to change the password but i only want to change a certain password in the text file.But when the text file got re-write like only one new password exits. the whole file …

Member Avatar for JSPMA1988
0
668
Member Avatar for Nandomo

Okay, I was given a picture in bitmap format and a very brief explanation on seekp and seekg. And was told to write a program. I am supposed to make overwrite the image as its own negative and output in binary. I don't know where to even start, I know …

Member Avatar for Nandomo
0
132
Member Avatar for pseudorandom21

Using C++/CLI-- Is there a good way to return a value (not a DialogResult) from a form shown as a dialog? I plan to use Invoke on a method to update the previous form from within the dialog, if not. I also would like to thank the fine members of …

Member Avatar for Ancient Dragon
0
336
Member Avatar for rakhi4110

Hi everyone, I'm naive to javascript as well as JSP. I'm involved in a project where i need to code a web page similar to shopping cart type of thing. The user selection needs to be displayed in the same page dynamically using JavaScript and then after confirmation from the …

Member Avatar for rakhi4110
0
138
Member Avatar for MDanz

the following should return 1 row [code] $search= "Timothy"; $query4 = mysql_query("SELECT * FROM test1, test2, combination WHERE test1.IDONE = `combination`.IDONE AND test2.IDTWO = combination.IDTWO AND test1.NAME LIKE '%$search%'",$this->connect) or die(mysql_error()); [/code] instead it returns zero. the query should take values from all three tables according to the where clause. …

Member Avatar for griswolf
0
138
Member Avatar for Mayank23

how can i display all the account numbers that have been entered. it only shows the last account number entered, not any before it. heres the code- [code] #include <iostream> using namespace std; int main() { double deposit; double previous; double newtotal; double withdraw; int total; int number; int res; …

Member Avatar for Mayank23
0
189
Member Avatar for skald89

What stuff on a website can't be tested locally? If everything can what do I need to be able to test it?

Member Avatar for mschroeder
0
124
Member Avatar for valeriy_zf

How to start using the GNU Octave libraries for Visual C++? I've read carefully the site but couldn't find any info how to start working with it in details. Especially I'm interested in this example: [url]http://www.gnu.org/software/octave/doc/interpreter/Nonlinear-Equations.html[/url] Starting from words: "Here is a complete example..." I wanna see this in C++ …

Member Avatar for Manlin86
0
3K
Member Avatar for Joey_Brown

Hello So I have a simple structure : [CODE] struct students { char name[30]; unsigned int noofcourses; char course[50]; char status[30]; }arr[50]; //50 students [/CODE] I would like to know is how could I read multiple courses in per student from memory.[CODE]Example: Joey Brown 4 Math$Chem$Phy$Cooking Enrolled m8!! [/CODE] So …

Member Avatar for Adak
0
175
Member Avatar for Huiliam

Hi everyone! My boss is using a Java program called Animal Shelter Manager, which stores all images as BLOBs (Binary Large OBjects) in the database. She needs me to put all of those pictures she has stored on the shelter's website. I look at them in the database, and they …

Member Avatar for Huiliam
0
173
Member Avatar for tacker

I'm writing a simulation in population genetics and am having a problem setting up the initial population. The problem boils down to this... [CODE]int test[1][1][1]; test[0][0][1]=1; test[1][0][0]=2; printf("test: %d\n",test[0][0][1]);[/CODE] Why does this print 2? I feel like it should print 1. I've searched forums for an answer, but haven't been …

Member Avatar for tacker
0
237
Member Avatar for namelyia

hi.. i'm new here i try to do bingo program in separated file but my class name is not declare.. i search on internet on how to solve it but still gives me error can some one help me??? [CODE]#ifndef BINGO_H #define BINGO_H #include<iostream> #include<stdlib.h> #include <time.h> #include <string.h> using …

Member Avatar for namelyia
0
268
Member Avatar for atticusr5

Hello out there, I am trying to compile some simple code but am running into a weird error that I can not figure out terminate called after throwing an instance of 'std::ios_base::failure' what(): basic_ios::clear Aborted This is happening when I do an Infile>> read in the code below. What I …

Member Avatar for Fbody
0
5K
Member Avatar for Mayank23

i made a bank program, it askas the users to put in their account number. it works with a while loop. i ask for the person to enter 1 to start or 0 to stop. i need help on how to display all the account numbers that were entered once …

Member Avatar for Mayank23
0
117
Member Avatar for lochnessmonster

pretty much here is a rough outline of what i have done [CODE]struct monster { int health; int armor; monster *nextaddr; }; int main() { int num; monster *pointer; printf("how many monsters do u want"); sscanf(%d, &num); pointer = (monster*)malloc(num * sizeof(monster)); //Here i need some kind of LOOP to …

Member Avatar for gerard4143
0
104
Member Avatar for rebellion346

I'm just learning how to use templates so I don't really have any experience with them, and I can't seem to understand what I'm supposed to do ... there's apparently an issue with the showWeaponSpecs: error C2783: 'WS AssaultRifle::showWeaponSpecs(void)' : could not deduce template argument for 'WS' : see declaration …

Member Avatar for mike_2000_17
0
124
Member Avatar for skald89

.olddiv { overflow:visible; background-color:#1D41A4; padding-right: 10px; padding-bottom: 20px; padding-left: 10px; } <div id="old" class="olddiv"> My text that overflows is visible but it does not have the div's background color. How do I get it to keep the background color?

Member Avatar for skald89
0
84
Member Avatar for loopylou8

Hi, I'm wondering if anyone can help me with a query? I have 3 tables in phpmyadmin, vehicles, drivers, and bookings. I need to make a booking in the bookings table (primary keys are DriverID, VehicleID, BookingDate) this will ensure its a unique booking and the DriverID, VehicleID need to …

Member Avatar for loopylou8
0
165
Member Avatar for Xcelled194

Hi, I'm making a simple utility for browsing an intra-net site using VB.net webbrowser and for reasons outside my control, everything requires a passcode to be accessed. So, for example, [CODE]Index.html[/CODE] is blocked by the company server but [CODE]Index.html?pass=123456[/CODE] is allowed. Is there a way to get the web browser …

Member Avatar for Xcelled194
0
306
Member Avatar for tudorH

Hi I am totally new to C programming (been using java for about 1 year) and have a question about pointers/linkedLists. So what i am trying to do is create a linked list and insert a new node as the head of the list...below is my code: The error I …

Member Avatar for tudorH
0
228
Member Avatar for daviddoria

There are lots of stand alone programs (sqlitespy, sqlitestudio, etc) that give you nice spread-sheet style access to tables: [url]http://www.yunqa.de/delphi/lib/exe/detail.php/products/sqlitespy/sqlitespy.png?id=products:sqlitespy:index&DokuWiki=2oa8egb90q7fck3t3q2uk9nv61[/url] but does anyone know of a web based way to do this? Thanks, David

Member Avatar for drjohn
0
130
Member Avatar for TailsTheFox

Hi, I'm trying to develop a program that will, if a condition is not met, display an error message without having to close the background window. If I use [ICODE]Application::Start[/ICODE] It returns an error saying that the only one window can be open a once blah blah blah. I'm looking …

Member Avatar for TailsTheFox
0
4K
Member Avatar for ashishkumar008

hello, Actually, i want to play sound file from [COLOR="green"]resource[/COLOR]. I am using [COLOR="green"]WindowMediaPlayer[/COLOR] Control for window application. But there is only option is "[COLOR="Red"]URL[/COLOR]" (Property of control) to play sound file. I don't want to use [COLOR="Red"]URL[/COLOR] property. Because my sound file is present in the [COLOR="Green"]Resource[/COLOR]. Any body …

Member Avatar for zinnqu
0
1K
Member Avatar for mike42intn

I am new to Visual Basic I'm a student and im working on a payroll calculator program I got it to where it will display user input now i have to get it to calculate pay based on which radio button is selected im doing this one at a time …

Member Avatar for codeorder
0
165
Member Avatar for artur7

When having a class: [code=cplusplus] class X { int data_; void f() { //shall I cache var data_? by doing int cached = data_ //and instead of this: if (data_ >= 0 && data_ < 1000 || data_ < 0 && data_ > -1000)//first version { //do something } else …

Member Avatar for mrnutty
0
98
Member Avatar for artur7
Member Avatar for RSDev

[CODE]Public Class Form1 Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load WebBrowser1.Navigate("http://examplesite.com/") End Sub Private Sub WebBrowser1_DocumentCompleted(ByVal sender As System.Object, ByVal e As System.Windows.Forms.WebBrowserDocumentCompletedEventArgs) Handles WebBrowser1.DocumentCompleted getItems(WebBrowser1.Document.Body.InnerHtml.Split(vbCrLf),) End Sub Private Sub getItems(ByVal arLines() As String, ByVal selectedListBox As ListBox) selectedListBox.Items.Clear() '// Clear in case the webpage …

Member Avatar for codeorder
0
214
Member Avatar for jnyekha

I need a timer that will change the text of a combobox which is binded to a database. My Application which is based on hospital management wherein a doctor has to visit rooms within 6 hours. If 6 hours elapse the combo should show "need......" and if not something "......" …

Member Avatar for JOSheaIV
0
204
Member Avatar for mnmo88

Hi guys, this is the first time for me to post something, i'm really a big fan of the site and so far every time i get stuck in something at uni i come to here. so thanks for helping me survive so far. anywho, i'm here because i need …

Member Avatar for mnmo88
0
145
Member Avatar for TYDIRocks

Hey, so I'm creating a program that creates a SHA512 hash. I have a problem though. I try to encrypt the word 'test' and I get this encrypted hash as: ?&??J??I???? ???a??w.G????? ?z???????O????{72??_???oW? Which isn't a SHA512 hash. Here is my code so far, maybe you can help me. [CODE=VB.Net] …

Member Avatar for Unhnd_Exception
0
449
Member Avatar for Neversleepin

Hi, is it possible to get the list of last life added in a folder with java? i don't want to get the lastmodified file which return a date or time. i want to get the file name of last added in a folder. Thank you all

Member Avatar for Ezzaral
0
6K
Member Avatar for Tommymac501

I am having a problem using the common dialog in PyQT. For some reason, when I try and import 'QFileDialog', I get a not found error, same with importing QDialog. I am on Py 2.7 (was 2.6) using 'PyQt-Py2.7-x86-gpl-4.8.2-1'. I can import QTCore and QTGui just fine. I thought PyQT4 …

Member Avatar for Tommymac501
0
2K
Member Avatar for bluehangook629

Hello everyone, My company uses control numbers to keep track of all of our inventory for every product that is entered into our warehouse. (ex. G123456789, T987654321) 1st Alphabet followed by 9 digits of numbers. Most of the time, these control numbers are scanned into the system by using a …

Member Avatar for bluehangook629
0
130
Member Avatar for CHOCHOCHO

Write a program that simulates an Internet connection error. Display a MessageBox that notifies the user of the error and provide three buttons: abort,retry, and ignore. If the user chooses Retry, display a message indicating the connection succeeded. If the user choose Ignore, display a message indication that the user …

Member Avatar for CHOCHOCHO
0
120
Member Avatar for Marty1963

I'm very new with this. I need to make all of the random images below link to the same page. In other words I need to add a 'hotspot' to this script. The code below is how far I've got: [CODE]<?php $img_array = glob("images/Coupons/*.{jpg}",GLOB_BRACE); //Pick a random image from the …

Member Avatar for Marty1963
0
602
Member Avatar for jamshed ahmed

WHAT I WANT FROM THE FOLLOWING CODE IS THAT IF CONNECTION IS OPEN THEN SWITCH USER TO LOGIN FORM IF CONNECTION IS FAIL TO OPEN THEN SEND USER TO CONFIGURATION FORM WHERE THE NEW PATH FOR DATABASE CAN BE DEFINED. IN THE FOLLWING CODE IF I REMOVE THE DATABASE FROM …

Member Avatar for Unhnd_Exception
0
193
Member Avatar for vedro-compota

Hi there) Tell me please -is there any picturebox method to redraw it in C # ? Thanks in andvance.....)

Member Avatar for vedro-compota
0
43
Member Avatar for LianaN

Hi! Could someone please give me any idea on how to add a background image to JInternalFrame without subclassing. Below I provide a code snippet, but the line [ICODE]jif.setBackgroundImage(backImage);[/ICODE] is incorrect. Please, help me to fix this error. But I don't want to create a subclass, e.g. MyJInternalFrame. Thanks! [CODE] …

Member Avatar for LianaN
0
854
Member Avatar for vedro-compota

hi guys)) please -someone who use MS Visual C# Express Edition - tell me is there System.Math (with mathematic functions) library there? Thanks in advance!)

Member Avatar for vedro-compota
0
120
Member Avatar for ellenski

hi, the layout of my site is. there are five files (4 are inside the includes folder): index.php , header.php , pageniavigation.php , thumbnail.php , footer.php the header file is where you select the number of images you want to be displayed per page. the pagenavigation file contains the page …

Member Avatar for madCoder
0
202
Member Avatar for crazycat503

Hi, We just finished building our website with custom CMS, built specifically for our website. However, the CMS is not really cool nor rich, at least compared to those CMS out there. Now, I am looking for an easy to integrate open source CMS there. One that won't force us …

Member Avatar for The5sisters
0
153
Member Avatar for judithSampathwa

Hi there, I am creating reports in SQL server business intelligent studio and when I deploy it to the report server the report is shown in only on a half a page. How can I make the report height and the width for the report thanksssss

Member Avatar for judithSampathwa
0
173

The End.