199,112 Archived Topics
Remove Filter ![]() | |
Hi guys; I need your assistance. I am extracting some info from my database and I need difference between two fields of money values. Lets call the fields as Field1,Field2,& Field3. Field1 = Current Balance Field2 = Starting Balance Field3 = Field1 - Field2 From my query, I get Field3 … | |
Hi, we started doing programing at uni and i got interested so am learning some python at home. just started on generators and thought i'd write a function to generate prime numbers, as you do: [CODE] def primes(p=2): while True: for n in range(2,p): if p % n == 0: … | |
The code below will throw a RuntimeException which will be caught by the first catch block that handles the RuntimeException. Then why is it that the second catch block is attempting to handle the RuntimeException. Is it because a RuntimeException and an ArithmeticException are both unchecked exception?. [CODE] public class … | |
Hai i am building a site for validation of the RSS feeds and adding it in the database. When a user enters a rss web address i need to validate the address and if it contains a rss then i need to enter it into the site or else i … | |
[CODE]#include <iostream> using namespace std; class sMatrix { public: sMatrix(int,int); sMatrix (sMatrix&); int getR(); int getC(); bool rValid(double); bool cValid(double); void setEl(double,double,double); double getEl(int i,int j); int getVal(); void print(); void add(sMatrix&); private: int nr, nc; //number of row and cols int nent; //number of entries int nmax; //the max … | |
hello dr.......... i m trying to store a text file into database below format of text file i hv text file like this: 0100102001110271 0409141151I1476201 0100102001110125 0409141351O1476301 0100101300000030 0409141630O1476401 0100102001110271 0409141631O1476501 0100102001110126 0409141632O1476601 how can store it into my database table att0310 my table fileds: cardno date time IO(in-out) and … | |
Hi I am using Rougewave library for one of my program. I am using the RWHashTable from it. during the startup of my program, I will load this hashtable with information read from database. so, I have the hashtable filled with data. and during runtime, I need to print all … | |
Hi, This is the code segment: [CODE]template<class type> void merge_sort(type inputs[], int p, int r, int (*comp)(type, type)); typedef struct { vertex vertices[MAX_VERTEX]; int number_vertices; int adj_matrix[MAX_VERTEX][MAX_VERTEX]; } graph; int compare_vertex(vertex v1, vertex v2) { if (v1.f < v2.f) { return -1; } else if (v1.f > v2.f) { return … | |
Instructions: You are required to design and write an application that will analyze an input file (InputFile.txt); the file contains a date on each line. Your algorithm should output all the missing dates, excluding Saturdays and Sundays. You should not cater for public holidays. Also keep in mind: each leap … | |
Have written a simple PHP program to get data from a database to an accounting program. Therefore I need to do some calculations. And one of them goes completely wrong. [CODE]<?php $prijs = 480.00; $nvh = 432.00; $prov = 40.34; $btw = 7.66; $over = $prijs - ($nvh + $prov … | |
MSG msg ; HWND hwnd; WNDCLASS wc; to me this syntax looks like msg hwnd and wc(all lower case) are variables is this right? and with the exception of wc would changing the other 2 change anything? | |
Can someone help me with the code to display the second largest value in a set of numbers using '[B][U]while loop[/U][/B]'??? I have done programs using [B][U]while loop[/U][/B] to display the largest value, as well as the largest and smallest value.But this seems a bit tough for me. | |
Hi ppl, I have a mail function as follows: [CODE]mail($mail_to,$mail_sub,$mail_mesg,$headers);[/CODE] Now, for $mail_mesg i want the message to be in html format as follows: [CODE]$mail_mesg="You have received a message from ur boss... <a href=Login.php>Click here to view it.... </a>"[/CODE] But this is not working... the code b/w <a> </a> is … | |
Hello , Please help me, i am facing problem to divide the xml in two parts. The xml is <aa> <x>1</x> <x>2</x> <x>3</x> <x>4</x> <x>5</x> <x>6</x> <x>7</x> <x>8</x> <x>9</x> <x>10</x> </aa> the x element contain some attriubte and child elements. and i want to divide the xml into two parts … | |
Hey Guys I've got a Python function that is slowing the efficiency of my program down and was wondering if anyone could give me some pointers on how I could make this function more efficient ? The function is used for converting a integer to a base 16 number. [CODE]def … | |
Hey, just signed up to this forum so first of all would like to say Hi . I am currently working on a review website building from code I had written previously. The problem I am having is with my login script. I Have three pages set out index.html, login.html … | |
I was hoping that there would be a readonly system or session variable such as @@username or @@user_id or similar Is there any way I can access username information inside an SQL database please? I am hoping to use it to render certain ROWS visible/invisible in views This would be … | |
For some reason the post is not getting inserted into my database. [code=PHP] if($_SESSION['permissions']>=1) { $query="INSERT INTO news (id, title, poster, posterid, body) VALUES ('$id','$title','$poster','$posterid','$body')"; $result=mysql_query($query,$con); header("location:index.php"); } [/code] | |
Hi All, I am newbie to the C# programming and we have to design a situation with the following use case. We would like to control the text boxes visibility using a checkbox. When ever we check the checkbox the textbox should not be visible and when we uncheck the … | |
Hello good day. I just want to ask those who know how to save values without submitting yet to database. I am trying to save it, but it wont work out. What i want is that, I am filling up a form, then I will go to the next page, … | |
I have the following code: my add function and M.add(N) statement keeps turning up errors I'm not sure how to fix it. I also need a getVal function but I'm not sure what to do with it. [CODE]#include <iostream> using namespace std; class sMatrix { public: sMatrix(int,int); int getR(); int … | |
how do i write a java code preferably using the 'while-do', 'if-else', 'for' statements to get these outcomes? n is the input and the system prints triangles of height n? n=2 . * *** n=5 ........* ......*** ....***** ..******* ********* ignore the dots, they are to align them properly thanks … | |
Here's what I'm trying to do: I want my program to spawn a Msgbox on the first day of every month with some information for the user. Please walk me throught it EXACTLY, as I'm a beginner :icon_mrgreen: | |
Hi Could any body help us to sort it out. i am using two textareas for editing by tinymce, its working fine in ie and ff but in [COLOR="Red"]safari it is opening the first textarea editor only[/COLOR]. This was my code. [CODE]tinyMCE.init({ // General options mode : "textareas", //mode : … | |
i got 2 html pages with the following data index.php (buttons: SAVE, EDIT) update.php (buttons: UPDATE,DELETE) Employee ID (primary key), Employee Name (here i putting 2 buttons Edit,Save) when i entered the empid and click the Edit button, the page has to go from index.php to update.php and at the … | |
hi any body tell me , how to create a dll file in asp.net using vb.net or please give me any websites for creating dll files in asp.net using vb.net................. | |
hello..... i am fetching text from database. i want to restrict 400 characters from that after "readmore". it redirects to total page. i was used substring but i want to total validate what means after 400 characters there is '.' is there then not appear '.........'like this. otherwise appear after … | |
I type 2009 in mask edit box and select August from a combo box. then I press report button for report. then show this msg: "run time error 713 Application - defined or object defined error" another thing when I run the exe of this project in another pc then … | |
[b]Split from - [url]http://www.daniweb.com/forums/thread37592.html[/url] [/b] Hi, I want to do following two steps. I am already done with first step. But I can't do the second step. Could anyone give me any idea how to do it? Step 1: After serialization, I load XML file's data in a datagrid in … | |
e.g. [CODE] class B { public: virtual ~B() {printf("Base class Destructor");} }; class D { public: ~D() {printf("Derived class Destructor");} }; [/CODE] Is it somehow possible to altogether avoid printing 'Base class Destructor' when an object of class D is destructed (of course without causing a memory leak).. If you … | |
hello group members, can you suggest me how to structure C# web application I know that by default files are organized in much better way, but I need to know how a professional web-application is created. how can I do "separation" of code in much better way ? thanks | |
whats the best way to make gui programs write all code your self or use the gui creator from netbeans? dont you get crappy code from the creator ? | |
Hello I need to pass an array of client side events to the next page. Here my user would perform a few events which would be stored in a javascript array, upon completion a submit button would be used to post all that data to the next page. An example … | |
how to display the randomly selsected questions from a database one at a time in jsp like in online quiz.please help me | |
[CODE] Private Sub Form_Load() With db .Provider = "Microsoft.Jet.OLEDB.4.0" .Mode = adModeReadWrite .Open (App.Path & "\DBAddress.mdb") End With End Sub[/CODE] Guys that's my code and I think that code contains no error. What's happening is that when I'm starting to execute the code. It shows a Run Time Error: Could … | |
Now, I am sure there are more than 3 problems with this thing, and it's been sort of butchered into pieces with me attempting to solve this issue. Regardless, outside of the three problems I'd appreciate any input. My book tasks me with creating a program for a zoo that … | |
hi....can i ask something? i need to set a default password for a sign up form... so when new user sign up, they will get a default password and for the first time they log in, they will received a prompt or a msessage asking them to change their password. … | |
Hello everyone, im writing this post because im in need of some help or guidelines. My programs function is to be able to store cars, with this i mean being able to: add, delete and view the list of cars added. Everything is supposed to be stored in a txt … | |
Hello, can someone please help me with my code. I'm working on a program to calculate the monthly cost for excess minutes from two different cell phone companies. I still have a lot more to add to my code, but I am stuck on this particular part. I am reading … | |
I would like to create a drawing tool similar to visio, with the linking to the database But i have another half of my .exe project done with visual basic.\ we want to sell it. is it wise to use visio and built macros links to it? is it easy … | |
Hi everyone...([COLOR="Green"]read carefully[/COLOR]) I am Developing an application in C#. In which First I create two text files say a.text and b.text. and then fetch data from them ...... Now every day when I run my code for the first time I want to delete these files and recreate new … | |
Hi all, Im relatively new to PHP, and i have come across a brick wall. What im trying to do is pass two variables $factid and $pathid to another PHP page and from there insert them into SQL Table. The only problem is that the $pathid is inside a while … | |
i have my file input like this ifstream inFile; inFile.open(fileName.c_str()); and i cin >> fileName; i want the output file name to be the input filename with .dat added to it eg if fileName was c:/tmp/test.txt i want the output to be c:/tmp/test.txt.dat anyone know how i can do this … | |
What im trying to do is this. I have created a fact repository frame which holds facts for the use to look for. The user looks for facts through a search text field in which they submit. The search variable brings up on the page anything which matches the search … | |
hi... i want to do simple addition and subtraction with ajax.. i want to do like when user click on any MRP it will show subtotal of all items but with moving numbers.. for eg. if subtotal is 100 thn user click on mrp rs. 100 thn disply of subtotal … | |
I have a report named crystalreport1 added to my web application in visual studio 2005 when i try to create the instance of the report like dim rpt as new crystalreport1() it shows an error crystalreport1() not defined What is the problem and what namespaces need to be included. | |
Could someone please help me with this assignment? I am near finishing. It is just one minor problem that is preventing me from finalizing this. I added a comment /* Problem */ above the problem. I just can't seem to add up all the values for JOG_min. When I run … | |
Hey ppl, I am using wampserver for my Website development... Now, I want to send mail to a particular user from mysql table... when i use the mail function for PHP code [CODE]mail($mail_to,$mail_sub,$mail_mesg,$headers)[/CODE] I am getting the error as follows [CODE]Warning: mail() [function.mail]: Failed to connect to mailserver at "localhost" … | |
I'm a little confused on how to even start this problem. Here's the problem: Given a square matrix, write a program that determines the number of white blocks and total number of squares in each of the white blocks. By definition the outside boundaries of the matrix must be shaded. … | |
Hi everyone! I am in Windows XP and this has been my problem whenever i use graphics mode in C. We are required to use the Borland Turbo C compiler IDE (with the blue background thing.) Here is the problem: Whenever I run the program in graphics mode, it always … |
The End.