199,114 Archived Topics
Remove Filter ![]() | |
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 … | |
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 … | |
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 … | |
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 | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
So I have a method that gets a Dictionary of `List<myObj>`, then cycles through the keys of the dictionary and passes each `List<myObj>` 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 … | |
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 … | |
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 | |
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 … | |
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 ;" … | |
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. … | |
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++? | |
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") … | |
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 … | |
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..... | |
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 << … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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? | |
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 … | |
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 = … | |
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 … | |
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 … | |
What is the most comprehensive book/online source for multithreading? Thanks! | |
how do i update, delete, add an sql database with c# | |
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","") … | |
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 … | |
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 … | |
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 … | |
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 … | |
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? | |
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 … | |
Please tell me any good C++ compiler which works correctly on window 7 | |
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 … | |
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 | |
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 … | |
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 … | |
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 … | |
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. | |
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. | |
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 … | |
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; … |
The End.