199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for MoreBloodWine

The below block of code generates stuff like the below array but here's where it gets somewhat interesting. I took the legend and turned them all in to variables because of what I would like to have done which I will now describe below. Of the four arrays that this …

Member Avatar for jimforsyth
0
131
Member Avatar for uopdom

Hi, I've been racking my brain for the last few days to figure out what is wrong with my PHP coding. I've managed to get the default value from my combo box into my database, but when I change the option it is breaking on me. I have reduced my …

Member Avatar for uopdom
0
834
Member Avatar for dudzkie

Hello! hello i'm a newbie learning php scripts, so here's my question i query a data from my database, the list i query was way too long, how can i make the list much more shorter? I want it to like to show 10 data list and on the next …

Member Avatar for jimforsyth
0
72
Member Avatar for Newskin01

There is a great deal of information out there on printing arrays in toString() but most suggest using Arrays.toString(arr); This however prints the whole array even the nulls and is formatted a specific way. I'm looking for a way to print the values in an array that are not null …

Member Avatar for jon.kiparsky
0
2K
Member Avatar for bangla

Hi, I am using xampp 1.7.3. Downloaded in c/program files. when i click xampp_start.exe, i get a window saying "starting xampp..". then disappears. Then i click stop_xampp, it comes and disappears in one sec. Can you pls tell me what i should do? Thanks.

Member Avatar for petkovski
0
115
Member Avatar for lulemurfan

Hello, I have been moving my websites from one server to another. On my old server I was able to send php header information in the middle of a php document (part of a logon form). My new server just shows 'Warning: Cannot modify header information - headers already sent …

Member Avatar for jimforsyth
0
94
Member Avatar for john_zakaria

hi everyone.. i am using windows application to get data from web service and according to the result an action will be taken for example if the result is [b]1[/b] i will download a file and the name of the file will be taken from my database. all that i …

Member Avatar for CJdamaster
0
143
Member Avatar for arends

Ok so I tried to search and didnt come up with anything so if this has been posted before, I am sorry. I am new to C programming and have done well in my class so far up till now, the teacher says that this is the hardest program and …

Member Avatar for arends
0
180
Member Avatar for lochnessmonster

im curious as to why in the world anyone would ever upcast or even downcast an object in their program? [CODE]class shape { }; class circle : public shape { }; int main () { circle a; shape b; b = (shape)a; return 0; }[/CODE]

Member Avatar for mrnutty
0
109
Member Avatar for dnk

how to clear all text box?? i always use this : [CODE]text1.text = "" text2.text = "" text3.text = "" ....[/CODE] but how about if i have many text box? there are an other way to do this??? Please help. ASAP. best regards

Member Avatar for the_h
0
108
Member Avatar for gaviel080990

Good Day .. I'm new to the forum .. New to C++ either .. I'm having a problem regarding the while loop .. I've been trying to make an ATM system .. But I can't continue further for the other cases because whenever I try the loop for going back …

Member Avatar for Ancient Dragon
0
120
Member Avatar for Amoryethel

Hi, I'm writing a program that reverses the words of a text file using the LinkedList structure. Unfortunately, I have received the following error: [CODE]java.util.Scanner[delimiters=\p{javaWhitespace}+][position=30][match valid=false][need input=false][source closed=true][skipped=false][group separator=\,][decimal separator=\.][positive prefix=][negative prefix=\Q-\E][positive suffix=][negative suffix=][NaN string=\Q?\E][infinity string=\Q?\E] [/CODE] And because of that I'm having difficulty proceeding to the next step. If …

Member Avatar for ztini
0
211
Member Avatar for banmikko

hi every! im a newbie and im stocked with some edit codes,. can u make me a code on how to edit records with images? i really need it now. If u can, then it is very much appreciated. here is my database and table CREATE DATABASE db1; CREATE TABLE …

Member Avatar for smantscheff
0
103
Member Avatar for ITHRIL12

Hey there,i just started learning php and i'm having some problem in forms. This is the code. [CODE] <html> <form> Enter username<br> <input type=text name=username><br><br> Enter password<br> <input type=password name=pass><br> <input type=submit value="Submit"> </form> <?php printf("Username is %s<br>", $username); printf("Password is %s",$password); ?> </html> [/CODE] The problem in the code …

Member Avatar for jajarvin
0
222
Member Avatar for kukuruku

Hi,if I have array of objects {first(name,age),second(name,age)} How can I access first (name) in java Thanks

Member Avatar for javaAddict
0
172
Member Avatar for alim18

Hello Guys, firstly i wanna say that this is really great forum. this my first on this forum and hoepfully will not be the last one. okey let me explain what is my problem; on that site [url]http://www.paid-surveys-at-home.com/[/url] i saw this form is created which calcuates "How Much..................." etc.. i …

Member Avatar for alim18
0
263
Member Avatar for Tank50

Hi I am developing windows application using C#.There is combo box in the windows application ,once user select value it automatically generate pop window.I want to appear the new window at the right side lower corner in combo box.I tused below coding ,but it never works,please let me know how …

Member Avatar for Mitja Bonca
0
116
Member Avatar for tondy

What are good research topics for computer science degree students. Am interested in doing a research in viruses but do not know a good topic to center my research on. Any research topic is welcome even if it is not about viruses.

Member Avatar for johnsteve.bravo
0
168
Member Avatar for Mahesha999

Hi, this is a code for Simple Console based text editor from Complete Reference to C++ by Herbert Shildt: [CODE] #include "stdafx.h" #include "conio.h" #define MAX 5 #define LEN 20 char text[MAX][LEN]; int _tmain(int argc, _TCHAR* argv[]) { register int t, i, j; printf("Enter an empty line to quit.\n"); for(t=0; …

Member Avatar for arkoenig
0
277
Member Avatar for lit108

I have a script which is parsing xml code and displayed the title of blog posts, the date, and a breif extract from each post. However I also want to show any mp3 links within that blog post too but I am not sure how to do this. If anyone …

Member Avatar for lit108
0
123
Member Avatar for dudzkie

Hello! I created a login form that is connected to the MySQL database, what i wanted to do now is to record who successfully login to the form and will also record the time and date he/she login Can you give me some hint on how to do it Thanks!

Member Avatar for dudzkie
0
98
Member Avatar for jeevsmyd

Hey guys, I'm making a small game on c++ using code::blocks.I use winbgi graphics for doing it. Its basically a ball game like dx-ball. I am an amateur programmer and I did upto making a moving ball which will rebounce whenever the boundaries of the screen are encountered.My method is …

Member Avatar for rxlim
0
331
Member Avatar for himanshu1051

[CODE] 1. int[][] board = new int[][] {{1,0,0},{0,1,0},{1,2,1}} [/CODE] please explain how we have used index here....like row and column....i know about this we have an array, a, with two rows and four columns. [CODE]int[][] a = new int[2][4];[/CODE] // Two rows and four columns. but what about the 1. …

Member Avatar for JamesCherrill
0
154
Member Avatar for AntiNL

Hi, I've been busy writing a script to upload photo's to my webserver, and after a lot of searching I finally managed to get the permissions correct, but now I'm having another problem. There are quite a lot of posts about it, but they all come down to having the …

Member Avatar for smantscheff
0
259
Member Avatar for spydanger

Hi im just made a webbrowser on cisual studio 2008 to enter automaticly to a link but me i want the webbrowser to enter to the link and wait 10 sec then click on Tab key then click on ENTER key Then ENTER key again , then wait 10 sec …

Member Avatar for spydanger
0
2K
Member Avatar for nats01282

Hello all im am after a script that allows for a drop down menu that allows the user to select a item and store that item into the database currenty i have [CODE] //all database stuff here $player_chr_pet = $_POST['chr_pet']; $chr_health = '10'; // var set at 10 incase error …

Member Avatar for smantscheff
0
358
Member Avatar for SourabhT

Hi all, I am looking for C++ multi threading under windows but i wasn't able to find any fruitful examples .Please provide me with some useful online books or links. TIA

Member Avatar for ziggystarman
0
116
Member Avatar for biancaW

please check this code : [CODE]#include <iostream>// requires for keyboard and screen I/O #include <conio.h> using namespace std; void main () { int frontPad=0; int rearPad=0; int door=0; cout << "Welcome" << endl; cout << " Enter either 0 or 1 for state of the\n Front Pad,\n Rear Pad,\n and …

Member Avatar for vinayakgarg
0
151
Member Avatar for Phaelax

I'm looking for a way to learn RPG as used on the AS400. Is there any software to emulate the machine on Windows or Mac? What tools would I use to program in RPG?

Member Avatar for Rashakil Fol
0
154
Member Avatar for VasquezPL

I've heared that its very easy to add c++ code to c++/cli project (net.framework @ Visual Studio 2010) Unfortunatelly I cant do that. I was seraching all over the internet and I cant find any decent examples. All I want to do is to make a function that will read …

Member Avatar for VasquezPL
0
1K
Member Avatar for AFinger

I'm using Visual Studio 2010 C++ Express and connecting via ODBC to MS SQL Server 2008 R2 Express. My question is: Is there any way I can pass some type of pointer into SqlGetData instead of an actual data type, then stuff that reference into a void pointer for the …

Member Avatar for AFinger
0
180
Member Avatar for public-image

I am trying to detect if a users password is less than or equal to 5 characters then to error the user otherwise continue.. <? $pass = $_POST[password]; if($pass <=5){ echo"Error"; }else{ echo"YAY no errors!"; } ?> I can't get it to work can anyone point out a way to …

Member Avatar for public-image
0
99
Member Avatar for heshanm

Hi all, I am developing a MIS for a bank.There i want to create various types of accounts and i want something like this to be done. Ex: Account type Account Number A 1001, 1002, 1003, etc B 2001, 2002, 2003, etc C 3001, 3002, 3003, etc Likewise i want …

Member Avatar for public-image
0
270
Member Avatar for abhi10kumar

The email is going to spam. How I tweak the code so that email would sent into Inbox not into SPAM. Please help....

Member Avatar for Javvy
0
84
Member Avatar for Java NOOB

Hello, I am having a problum working on a project. how do I initialized a something that I do not want a varaiable to effect. [CODE]import java.lang.*; import java.util.Scanner; public class HW05_03 { public static void main(String[] args) { Scanner stdIn = new Scanner(System.in); int angleInDeg; double angleInRadians = Math.toRadians(angleInDeg); …

Member Avatar for JamesCherrill
0
134
Member Avatar for biancaW

hi, could someone help me fix the code for the following question: I need to create a program that determines the animal corresponding to an input year of birth. Assume that the input year is 1900 or later. The 12-year animal cycle is rat, ox, tiger, rabbit, dragon, snake, horse, …

Member Avatar for rxlim
0
741
Member Avatar for RavesCoder

Hello DaniWeb, I am wondering if any of you guys here at DaniWeb, could help me start of C# Coding, In exchange of me helping one of you , code some other programs, i've basically coded everything but visual studios. So please PM me if you can help me out!

Member Avatar for ddanbe
0
84
Member Avatar for hotwheels92

Hi, I have a C++ programming assignment and am new to programming. My assignment is to read from an input file into an array of structs but for some reason all im reading in is garbage could really use some advice. If anybody could help thank you. Heres my code …

Member Avatar for jonsca
0
170
Member Avatar for arkanoid

I did not see anything about how to have multiple colors in a textbox. Is this possible, or must I use a richtextbox?. I would like to keep it simple if possible by setting it up in a standard textbox. Can someone help me with this? As an example of …

Member Avatar for arkanoid
0
121
Member Avatar for public-image

I am currently making a change password area and I wish for users to be able to change it although for passwords to be more secure we ask that passwords contain both letters and numbers and if users so choose they may have special characters as well.. I could not …

Member Avatar for MagicMedia
0
265
Member Avatar for tcl76

hi, assume data looks like this: cell Bit 0 1 1 X 2 1 3 0 4 X 5 X 6 X 7 X 8 1 9 X 10 0 11 0 12 X 13 X 14 1 15 1 And i want to group 4 bits into each group …

Member Avatar for tcl76
0
249
Member Avatar for alex55

I wrote a program executed it and it returned the expected output i goto modify it to work with multiple input files and now it returns garbage and crashes anyone have any idea? -the output file is commented because i am not using it yet there are no references to …

Member Avatar for alex55
0
166
Member Avatar for Spirit_Guardian

I am trying to compile my simple java code and receive two errors. Any help will be appreciated. 1. Java1_Week2.java:19: illegal start of expression public Java1_Week2() { 2. Java1_Week2.java:19: ';' expected public Java1_Week2(){ Here is my code: [CODE]import java.text.DecimalFormat; import javax.swing.*; public class Java1_Week2 { public static void main(String[] args) …

Member Avatar for Spirit_Guardian
0
209
Member Avatar for rbduck09

This is the algorithm that I am working from Algorithm Name: UPDATE_CHECKBOOK [B]Problem Input(s):[/B] start_balance - the beginning checkbook balance. xact_amount - the amount of the transaction. xact_type - the type of the transaction (credit or debit). [B]Problem Output(s)[/B]: new_balance -- the ending checkbook balance. Relevant Formula(s): Adding a credit …

Member Avatar for rbduck09
0
145
Member Avatar for joban.ali

Hi I have a while loop set up to call data from the database which is successfully doing. i would like my users to edit their own content on the database, a user can have many publications and so the user should be allowed to amend each publication. At the …

Member Avatar for sudeepjd
0
114
Member Avatar for zhinokin

Hello, i need a little help with this code. it's a header file personal.h [CODE] #include <iostream> #include <fstream> #include <cstring> using namespace std; #ifndef PERSONAL #define PERSONAL class Personal { public: Personal(); Personal (char*,char*,char*,int,long); void writeToFile(fstream&)const; void readFromFile(fstream&); void readKey(); int size() const { return 9 + nameLen + …

Member Avatar for zhinokin
0
604
Member Avatar for rickster11

I want my user to be able to enter a fraction. I could be lazy and just take num and denom separate... But I was wondering if there is way I can allow user to enter a fraction like "3/4". And somehow ignore the '/'. I guess I could take …

Member Avatar for vijayan121
0
121
Member Avatar for elson.james

Hi there, I've search all over the internet on how to list a directory in PHP but failed to do so. I've seen other php scripts but it didn't have the features I want. Do you have something like this: 1. It allows you to display all the directories and …

Member Avatar for elson.james
0
280
Member Avatar for rockstat

Hello Everyone I am new to this forum and hope I can get some help and vice-versa. I am doing this little project for my self in C Sharp and it involves WMP. I have provided my code at the bottom and appreciate any help I can get. I am …

0
130
Member Avatar for thebigbroski

I was working on Problem 17 on Project Euler: [url]http://projecteuler.net/index.php?section=problems&id=17[/url] and I'm stuck; my answer is close, but not correct. I got the answer 21108 with the following code: I do realize the code can be optimized, but I would like to simply get this to work, and not try …

Member Avatar for thebigbroski
0
527

The End.