199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for jacksantho

Hi, Trying this Query, [CODE][B]DECLARE @SR VARCHAR(8),@SC CHAR(15),@ST CHAR(15),@SNO int; SELECT * FROM (SELECT DISTINCT ROW_NUMBER() OVER (ORDER BY a.rno) AS rowid, @SR=a.rno,@SC=a.kat, @ST=a.type FROM SMas a, SDet b WHERE b.id='X' AND a.rno=b.rno) AS C WHERE C.rowid=4 [/B][/CODE] but getting this following error: [CODE][B][I][U]Msg 102, Level 15, State 1, Line …

Member Avatar for jacksantho
0
218
Member Avatar for mgd00tz

I'm using int type in my database, what I should put in order to catch the input data by users? mysql_real_escape_string is not working because I think he can cater only the string values. here is my codes. [CODE]<?php /* NEW.PHP Allows user to create a new entry in the …

Member Avatar for cyverge
0
223
Member Avatar for ilovephil

How to add the numbers between nodes example. input 1*2+3 first 2 and 3 will add and it will become 1 5 nodes then 1 * 5 = 5 then node will becaome 5 only this is my sample program #include<stdio.h> #include<stdlib.h> #define p printf #define s scanf struct node …

Member Avatar for begame
0
159
Member Avatar for begame

Hey there! So I have am writing a multi-chat client for my college course. I have completed most of it, however there is a problem which I am unable to identify. When I conect multiple clients to the server only the the last client to connect is able to send …

Member Avatar for begame
0
189
Member Avatar for zukazen

Hi, I have a textbox which I want to change the font colour when you input a number after a certain number (in my case Pi*2).. Although the code I wrote gives me this error : Unable to cast object of type 'System.Windows.Forms.TextBox' to type 'System.IConvertible'. I don't understand the …

Member Avatar for zukazen
0
150
Member Avatar for xuexue

[U]this is my code in php:[/U] [CODE]<?php echo "Hi!"; ?>[/CODE] [U]this is my code in javascript:[/U] [CODE]alert(xmlhttp.responseText);[/CODE] now, my problem is that the output displays: "1Hi!"; even though i will not display an output in php, still a "1" appends in the beginning of the alert box. What could be …

0
115
Member Avatar for LFCDay123

I am trying to make an array so I can store monthly coffee usages. I have used the code below which puts the monthly usages into a listbox and enables me to store new usages by entering them into a textbox and clicking a button. However, I want the values …

Member Avatar for Jx_Man
0
164
Member Avatar for CodeMonkeyJunk

I have a school project and what is needed is to Write a program that prompts the instructor to enter the 10 grades of midterm 1 and store these numbers in an array. Next prompt for the 10 grades of midterm 2 and store these numbers in a different array. …

Member Avatar for CodeMonkeyJunk
0
185
Member Avatar for phorce

Hello, I'm currently studying and sometime soon will have to do a final year project (which runs through the year).. Now I've been looking at stuff om image recognition and although it interests me I want to do some kind of signals or signalling. My idea is to capture the …

0
71
Member Avatar for ebolt007

I'm making a comment area where I have multiple posts, the posts are wrapped in a loop where the ID pulls in the correct post, and then below each post is an input area that I am trying to use ajax to post the response. I can get this to …

Member Avatar for Airshow
0
217
Member Avatar for FALL3N

hey, so I am just starting java3D, and I am running into some pretty basic problems... I started a tutorial online (from [url]www.java3d.org[/url]) and the first sample program is: [CODE]import com.sun.j3d.utils.universe.SimpleUniverse; import com.sun.j3d.utils.geometry.ColorCube; import javax.media.j3d.BranchGroup; public class Hello3d { public Hello3d() { SimpleUniverse universe = new SimpleUniverse(); BranchGroup group = …

Member Avatar for FALL3N
0
987
Member Avatar for Valiantangel

hi below code is an example.I hav couple of questions 1)The highlighted bold red code(myParrot[0]...)can it be simplifyed? 2)Can i use random to generate a given set of numbers?How? [CODE]public class Bird{ public static void main(String[] args) { int[] myParrot = new int[3]; [B][COLOR="Red"]myParrot[0]=1; myParrot[1]=2; myParrot[2]=3;[/COLOR][/B] for (int feature=0; i<myParrot.length; …

Member Avatar for NormR1
0
257
Member Avatar for whojstall11

I have a php code that suppose to have a user enter a number in and it out puts all people in my database who is the same age or younger. Instead of it working it give me the error: Error: You have an error in your SQL syntax; check …

Member Avatar for cereal
0
148
Member Avatar for cr7489

hi i am trying to create 2 lists in one screen. i am using the google api places where i want the list to appear then when selected the result will appear, this what i have so far but the second list doesnt appear and i am not sure why …

0
98
Member Avatar for stressed studen

I was told to use a while loop and call the nextNumber method until the input matches the corresponding fibonacci number, i.e. an input of 4 would give fib(4)=3. I'm getting fib(4)=1. Here is my code: [CODE] /** Class used to generate a Fibonacci number with a given input */ …

Member Avatar for stultuske
0
161
Member Avatar for ilovephil

How can i store strings in my program. #include<stdio.h> #include<stdlib.h> #include<string.h> #define p printf #define s scanf struct node { char nbook; struct node *next; }; typedef struct node *nodepointer; void addbook(nodepointer &head,char book) { nodepointer newnode; newnode=(nodepointer)malloc(sizeof(struct node)); newnode->nbook=book; newnode->next=head; head=newnode; } void display(nodepointer head) { if(head==NULL) { p("\nNothing …

Member Avatar for Ancient Dragon
0
210
Member Avatar for Zssffssz

I Want To Make A Utility Like The Old DOS Command "rdisk" In C++. The Things I Want It To Be Able To Do Are: WIN: Be Able To Specify The Drive Letter (Like rdisk's /:Z) UNIX: Be Able To Specify The Mount Point (/mnt/rdisk or /media/somthing, etc) BOTH: Make …

Member Avatar for Zssffssz
0
969
Member Avatar for gowans07

Hi, i'm fairly new to .NET after getting tired of using VB6 due to the lack of functionality. I'm trying to create a log on method for a system which will involve users selecting a colour from a paint panel and then placing/drawing the colour in 1 or more tiles …

Member Avatar for gowans07
0
195
Member Avatar for meme meme

how can i check if the number is positive or not by using switch statement please who know the answer help me and answer the question

Member Avatar for Tygawr
0
141
Member Avatar for kumika

How do you read the default values from the appName.exe.config file? My application only reads these values on first installation. Subsequently, it reads the updated values sitting in the user.config file. Please assist. Thanks

Member Avatar for kumika
0
258
Member Avatar for doctorphp

Hey everyone, I am trying to develop an addon for my admin area to send a text to my clients. I am trying to populate a select menu that will list clients that have added their mobile phones. I am using the following tables. [LIST] [*]tblclients [*]tblcustomfields [*]tblcustomfieldsvalues [/LIST] At …

Member Avatar for diafol
0
385
Member Avatar for Yoink

I have to write a program that will print the chain of a number using a hailstone function, as well as with a range of numbers. That part of my program works perfectly but I cant figure out how to write a function that will find and hold the number …

Member Avatar for TrustyTony
0
597
Member Avatar for shean1488

Hi everybody. I'm trying to display web page that located in my computer or just (google web page). But everytime I'mgetting nullpointer exception. Please help me to figure out the problem. here is the absolute path that I'm using: [CODE]serg@serg-PORTEGE-Z835:~$ find $PWD -type f -name test1.html /home/serg/Projects/java/GUI/src/its/TestData/test1.html [/CODE] But the …

Member Avatar for NormR1
0
159
Member Avatar for daydie
Member Avatar for thines01
0
77
Member Avatar for FALL3N

what I'm pretty sure I learned in school and what like every website said when I tried to look this up online was that the C++ code for generating a random number with floor: 1 and ceiling 100 (err I guess 101) is: [CODE]int number = rand() % 100 + …

Member Avatar for FALL3N
0
280
Member Avatar for michael10024

A black-hat cracker attacked to your computer and he took a very important sequence from it. Also, he replaced this sequence with five mutations of the sequence. The sequence has length of N and it's content are numbers between 1 and N (all the numbers one time) in a random …

0
49
Member Avatar for shadyreal

Hello! I have created a ChatClient in Visual C++ 2010 Express, cmd console only. Now I want to make it in Windows Form Application. I have come a long way but the thread function to start a new thread is a bit of a problem.. I get these errors: error …

Member Avatar for raptr_dflo
0
370
Member Avatar for butler273

This function of this find the median of three values inside an array. I was wondering if there's a more elegant solution to finding the median value between 3 values. [CODE] int mid =((p+r)/ 2); if(V[p]<V[r]){ if(V[p]<V[mid]){ if(V[mid]<V[r]) swapfunc(V[mid],V[r]); } else swapfunc(V[p],V[r]); } else{ if(V[r]<V[mid]){ if(V[p]<V[mid]) swapfunc(V[p],V[r]); else swapfunc(V[mid],V[r]); } …

Member Avatar for butler273
0
258
Member Avatar for Sgt. Pepper

Hello, I've got this problem with an intro to Java class. To lay some background down, the professor teaches the 'theory' behind java, and nothing of actual code, so my knowledge is very limited here. The reason I'm here is I can't discern for the life of me how to …

Member Avatar for NormR1
0
10K
Member Avatar for 432

[B]Example: John Listed: John john JOhn jOhn JoHN JoHn johN jOhN[/B] How can i list like that all probability ?

Member Avatar for 432
0
95
Member Avatar for jade_91

So basically I have to import a file of names and then be able to sort them alphabetically I've managed to import the file using the followig code [CODE] import java.io.*; public class Name{ public static void main(String[] args)throws IOException{ String contents; File f = new File("names.txt"); FileReader fr = …

Member Avatar for NormR1
0
507
Member Avatar for silverwatersask

new to ajax. not that good at javascript. I have the following code which uses ajax to get data from a mysql database with php once I call the ajax function to get the data....I want to use the data in the main script but I have not been able …

Member Avatar for silverwatersask
0
1K
Member Avatar for CRuveiro

Where can I find a free software to display error message using a callout similar to the Ajax ValidatorCallout.

Member Avatar for CRuveiro
0
80
Member Avatar for GLT

Hi, I am trying to create a stored procedure to add a new column into a database from an ASP web application. The SQL Code for this is:- [code] ALTER TABLE tablename ADD COLUMN columnname columndatatype [/code] I have tried to insert this SQL into a stored procedure:- [code] CREATE …

Member Avatar for triptikumbhat@g
0
5K
Member Avatar for sheenarbw

I wrote a recursive function using System.IO stuff in order to copy a directory and all its contents to another location. I'm using Windows 7 and Visual C# 2010. It looked like a simple task but it really isn't. First, when i tried to run the code i got a …

Member Avatar for danimal1
0
1K
Member Avatar for nickg21

Hey everyone, I know that there are hundreds of articles online about this same error, but I have been going at this for almost 2 days and it's time I just started a thread of my own. In my application, I have a textbox that has a CalendarExtender hooked up …

Member Avatar for mikev2
0
341
Member Avatar for Sevyt

Probably a simple answer to a stupid question. But i cannot figure it out myself. I am using [CODE]Date.Now().ToString("D")[/CODE] on a label. Now i was wondering how you could use a similar string. But to add 1,2,3 ect... to that. So that i can have a label for each day …

0
97
Member Avatar for gerchi152

I'm getting this error variable might not have been initialized on ch2 and ch3: [CODE]import javax.swing.JOptionPane; public class calculatorJava { public static void main(String[] args) { String ch, ch2, ch3, add1, add2, sub1, sub2, mul1, mul2, div1, div2, choice1, exp; int chans, chans2, chans3, addo1, addo2, subO1, subO2, mulo1, mulo2, …

Member Avatar for Ezzaral
0
314
Member Avatar for NinjaTwinkie13

So I've currently been studying C++ independently for a couple weeks with the help of good old books. One of the exercises was to make a "games library" where you can see your list of games, add a title, or delete it (has nothing to do with games). The catch …

Member Avatar for NinjaTwinkie13
0
156
Member Avatar for Traps

I'm making a website and of course want to incorporate memberships and logins, etc and while I understand the theoretical application of salting and hashing a user-inputted password to save the encrypted pass in my database, I'm not sure on the approach... What I would do is get the hashCode …

Member Avatar for Traps
0
105
Member Avatar for luislupe

I programmed some functions that use a dynamic array of [CODE=c] double ** array [/CODE]. But know, I want to test the results with a small array of 5 x 5 elements and use this array in the functions I coded. My problem is that I can find no way …

Member Avatar for luislupe
0
250
Member Avatar for TreeBranches

My program begins by opening a dictionary file, the first line of which contains the number of words in the dictionary. If I print the words immediately after scanning them into the arrays, they appear fine, but if I later examine a previous entry, I can see it has been …

Member Avatar for TreeBranches
0
219
Member Avatar for ringo_tech

hi there, i have this server code that send the received message from one client to all the other clients, including the one how send the message [CODE]public class Chat extends Thread{ static LinkedList<PrintStream> sll; Socket cs; PrintStream ps; public Chat(Socket cs){ this.cs=cs; try{ ps=new PrintStream(cs.getOutputStream()); sll.add(ps); this.start(); } catch …

Member Avatar for NormR1
0
163
Member Avatar for dinesh17

I am writing a simple DHCP server application that gets ip from a server at boot up ! i wrote a shell script to run the java program that obtains ip from server on another machine... The problem is when i have obtained the ip i store it in a …

Member Avatar for JeoSaurus
0
185
Member Avatar for cr7489

hi, using the google places api where it says food or restaurant how can you create this so that when its selected it allows you to specify food the type of food such as chinese, english ect ?

Member Avatar for peter_budo
0
94
Member Avatar for vedro-compota

Hello everyone)) Guys please tell me - is there any way to create thread in lunux , which will not executed itself (at all) - until will get SIGCONT signal? I can't thread self stopping after creation , because in this case - we cann't be sure that the thread …

Member Avatar for vedro-compota
0
391
Member Avatar for radu_brasov

When the code below is executed if sometimes it performs a "TAB" sometimes does nothing and sometimes gets my PC hung so I have to do CTR-ALT-DEL & Cancel which moves the execution of the program to the next line ("End IF"). Any idea what is missing to make it …

Member Avatar for radu_brasov
0
611
Member Avatar for pritesh2010

hi everyone, In my project i'm working on Fileupload control.when i browse a file with IE7 it gives me a full path path of file but when i'm trying in Firefox and Chrome it does not give me a file path. some says save it to your server or a …

Member Avatar for dickersonka
0
661
Member Avatar for bernardz26

Good Day!. Im, a new programmer. I want that the value of my textbox6 in form1 will add to the value of the textbox6 in form2. can anyone help me. :(

Member Avatar for Mitja Bonca
0
110
Member Avatar for Syrne

Hello! I was given the task to finish writing the definitions of the Treeset class methods. I'm currently at the [B]headSet[/B] and [B]tailSet[/B] functions and quite stumped. Here's what they look like currently, with no logic: [CODE]@Override public SortedSet<E> headSet(E before){ SortedSet<E> set = new SearchTreeSet<E>(); headSet(root, before, set); return …

Member Avatar for Syrne
0
386

The End.