199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for nick3592

Hi, i have made a rss feed that automatically updates, what i done use php to grab information from the database as new content is added in xml. Everything seems okay but when i click subscribe to rss feed it displays "Failed to load feed". My extension is .php is …

0
104
Member Avatar for dylgod

I need to write an application that reads a distance in metres. The program will then convert the distance to kilometres, feet and inches, by calling methods. Here is my code so far... looking for pointers please. [CODE]import javax.swing.JOptionPane; import java.text.DecimalFormat; /** This program converts meters to kilometers, inches, and …

Member Avatar for jon.kiparsky
0
121
Member Avatar for mimran2k

If I want to search record by age like (30 to 35) just like dating script but I will not use in dating site, I have my school website and I just want to display record by age but If I want to display age between 14 to 17 kindly …

Member Avatar for drjohn
0
156
Member Avatar for Dark_Omen

Hello, Does anyone know how to submit forms from one page to another page? If you don' mind can someone explain how, or if they know a good tutorial, either of these would be great. Can this be done in javascript? Thanks

Member Avatar for Taywin
0
1K
Member Avatar for dadam88

I just started to get a grasp of classes. I can't find my answer anywhere, and I hope someone on here can answer it. I am trying to simlate a battle [B]USING CLASSES[/B] Everywhere I look on the net people in C++ don't use classes to simulate battles. You could …

Member Avatar for dadam88
0
109
Member Avatar for Bugaya

I'm using VS2005 & SQL Server 2005 which is installed with VS2005. Platform is XP SP2. I've an app that connects to the DB & get some data from it . The app & DB are on the same machine . Suddenly When I run the app. , I've that …

Member Avatar for khansa74
0
177
Member Avatar for DaSpirit

Hey guys, I'm new here. I just started learning c++ and I'm having a few problems. I have looked for one online but I found none that really worked for me so I tried to make my own. I'm trying to make a constant frame rate at 30 frames per …

Member Avatar for DaSpirit
0
289
Member Avatar for Musing888

When I run my code the program adds the following before the start of my program: >>> Warning (from warnings module): File "C:/Users/Steven/Documents/CA/CA python/CAMain.py", line 142 def maxgen(fname, worksheet=1,encoding='cp1251'): SyntaxWarning: import * only allowed at module level >>> [I]The first prompt of my program would be here[/I] The code it …

Member Avatar for Musing888
0
1K
Member Avatar for Fedhell

Basically i want to make a platform game in java purely from the java 2d graphics. I have managed to link the keyListener to update variables which my graphics pane can then use to draw my images. But i cant do is get my image to refresh after the variables …

Member Avatar for Fedhell
0
713
Member Avatar for Dudeman3000

So I have a method that gets a Dictionary of `List&lt;myObj&gt;`, then cycles through the keys of the dictionary and passes each `List&lt;myObj&gt;` to a separate thread. Here is some Code / Psuedo-Code: public static void ProcessEntries() { Dictionary<string, List<myObj>> myDictionary = GetDictionary(); foreach(string key in myDictionary.keys) { List<myObj> myList …

Member Avatar for nick.crane
0
156
Member Avatar for fr0styh3rb

If someone could take a look at my Java code for Payroll Program, I need to declare Int as a double in order to produce the produce of number of employees in a department times the average salary for each employee. If someone could throw up pointers, tips, or any …

Member Avatar for NormR1
0
185
Member Avatar for anurag.kyal

Is is possible to check if the execution of a java program from python gives any error during runtime and compile time ? Any help or sample code will be of real help.. Thanks in advance

Member Avatar for Gribouillis
0
87
Member Avatar for Mongooseman

I often find myself parsing a url or filepath for includes and links, and it usually leads to messy, frustrating code. Given PHP's massive library, I assumed there would be something to make life easier, but I couldn't find anything while pouring over the online reference. It's a lot of …

Member Avatar for chrishea
0
172
Member Avatar for gaurav_13191

Hi,I am new to daniweb and would like to know the error in this code [CODE] void initpoly(struct poly *p) { int i; p->noofterms=0; for(i=0;i<MAX;i++) { p->t[i].coeff=0; p->t[i].exp=0; } }[/CODE] I am not posting the entire program because it is lengthy.I am getting the error"Expected primary expression before token ;" …

Member Avatar for gaurav_13191
0
242
Member Avatar for andrewliu

Hello, I'm trying to create a list of categories and have a link with "more categories" and when a user clicks on it, a div table pop up will show. So far I've hidden a div tag and had it show and close if a user clicks on the link. …

Member Avatar for almostbob
0
148
Member Avatar for mehak gupta

Hey,can anyone tell me how to invoke a new application/software using c++ or visual c++. Also, gor interfacing a gui with my c++ code,should i go for vc++?

Member Avatar for mehak gupta
0
261
Member Avatar for nicholaslee21

Can someone look at this and tell my why it's not working like it should? It gets the data from the database fine, just wont post to search.php [CODE]<?php //connect to your database ** EDIT REQUIRED HERE ** mysql_connect("localhost","root",""); //(host, username, password) //specify database ** EDIT REQUIRED HERE ** mysql_select_db("test1") …

Member Avatar for nicholaslee21
0
172
Member Avatar for anraevlus18

Hi, My script has 3 options which recieve integers. If any of those options are having a value which is less than zero i want to make them to 100. eg: if opt2 = 32 and opt3 = 24 i want to make them to 100. <code=perl> our $opt1,$opt2,$opt3; our …

Member Avatar for d5e5
0
118
Member Avatar for ManishS

I m not getting how to link pages in php..... For ex if I click on submit button of a regidtration form then i want to be navigated to a new page.. What should i do ... please suggest.....

Member Avatar for lionaneesh
0
89
Member Avatar for mavs123

oh my please help me..i;m making a simple code in c++ using dev c because i am exploring this language for my second year. i do not know why it will not display the output..i don't know how to use cin..[CODE]#include <iostream> using namespace std; int main() { cout << …

Member Avatar for harris21
0
113
Member Avatar for qqwushi12345

Below is my code: [CODE]#include "stdafx.h" #include "strlib.h" #include "simpio.h" #include "genlib.h" int _tmain(int argc, _TCHAR* argv[]) { int num1,nom1,num2,nom2,num3,nom3,num4,nom4; double nem1,nem2,nem3,nem4; string a,b,c,d; printf("Enter first name: "); a=GetLine(); printf("Enter games played for %s: ",a); num1=GetInteger(); printf("Games won for %s: ",a); nom1=GetInteger(); nem1=(nom1/num1)*100; printf("\n"); printf("Enter second name: "); b=GetLine(); printf("Enter …

Member Avatar for qqwushi12345
0
109
Member Avatar for fr0styh3rb

I am developing a payroll program for my programming class. I need to declare the Int as a double in order to produce the product for number of employees in a department times the average salary for each employee. Can someone take a look at me code and let me …

Member Avatar for arkoenig
0
120
Member Avatar for Alexpap

Hello everybody, For the last 2 days im trying to deal with a treeview. What i want to do is to copy the structure from one tree to another. I know there are other ways to do this, but the way i want is to iterate through any node-of any …

Member Avatar for nick.crane
0
245
Member Avatar for xZombeast

Ok, well I am new to VB, but have a general idea of it, and im trying to make a program that does the following (and it fairly simple) button 1 = Open button 2 = search and replace textbox = text to search for replace = a given, non …

Member Avatar for Oxiegen
0
123
Member Avatar for abdelhakeem

Hello all, this is Kimo :D The title shows all what I want, I want some advice about a book to read regarding that i'm not new in programming, I Programmed C++ before. Meaning that this book doesn't explain what's a variable, a pointer or what's a class, etc... It …

Member Avatar for abdelhakeem
0
131
Member Avatar for Tommy.b

Hey using the following sql [code] SELECT DB_SALGSPRIS from pris_interval WHERE DB_INTERVAL_START < '11.78' AND DB_INTERVAL_END >= '11.78' SELECT DB_CUSTOMER from pris_interval WHERE AND DB_INTERVAL_START < '7.19'AND DB_INTERVAL_END >= '7.19' [/code] I get multiple results, 3 from first, and 2 from the second to be precise, what I am wondering …

Member Avatar for Tommy.b
0
141
Member Avatar for Nandu Das

I am a computer science student and i want to know how to create a c++ program to ping an ip address and check whether it is online or not?

Member Avatar for vijayan121
0
70
Member Avatar for gpleonar

The program needs to ask for n and then output the first n terms of the Fibonacci sequence. exp. n = 6 1, 1, 2, 3, 5, 8 1+1 =2 2+1=3 3+2=5 5+3=8 My origional program used a nested for loop. I am not sure if that is right to …

Member Avatar for harshmore
0
416
Member Avatar for RouseA

I am developving a number of projects in Eclipse that share common files (such as peripheral drivers). Each project therefore pulls together source files from a number of folders. Within my makefile I have concatenated together the names of all the source folders as can be summarised: [CODE] SOURCE = …

Member Avatar for RouseA
0
341
Member Avatar for cgcgames

Hey Everyone I am having troubles. i tried looking up how to make the main for invisable but i cant figure out how. i saw some examples but they made no scence to me. What i am trying to do is change from one form to another and hide the …

Member Avatar for ShadowScripter
0
194
Member Avatar for ftl25

I have an array of strings as follows: [CODE]char *sCmdInt[8];[/CODE] I need to use elements from the array to pass to another dll. The function takes two LPSTRs as parameters. What I need to do is copy two elements from the array into ints/longs, and then create two LPSTRs from …

Member Avatar for Ancient Dragon
0
108
Member Avatar for AkashL
Member Avatar for Ancient Dragon
0
77
Member Avatar for Don_leon
Member Avatar for jamesyrawr

Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in C:\wamp\www\registration\login.php on line 19 is the error i get when i run the below code i cant figure out what is wrong with it. :( [CODE]<?php $username = $_POST ['username']; $password = $_POST ['password']; if ($username&&$password){ $connect = mysql_connect("localhost","root","") …

Member Avatar for mazeroth
0
206
Member Avatar for terrymold

Hi again I'm still having problems with PHP/MySQL Warning messages, even when using mysql_real_escape_string(). The offending string is: [CODE][25:64] And the true servants of the Gracious God are those who walk on the earth humbly and when the ignorant address them, they avoid them gracefully by saying, 'Peace!'[/CODE] If I …

Member Avatar for terrymold
0
228
Member Avatar for okwy

his is a follow up to the question I asked earlier and with the help of some people here I was able to start up with the function I want to write,but I am yet to complete it. Here is my earlier question: I have a series of files with …

Member Avatar for Adak
0
204
Member Avatar for k.e.v

Hi everybody, I need to take an xml file and remove 2 certain namespaces from it using XSLT("scrubbing metadata"). Also, I believe I would need to use the Transformer class in combination with the XSLT. Can someone help me out? Possibly giving me an example with namespace "A" and namespace …

Member Avatar for k.e.v
0
138
Member Avatar for faizza007

hi, I am a newbie in programming...recently i have developed a very simple (probably too simple!!!) javascript code that trims strings and shows animation....the code should be self explanatory....and i have included comments in the snippet so everyone understands what i did....any comments appreciated....just save the txt file as .html …

Member Avatar for faizza007
0
148
Member Avatar for Garrett2011

was the idea of nested functions considered to be useless during the time of developing older c++ standard, because its usage is basically covered by another concept like object-oriented programming; or it wasn't implemented just as a matter of simplification?

Member Avatar for arkoenig
0
533
Member Avatar for Yogesh Sharma

Hey frns I want to record the time that the application takes. I want that when i click on Start Button in label time starts from 00:00:00, & when we click on cancel button time resets to zero. I include system.diagnostics.stopwatch I just know start,stop & Reset methods are there.But …

Member Avatar for Naushad Malik
0
129
Member Avatar for algoexpert
Member Avatar for Nick Evan
0
75
Member Avatar for jpeg

Trying to figure out how to write this program. I need some immediate help! Define a base class person that will contain universal information, including name, address, birth date, gender and identification (student, worker etc). Derive from this class the following classes: Student Worker Student_worker Add variable school for student …

Member Avatar for -ordi-
0
192
Member Avatar for keval_hack

Hay, every one seen the of twitter ,facebook ,diggs and google buzz. How can i implement same plugin im my site. I success fully implemented the google buzz plugin but not any other. pls help me. -keval

Member Avatar for mazeroth
0
117
Member Avatar for Ajuddy

I would like to save to database but not file. please help me and show me how i can change from file to databasetables. [CODE]****users***** <?php function saveUsers($onlineusers_file){ $file_save=fopen("onlineusers_".$_POST… flock($file_save,LOCK_EX); for($line=0;$line<count($onlineusers_f… fputs($file_save,$onlineusers_file[$li… }; flock($file_save,LOCK_UN); fclose($file_save); } $onlineusers_file=file("onlineusers_".… if (isset($_POST['user'],$_POST['oper'])){ $user=$_POST['user']; $oper=$_POST['oper']; $userexist=in_array($user,$onlineusers… if ($userexist)$userindex=array_search($use… if($oper=="signin" && $userexist==false){ $onlineusers_file[]=$user; saveUsers($onlineusers_file); echo …

Member Avatar for Ajuddy
0
148
Member Avatar for Sunshineserene

Hi all, I'm having some problem with my codes. I have a output that is generated into a txt file. Now, I need to read the txt file and convert the output into something else. This is the output that is store in a txt file: VAL LEU SER PRO …

Member Avatar for java_programmer
0
185
Member Avatar for foco

I can get variables from an html page into my perl cgi script just fine, but I want to process these variables (also works), and pass them to another cgi script. I'm not sure how though. I've tried to set up a new <form> inside of my perl script to …

Member Avatar for PaulieWauly
0
184
Member Avatar for cristi08

I have tbl 1 id_column(1 2 3 ) tbl 2 id_column(1 1 1 2 2 3 3 3) I need result tbl2 join with tbl 1 values (3 3 3) Thank you in advance i'm strugling from two days for this.

Member Avatar for cristi08
0
141
Member Avatar for cristi08

I have tbl 1 id_column(1 2 3 ) tbl 2 id_column(1 1 1 2 2 3 3 3) I need result tbl2 join with tbl 1 values (3 3 3) Thank you in advance i'm strugling from two days for this.

Member Avatar for cristi08
0
124
Member Avatar for sammerth

I have two drop down lists in my form- catagory and the second one sub-catagory.When user selects a particular catagory corresponding sub-catagory should be displyed in the second drop down list for further user selection.I am using PHP-Mysql in dreamweaver.When i preview the first list is working properly but the …

Member Avatar for sammerth
0
470
Member Avatar for ALFA-FOXTROT

Hi guys need some help here. I don't know why but it doesn't read the value. This is to be runned by Property. [CODE] function calculate_form_opap(op_id,oca_id,ocp_id) { var propertiesintotal=0; var total=0; var completo=''; var completo_count = op_id+'_'+oca_id; propertiesintotal = Number(document.getElementById('propertiesintotal_'+op_id+'_'+oca_id).value); propertiesintotal=propertiesintotal-1; for (y=0; y<=propertiesintotal; y++){ completo=op_id+'_'+oca_id+'_'+ocp_id+'_'+y; alert(completo); //valor = document.getElementById('property_total_'+completo).value; …

Member Avatar for ALFA-FOXTROT
0
171

The End.