199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Beancounter5

Hello , sometime ago I started a small project centred around some crazy mutating breeding rabbits( sounds silly but I have learned an awful lot ,especially about lists). Anyway , as each year passes the number of rabbits grow - not exponentially but very quickly all the same. The next …

Member Avatar for mike_2000_17
0
104
Member Avatar for jonasjo

I have error in tis code.any help will b appreciable.tanks in advance. if(isset($_POST['btnsave'])) { for($i=0;$i<count($_POST);$i++) { if(!empty($_POST["hdntxtRow".$i])) { echo $_POST["hdntxtRow".$i]."<br />"; } } $question=$_POST['txtquestion']; $choice1=$_POST['txtchoice1']; $choice2=$_POST['txtchoice2']; $choice3=$_POST['txtchoice3']; $choice4=$_POST['hdntxtrow1']; $choice5=$_POST['hdntxtrow2']; $answer=$_POST['txtanswer']; $a=mysql_query("INSERT INTO question(questions,choice1,choice2,choice3,choice4,choice5,answer) VALUES('$question','$choice1','$choice2','$choice3','$choice4','$choice5','$answer')"); } ?> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML> <HEAD> <TITLE> New Document </TITLE> <META …

Member Avatar for ko ko
0
176
Member Avatar for eswar.aspire

Hello, I am doing simple Jquery ajax post to php and I am very new to three languages. Any suggestion or guidance. I have two iframes 1. iframe 1 is Navigation menu(loaded with flash menu). <iframe name=”menu”/> 2. iframe 2 is load the web page. <iframe name=”page_load”/> When I click …

Member Avatar for Airshow
0
149
Member Avatar for L.sha

The question is to - Suppose you have a main() with three local arrays, all the same size but type (say float). The first two are already initialized to values. Write a function called addarrays() that accepts the address of three arrays as arguments add them and put their sum …

Member Avatar for Intrade
0
2K
Member Avatar for uzn

HI, I'm getting the object refernce not set to an instance of an object error in the code below. I couldnt figure it out, where I'm going wrong. Please help. [CODE] Public Function GetConnection() As SqlConnection Dim connectionString As New SqlConnection() Dim Conn As String = Nothing Conn = ConfigurationManager.ConnectionStrings("connectionString").ConnectionString …

Member Avatar for uzn
0
146
Member Avatar for Vllinator

I need to return the numbers of the lotto ticket to main, then call a print() to print the numbers. But the ticketGenerator only returns 1 number. Please help [code] #include <iostream> #include <ctime> using namespace std; int ticketGenerator(int); void printTicket(int,int); int main() { int size; int numbers; cout << …

Member Avatar for sid78669
0
112
Member Avatar for jae5086

Ok, I am having two issues with this program, and since I am new to the forum, yes, I am a beginner so I am sure the error is so common it makes you want to cry seeing it again, haha. Anyway, the program is supposed to keep working with …

Member Avatar for jae5086
0
107
Member Avatar for Software guy

Hi, I have been working on this small console applications for 2-3 days now but I cannot find the problem. The Task is that I have to read a file which has sentences in english and I just have to get the frequency for each character and print it out …

Member Avatar for Software guy
0
126
Member Avatar for blast

First of all, hello everybody :) I'm startint to learn Python and i have question about keyboard input. e.g. I want to enter grades (e.g. 10, 4, 4, 2) and calculate average. So i guess it should be: [CODE]grades = raw_input("Enter grades:") print "Grades:", grades[/CODE] And finaly - question.. How …

Member Avatar for woooee
0
652
Member Avatar for programmer12

Hello, Im trying to show my images with a limit of 2 but the while loop show the codes correctly in the source on the browser but the items are not showing on the web page.. How can i fix this issues... HERE is the codes [CODE] <!DOCTYPE html PUBLIC …

Member Avatar for programmer12
0
85
Member Avatar for coastcode

I need help with this stack problem. I think I got it, but I dont. Basically its a program to figure out who will be eaten by the dragon from a village. Names, and <CHOMPED> will be in the "villagers-in.txt" file. Every line of the file is supposed to be …

Member Avatar for coastcode
0
109
Member Avatar for sahil1991

hi friends, i was doing functions and i encountered this thing that automatic variables are stored as stacks and static,global as heaps.I am in a bit confusion about these terms......can someone help me out...plz

Member Avatar for mike_2000_17
0
158
Member Avatar for plugsharma

Hi, I need to pass a parameter into a stored procedure which values are dynamic always. Executing a variable which having the Select statement. Following query working fine. BEGIN DECLARE @strQuery NVARCHAR(MAX) DECLARE @CountryId INT DECLARE @CityId INT SET @CountryId = 2 SET @CityId = ' AND CityId IN (23,45,85,86)' …

Member Avatar for glennt
0
223
Member Avatar for stolikp

Where should I keep connection object to database like ISession or SQLConnection? What's the best solution and why ? Is it Application, Session or Items ?

Member Avatar for glennt
0
122
Member Avatar for AngelicOne

I have a book table and a author table which contains book id for the book tbl and author id for the author tbl. Then I create another table which is Book_Author and it must have the book id and author id join together. How to do this?

Member Avatar for AngelicOne
0
100
Member Avatar for uzn

Hi, I'm working on searching error files based on time. I have 2 folders which have permanent and temporary error files in it, and the only difference between permanent and temporary error files is creation time. I’m searching for error files in these 2 folders and my search should only …

Member Avatar for uzn
0
127
Member Avatar for SolidSolutions

I have a table with ~10,000 records. There is a "viewed" column which contains either 0 or 1. At some point in my code I want all rows = 1 for the "viewed" column. Does it matter if I set all rows to 1 or set all rows to 1 …

Member Avatar for smantscheff
0
153
Member Avatar for think_new

hi, I am a SQL Guy, I like reading SQL Server books, Please suggest me some books which teaches advanced topics in SQL Server not just teaching the known things.

Member Avatar for gbraden
0
168
Member Avatar for ceeandcee

Good Morning, I am writing code for a Hockey Pool site and I am working on the Standings page...typical divisional standings page. My code runs through a loop for the four teams in each division and yields results for each team and outputs fine. Here is my problem...I want to …

Member Avatar for ceeandcee
0
101
Member Avatar for hanuinfy

Hi, I am new to XSLT, Please helo me in transforming the XML to XML transform I have XML like this <products> <product> <display value="32" /> <count value="0"/> </product> </products> Through XSLT I need to convert it like this <products> <product display="32" count="0"/> </products> Please help me out. This is …

Member Avatar for fpmurphy
0
243
Member Avatar for fatpages

Hi All, can anyone suggest the e-commerce engine which is well adopted to sell virtual content (e.g. downloadable content, subscriptions, promo codes)? I tried Virtuemart for Joomla and Ubercart for Drupal, but they both are really limited and don't provide the "off the shelf" flexibility for virtual goods.

Member Avatar for dennishall
0
134
Member Avatar for Perry31

Hi friends, I'm new to this community. i just want to read string from a file excluding punctuations like ',' ';' or newline character. Is there any way to read the string by specifying the terminate character.

Member Avatar for Martin B
0
127
Member Avatar for php4ever

I absolutely hate it when I trust a person and never collect a deposit on work only to NOT be paid when I'm done. I recently designed a flash page turn effect that is all XML controlled for a Realtor where the agents could simply upload the images to a …

Member Avatar for dennishall
0
152
Member Avatar for AngelicOne

I search through the web and I only found out how to concatenate. I have a checkedlistbox that is a list of Authors, it is included in my ADD BOOK form. Take note that a book can have many author so I need checkboxlist. Instead of having this in my …

Member Avatar for AngelicOne
0
244
Member Avatar for funlove201

hey can someone please help me with this thing? I wanna open a link when someone clicks on a button how can I do that?

Member Avatar for cale.macdonald
0
144
Member Avatar for John Linux

I have a DB with two tables schoolresults; uniresults; Extracts are as follows: [B]schoolresults[/B] stuID Name Surname Gender Schoolname etc. (irrelevant to q) 1001 John Dawson M PretoriaHS 1002 Peter Zondi M Hillcrest (only one entry here for each stuID) [B]uniresults:[/B] stuID course mark symbol seniorCourse 1001 ECO1 54 3 …

Member Avatar for d5e5
0
167
Member Avatar for bufospro

Hi I am implementing a function that check if user is a man or woman. But it does not worl properly. I press e for example and appears two times Please press m/M for Man w/W for Also sometimes w/W/m/M are not recognised and appears the above. My cose is …

Member Avatar for bufospro
0
99
Member Avatar for jliao20

For the parser class, I need to use parseProgram() to take a filename as a parameter, opens and read the contents of the file, and returns an ArrayList of Statement objects. Since I am new to Java, I do not know where to start from. I also like to know …

Member Avatar for jon.kiparsky
0
160
Member Avatar for ajguitarmaniac

Consider a text file that looks like this ----------------------------------------------------------------- ABC this is the first line XYZ this is the second line or line 2 MNO this is the catch POD this is a line NFY this is a line POR this is a line LKM this is a line ABC …

Member Avatar for ajguitarmaniac
0
204
Member Avatar for pythonlearning

There is a list of dataset and I need to reshuffle them randomly then partition the dataset into n groups. I am using dictionary to store the list of dataset, but I am not sure how to partition items of a dictionary into n groups? What I can think of …

Member Avatar for pythonlearning
0
161
Member Avatar for Inês

Hello! I need help whith perl. I have 2 files, i whant to open them compare one column and if they iqual i whant to write at the 1ª file some columns of the second file. Exemple: File 1 2; apartamento; T2; manuel; 120.000€; Activo 4; moradia; V4;José; 250.000€; Suspenso …

Member Avatar for richieking
0
102
Member Avatar for indrasmission

can any one please tell how to write a text editor program in java for running and compiling of any given program

Member Avatar for indrasmission
0
108
Member Avatar for ukfreak

Hi, Can anyone help me on the requirements below? I dont have any idea on an inventory system...please help!!!! Objective Create an inventory system that allows records of company inputs and outputs, tht's viewable through daily, weekly, monthly, yearly report as well as online control over items. Aim To simplify …

Member Avatar for prvnkmr194
0
106
Member Avatar for hi5.ankit

I had been working on perl netssh in office. Now i need to configure it at home bt i am not able to. I installed activeperl. Running command makefile gives error "Mingw or c compiler not installed". then it automatically invokes mingw installation. But this installation terminates in between with …

Member Avatar for richieking
0
160
Member Avatar for rcanter

I am trying to get a text value from NameForm and pull it in Welcome as a label value. What I have so far, when the Welcome page comes up, it does not give the value of the text but if you click on the label field, it pops up …

Member Avatar for kumar169
0
172
Member Avatar for kimlong008

Who have code read file *.prc help me! I want to write program read file *.prc but I don't know struct file ! only read file *.prc

Member Avatar for kimlong008
0
123
Member Avatar for ekailan

I have this tow errors ,how I can solve it.any ideas? error LNK2019: unresolved external symbol _WinMain@16 referenced in function ___tmainCRTStartup MSVCRTD.lib AC fatal error LNK1120: 1 unresolved externals Debug\AC.exe AC

Member Avatar for ekailan
0
130
Member Avatar for Ogakor

Hello, I've been having problem with understanding merge sort for linked list. I understood merge sort for array though, I think. I've googled it and all I can find are codes. I need to understand the algorithm first before I can understand the code. Please help me understand merge sort …

Member Avatar for Martin B
0
199
Member Avatar for sravyen

Hello, I want to copy a jpeg file from linux to my windows machine using scp command.The program will be asking for a password later in the run after it executes the scp command. Is there a way that I can send the password to the program without a keyborad …

Member Avatar for TrustyTony
0
7K
Member Avatar for Abdullah Amjad
Member Avatar for hyperion
0
144
Member Avatar for ibshas25

i have set up users table and succesfully done all the inserts but i want give acess to users based on there roles. how can i do this???

Member Avatar for Stefano Mtangoo
0
84
Member Avatar for dheerajlonely
Member Avatar for Simes

This is an assignment I am working on for uni and I have done quite alot by myself and with some hints along the way from others who know Java better than I do. So I am working on a GUI Traffic Simulator (creating the GUI and drawing it is …

Member Avatar for Simes
0
181
Member Avatar for niths

hi all, In my page i had a dropdown with some values. so when i select others in dropdown i need a textbox to display under that select option. can anyone help me.... Thank u.. i tried this code but this is not working.... [CODE] <head> <SCRIPT LANGUAGE="JavaScript"> function activate(field) …

Member Avatar for sudeepjd
0
128
Member Avatar for tukky

I have a list view control on one of my forms in my program. If i click on a selected item and click on the delete button it gets removed. But i want it so that if i havent got an item selected i click on delete i get a …

Member Avatar for auxius
0
100
Member Avatar for bbman

Hey guys im trying to generate all possible string for a given pattern given a length and length of blocks. For example if length=5 and the code was 2,1 then there must a block of 2 and then a block of 1 with at at least one gap between them. …

Member Avatar for gardo
0
151
Member Avatar for lilsmurf

No matter what I enter in for my amounts, it always tells me that the total is 13. Here is my code: [CODE] String input = ""; int month = 1; int year = 0; int total = 0; double average = 0.00; int inches = 0; int rainfall = …

Member Avatar for stultuske
0
84
Member Avatar for cedric91

[CODE]void Students_Absence_Report() { int i; double presence[NO_OF_STUDS], absence[NO_OF_STUDS]; for(i=0; i<NO_OF_STUDS; i++) { presence[i] = ((double)student[i].presentDays/14)*100; absence[i] = 100 - presence[i]; } printf("\n\nStudents Presence/Absence Report\n"); printf("--------------------------------\n"); printf(" Name\t\t%%Presence\t%%Absence\n"); for(i=0; i<NO_OF_STUDS; i++) { printf("%-3d %-19s %.2f\t\t%.2f\n", student[i].studNo, strcat(student[i].surname, student[i].givenName), presence[i], absence[i]); } printf("\n******** END OF ATTENDANCE REPORT ********\n"); } [/CODE] Anythings wrong …

Member Avatar for hyperion
0
87
Member Avatar for hveed

hi, I am new to programming and looking for some help, here is the portion of the assignment that is giving me headaches: using one function, upload (i.e., input) the integer value and the color text, ignoring the word "Color:"; the function must only upload one data pair (i.e., the …

Member Avatar for Ancient Dragon
0
139
Member Avatar for DarkSatan

I just found this tough question in the last year Q Paper of this competition...1st how can I take inputs in a single line??(noob question) 2nd Can any1 help me with the logic to use...If u cud write a small eg. prog I would be greatly thankful NOTE:I had also …

Member Avatar for DarkSatan
0
128

The End.