199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for veledrom

Hi, If any combination of these 3 (Name, Surname, DoB, Nationality) user inputs matches to database records then the query shouldn't stop to avoid duplication. If there any special function in MySQL because running 12 query wouldn't be nice for it! Thanks in advance

Member Avatar for smantscheff
0
130
Member Avatar for ananth3125
Member Avatar for seagal1
0
103
Member Avatar for rahulroshan

Hi I want to download a file from the website ever friday evening at 5pm, Can I schedule it to do it automatically can anyone plz help :)

Member Avatar for TrustyTony
0
84
Member Avatar for ChrisMackle

Hey, im new to C++ forums and C++ for that matter. Im 16 years old and want to be a game developer so i made a calculator it took about 30min(a while i know but im a beginner) can someone tell me if what ive done is good code or …

Member Avatar for WaltP
0
187
Member Avatar for jdm

I'm working on a program to get the reduce form of a fraction by finding the gcd of the fraction. It works for some while for others it doesn't work. I noticed it when I tried entering in -7, 6, 6, 2 for the numbers. The reduce form of the …

Member Avatar for jdm
0
155
Member Avatar for codybuRr

Hey All! New to here, but I have a couple questions: How do I find Average word length, and how to I printout the occurrence of each word size? Needs to look like this: [CODE]length frequency ------ --------- 1 3 2 13 3 24 4 13 5 10 6 2 …

Member Avatar for codybuRr
0
1K
Member Avatar for morrisproject

I am trying to use javascript to validate text boxes on my form. I am currently using this code: [CODE]<script type="text/javascript"> function validate_form (){ var myTextField = document.getElementById('Motor_Temperature'); if(myTextField.value == "") alert("Please fill in Motor Temperature") return false;} else { return true; } </script> </head>[/CODE] But i keep getting an …

Member Avatar for jmichae3
0
149
Member Avatar for 54uydf

Hi, I'm getting this error: Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 576 bytes) in 'path' on line 207 what I'm doing is getting an excel file with about 8000+ rows and trying to move them into a table in my DB. a FOR loop …

Member Avatar for digital-ether
0
3K
Member Avatar for daniel36
Member Avatar for Zssffssz

Here's me error:"invalid conversion from 'char*' to 'char'. This is much different than what I found on google because I'm using actual pointers not return values n' stuff. Well heres a watered down version of the code: [CODE]char* LOCK = new char[501]; char ret[501] = "this is fine in program"; …

Member Avatar for Zssffssz
0
540
Member Avatar for maggoteer

I seem to be having a little trouble connecting to my subdomain's database. (It's a subdomain, I'm using space off of a friend's domain name) When I look at my database's port # it just says localhost (which should be correct because it's located on the same server). I have …

Member Avatar for maggoteer
0
126
Member Avatar for da10x

Hi. I am currently writing a block of code to loop through a vector and generate all possible moves on a game. For my first for loop, this block of code never increments x. I even stuck an x = x+1 at the end of the block and it just …

Member Avatar for da10x
0
131
Member Avatar for f4fjks

Assalam u Alaikum! hey guys! can any one here tell me code of Nokia ringtone? or any other? thanks alot!!

Member Avatar for f4fjks
0
167
Member Avatar for Zssffssz

Well I want to make a DLL but all of the tutorials online seem to focus tword GUI programing or go a little too fast. Can anyone explain it? As far as I have seen it's syntax resembles resource files. And what makes it a '[I]Dynamic[/I] Link Libray' as in …

Member Avatar for mike_2000_17
0
327
Member Avatar for nickg21

Hello, The issue that I am having right now is that I have a multiview form that steps through gathering information from the user and depending on the information selected, some fields are displayed/hidden in other views of the form. Basically, what is going on is that I have a …

Member Avatar for MeSampath
0
272
Member Avatar for Zssffssz

I already know how to call a program an make it run inside of my program (with no communication between the two). But I need a way too call a separate program from mine and have it run separately. I looked into the CreateProsses thing but it seems to be …

Member Avatar for Ancient Dragon
0
188
Member Avatar for yurigagarin

I tried to scan a text file ( contains decimal numbers) and save all the numbers into 1 array input1[50]. When I ran the code, the printout is always 1.0000 eventhough my text file have a bunch of numbers. Could somebody point out where I did wrong? Thank you. [CODE]VOID …

Member Avatar for yurigagarin
0
259
Member Avatar for TigerTeck

Directions...Write a program SumOfOdds that has one main method that asks the user to input two odd integers where the first is smaller than the second. The program ouputs the sum of all the odd integers from the smaller output to the larger output. You must use a while loop …

Member Avatar for TigerTeck
0
115
Member Avatar for flywheeljack

so perhaps someone can tell me if what i want to do is possible. i have a bunch of radio buttons which can have different text displayed depending on whats retrieved from the database. however i want to add code that hides any radio button that would have a 'zero' …

Member Avatar for Reverend Jim
0
139
Member Avatar for martymaven

I'm an old Access programmer trying to get something I use there frequently to work in PHP/MySQL. I want to look up data in a database and then have that appear as the value in a select statement on an update form. The issue is selecting a new supervisor for …

Member Avatar for martymaven
0
197
Member Avatar for RisTar

I don't tend to use Arrays when programming in C++ because I think that vectors are a lot easier to use. The problem is that now I have to use arrays. I'm creating a game using SDL. I'm trying to create the artwork in code using pixels on the screen. …

Member Avatar for RisTar
0
167
Member Avatar for huntaz556

i have things in a text file an index of movies that one owns and can add more but when i want to add a new one but when i have it print the line of a text file it just does this. i k o g n how can …

0
104
Member Avatar for achava

Using a C but not a C++ compiler. We have code like this: Suppose we have code like this: [CODE]main() { int *funcko(); int *george = funcko(); printf("%d", goerge[3]); } int *funcko() { int cat[12]; return cat; }[/CODE] What happens when you try this according to the actual rules of …

Member Avatar for Narue
0
148
Member Avatar for renzlo

Hi guys, this must be a newbie question for you but I am just a beginner in .net, I would like to ask for a guide or point me into on how to make a simple image viewer, my image is a tif/tiff file, I just want to select the …

0
90
Member Avatar for xxunknown321

How do i get my program to read the last ten lines of the ".txt" file? Can you please dumb it down as much as possible. Here is what i have so far: // reading a text file #include <iostream> #include <fstream> #include <string> using namespace std; int main () …

Member Avatar for usustarr
0
8K
Member Avatar for tomek1908

Hello, I`m newcomer here. I know English medium so please be charitable for me. I have a big problem with LGDT function in Assembler. I use TASM. I used a TD Debugger to show what is the problem with LGDT and I showed that when I execute a line of …

Member Avatar for tomek1908
0
187
Member Avatar for usustarr

Hi, I need to search for a key word in last n/100 lines of a text file. Here is the code i have so far. This search whole file & that is an issue. This is not a home work question, please help. [ICODE] ifstream readFile(fileName);//read the file while( readFile …

Member Avatar for usustarr
0
195
Member Avatar for skylinedrifter

Hey1 fox so last weekend my friend asked if i could help her on her Comp Sci project, Little did she know im not a programming genius. So i've come to the one and only Daniweb for help... here's what she's supposed to do.. Write a C++ program by completing …

Member Avatar for frogboy77
0
112
Member Avatar for fsefsef23

I'm working on a program that performs insert sorts and selection sorts on an array of 5 unsorted numbers and a sorted array of 5 numbers and counts the comparisons made on each. I'm still learning about Big O notation, so I'm having a hard time figuring out where a …

Member Avatar for fsefsef23
0
3K
Member Avatar for Nandomo

I am writing a program that gives and grades a test. Currently I am working on reading in the text from a file to administer the test, but am running into limitations. So I have a couple of questions. Is there any way I can read in a segment of …

Member Avatar for Nandomo
0
201
Member Avatar for Nandomo

I made an arraylist of objects which contain a question and an answer... How can I display just the question? Sooooo confused. Tutorials or anything will help, thanks in advance. [CODE] /* text file */ T Which Java keyword is used to define a subclass? extends S What is the …

Member Avatar for Nandomo
0
182
Member Avatar for louie540

Ok well I have a DIV menu bar that I want to stretch 100% in height. It worked perfectly fine until I added the XHTML doctype. So I tried absolute positioning which worked but then my other divs started overlapping them. So I want to know if there is any …

Member Avatar for Troy III
0
215
Member Avatar for markdean.expres

Guys is it possible that I create a program that allows you to open a file, then if you click the button labelled "Properties", it will open the properties window for the file selected. This is so that you won't have to go to the file, right-click it, then select …

Member Avatar for Phasma
0
677
Member Avatar for Panathinaikos22

Holla, i use Visual Studio 2010 and as all we know, visual studio dont give any help with C/C++ win32 appis syntax like C#/VB were you type 3-4 words and then a list pop up. Today i downloaded Code::Block, i suprized because it had this feauture with auto-show list with …

Member Avatar for gusano79
0
287
Member Avatar for akocnin18

can somebody help me in dealing with this project... I am making a quiz that a user can input their own set of questions..after doing a quiz other users can take it..and I don't know how to check if the user answers were right.. can you please help me? thanks! …

Member Avatar for diafol
0
295
Member Avatar for wolfgangcs

How can I get this check box to work? the id='item' will always be the same per item no matter which I check. It always grabs the last one checked. query [CODE] $result10 = mysql_query("SELECT * FROM todo WHERE complete='0' AND day='$today' ORDER BY whenby ASC LIMIT 3"); [/CODE] [CODE] …

Member Avatar for diafol
0
82
Member Avatar for thendrluca

Hello World! i wrote this code for fliping the array , but it doesn't work ... why can anyone say me ? what i did wrong? [B]array[/B] and [B]i,n[/B] variable are already global declared. [CODE] void exb(void) { int aux; for(i=0;i<(n-1)/2;i++) { aux=x[i]; x[i]=x[n-1-i]; x[n-1-i]=aux; } } [/CODE] thanks :)

Member Avatar for Adak
0
354
Member Avatar for RohitSahni

mY QUERY IS RELATED TO.. How can i set coloumn width in unix... Like for ex. i am having a file, whose content is like ------------------------------ aba bba baba abba baba baaa addd ffff fffff ----------------------------------- i want it to be like ----------------------------------- aba bba baba abba baba baaa addd …

Member Avatar for L7Sqr
0
2K
Member Avatar for bwls

We get the above error (see attachment) when trying to access our site when we do not include the target file name. For example: [url]www.sitename/[/url] will produce the error but [url]www.sitename/index.asp[/url] will work just fine. IIS6 is configured to use default file names and index.asp is the first one on …

Member Avatar for catherine sea
0
109
Member Avatar for akaicewolf

Ok so I am writing this GUI menu and one of the choices on the menu requires the user to log in. So I open a new window that prompts the user for a username password. However after the user inputs the information how do I just close the window? …

Member Avatar for hfx642
0
314
Member Avatar for federerforehand

[ICODE]import java.util.Random; public class Card { public String cardGeneration() { Random generator = new Random(); int x; // random integer representing suit int y; // random integer for card value String mysuit, mynumber; //assigning names, these will be changed int suits = 4, numbers = 13; //depending what card is …

Member Avatar for hfx642
0
221
Member Avatar for lele07060

can someone help me and tell me what is wrong, I can't figure it out. This is what it is exactly saying Lab424.java:14: cannot find symbol symbol : method printf(java.lang.String, float) location: class Lab424 printf(" sum %f\n", sum); it is pointing to the "p" [CODE]import java.util.Scanner; public class Lab424 { …

Member Avatar for JamesCherrill
0
527
Member Avatar for madtowneast

I have been trying to figure out how to associate data with the event of checkbox being checked. The problem is that my data is stuck in a 5 keys deep dictionary (dict{dict{dict{dict{dict{}}}}}). I have tried crawling through the parents and getting their labels since they are created from the …

Member Avatar for woooee
0
362
Member Avatar for xwxproductions

I am writing a fake antivirus software, of course as a prank, not for MONEY. The code as follows: [ICODE] 'ImageList, 0 Low 1 Averaga 2 High If ProgressBar1.Value = 10000 Then Label4.Text = ("Scan was finished at " & My.Computer.Clock.GmtTime.ToString & ".") MsgBox(ListView1.Items.Count & " threats were detected on …

Member Avatar for lolafuertes
0
177
Member Avatar for dew97

in table department i've class_id as f.k and in class table class_id as p.k i want to update class_id in department table.. n getting error

Member Avatar for Reverend Jim
0
124
Member Avatar for smartness

I found something here, but I'm not good at javascript, and i don't know which part of the code is the right! I need only for Checkboxes! [CODE]http://www.codingforums.com/showthread.php?t=11165[/CODE] I need something like: [B]onclick="check_if_at_least_one_is_selected()"[/B] :P there is only one <form></form> and all checkboxes are same type...

Member Avatar for Troy III
0
3K
Member Avatar for skywire_

Hello, I was tasked to make a program that reads data from a text file and then place it into a JTable. I managed to read the file and split the strings but I don't know how to put the strings into a format accepted by JTable. Please help. This …

Member Avatar for mKorbel
0
2K
Member Avatar for kreyd

Description of the Problem: In my program, i need to write a program that will determine how many coins of each denomination (1¢, 5¢, 10¢, 25¢, and 50¢) are required to make up a given amount of change. For example, to make 57¢ we could use 1 half dollar, 1 …

Member Avatar for 3bodd
0
282
Member Avatar for drewos

I want to write a program interrupts when the receive buffer for the serial port has received some data. I have done a little a bit of research and I believe C# word for interrupt is delegate. Apologies if I'm barking up the wrong tree but I want to know …

Member Avatar for ohammad reza as
0
496
Member Avatar for Hayzam Sherif

Hey Everone , I Wrote a Program To Enter The info and the given info would be saved to a text file . Here is The Program Itself : [CODE]/* Created By Hayzam Sherif Date : 11/7/11' */ #include <fstream> #include <iostream> #include <cstdlib> using namespace std; int main() { …

Member Avatar for Hayzam Sherif
0
218

The End.