199,114 Archived Topics
Remove Filter ![]() | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 << … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 | |
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)' … | |
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 ? | |
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? | |
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 … | |
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 … | |
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. | |
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 … | |
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 … | |
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. | |
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. | |
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 … | |
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 … | |
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? | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
can any one please tell how to write a text editor program in java for running and compiling of any given program | |
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 … | |
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 … | |
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 … | |
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 | |
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 | |
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 … | |
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 … | |
Hello,im a beginner in c.How do we call a function in the main function? | |
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??? | |
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 … | |
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) … | |
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 … | |
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. … | |
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 = … | |
[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 … | |
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 … | |
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 … |
The End.