199,114 Archived Topics
Remove Filter ![]() | |
Hi, Here is my mysql sentence: [CODE]select last_insert_id() from pp;[/CODE] and the table pp is created by: [CODE]create table pp(id int not null auto_increment primary key,name varchar(255) not null);[/CODE] Now I'd like to change the above into sentences that are right in Oracle. First I create table: [CODE]create table pp(id … | |
Can anyone explain the concept and guides and show some codes as how one does use only signup.php only for getting different information only by passing at the example: first page: [COLOR="Green"]signup.php?fer=1[/COLOR] Example: Username: Password: [Button:Save AND Next] next page sequence: [COLOR="Green"]signup.php?fer=2[/COLOR] Example: Please Input Your Personal Information: Address: Zipcode: … | |
[CODE]<html> <head> </head> <body> <?php $days_array = array(""); for($_GET['days'] as $val2) { $days_array[] = $val2; echo $days_array[0]; } ?> <form name="fors" method="post" action="<?php echo $_SERVER['PHP_SELF'] ?>"> Enter text:<input type="text" name="days"> <input type="submit" name="submit" value="submit"> </form> </body> </html>[/CODE] get the text box value using array and display the value using array. | |
Hi all - hope you are well. I am trying to print out only the first 15 characters of each line of a text file. The trouble is I am not sure how I would go about doing such a thing! Any help will be greatly appreciated. Thank you for … | |
i'm popping up a form from a function and i want the code to stop executing further till a button on the form is clicked. Right now the form is popping up and the appln continues executing the code after that. Please help me | |
Hi. I Installed Apache 2, PHP 5, and Mysql 5 (All Latest Version) and now i when open e script on my localhost that needs a mysql connection (i tried with phpmyadmin) i get a error: Could not load module mysql.dll (ore something like this) but the service is running … | |
I am using a while loop like while a>0: a=a+1 a1=open("/python25/file1.txt","r+") a2=str(a) a3=a1.write(a2) It is storing only the last value of a, but how can I store any row or all the rows in file? | |
Hi I have an idea to rand some digit which sum is equal to my inputs digit. If I put in 12 then I like to have 4, 2, 6 or 4,4, 4 or 3, 3, 3, 3 …….etc. Not more and not lease then my input. In my function … | |
![]() | Hello, I am Begueradj, I want to know if we could use more than one stack in the same Aseembler source code. Thank you very much for helping me. ![]() |
Hello everyone; I've got a project at hand that I must pass and I have to admit, I am not good at c++. No excuse, though. I've got all day to get this thing done. Its a project that asks me to; [I]1. Input 2 matrices from 2 files!!!!! | |
Hi all, In my form i have listbox,file upload control and button . Using file upload control am adding the files to listbox which i want to upload to server. On clicking button, i want the files to be uploaded to server which are in listbox. Please suggest me how … | |
Hi. I'm supposed to reverse a number based on user input. Example, if the user inputs 123, the output should be 321. However, so far, the way it is now, if the user inputs 123, the output is 312. I'm a little lost -_- help please. [code]while ( input != … | |
as we use \n for next line is there anyway to go back to the previous line if not then, is there anyway i can use the x,y coordinates of the runtime window. all the experts, Please Help...... Thanks. | |
Hi all, I have just upgrade from php 4 to 5 and now I get a hole lot of weird text on my site. I have try to disable all errors and warnings, but I cant get it to dissapear. hope somebody can help me. [url]http://demo.topnordic.com[/url] [url]http://demo.topnordic.com/info.php[/url] Thanks | |
is this a good example to demonstrate the different types of inheritance? kindly give feed back and suggestions.. ps:using the g++ compiler [code=c++] #include<iostream> using namespace std; class life{ public: virtual void eats()=0; protected: char* predator; char* prey; }; class producers : public life{ virtual void eats()=0; }; class animal … | |
I have this data, but when i sort it different from what i want. I want to sort in descending order like this 2 30 1 20 3 15 [U][B]jest.txt[/B][/U] 1 20 2 30 3 15 [U][B]after compile[/B][/U] 1 15 30 15 15 15 [code=C++] #include <fstream> #include <string> #include … | |
Am working on this assignment that involves having to make our own Hashmap ADT and am working on it but i can't see to get further because i don't know what this error its giving me is: [inlinecode] unresolved external symbol "class std::basic_ostream<char,struct std::char_traits<char> > & __cdecl operator<<(class std::basic_ostream<char,struct std::char_traits<char> … | |
Hello, I need some help with the program below. [code] #include <stdio.h> float get_startingbalance(void); float getCntOfWithdrawls(); float getCntOfDeposits(); float getEachDeposit(); float getEachWithdrawl(); float checkBalance(); float calcAndDisplayBalance(); float displayBankRecord(); void print_withdrawalnumber(int num_withdrawals); void print_depositnumbers(int num_deposits); void print_startingbalance(float start_balance); void print_endbalance(float current_balance); int main() { /* Declare Variables */ int num_withdrawals, num_deposits, … | |
Hello there: This is my issue. I do have one combo box in a form from which I want to select a person, by selecting the ID. In the combo box I want to show sorted name, last name, and date of birth. I wonder this should not be so … | |
Hi All, We have many test artifacts and each unit is known as [B]U[/B]nit [B]U[/B]nder [B]T[/B]est (UUT). Each UUT is unique entity so it can be considered as a Primary Key. Also there are various defect categories (viz. CAT-I,CAT-II). Moreover each Category can be broken down into exact defect name. … | |
I am using MySql 5.0.51a and am trying to acheive the following I have 2 tables, one of categories and one of company details, each company can select up to 6 different categories for their business. In my category table, I have sub categories, and sub sub categories, eg, Main … | |
Hi.. whats the best way to initialize a char* ? i tried using char* p = ""; and it gives segmentation fault at times. not sure how to initialize it. this is the function where i'm using it. screenReturnValue variable is not getting initialised properly everytime, when i call this … | |
I am trying to design a web base system for A1 Holloway car hire, I am not sure about my Entity Relationship diagram as when I try to make the relationship between two table it never goes the way, here it is: booking_tbl ( PK booking_id, FK vehicle_reg, FK customer_id, … | |
hi guys, heres the problem. i have an assignment to change certain letters or combination of letters into some other letters or just to make them dissapier. Say like.. "the" to>> "ze", where "th" is replaced with "z". the program is consists of functions like these. checking two letters forward … | |
Hi there and thank you in advance for your help in advance. I am having problems with my page replacement program with taking the integers from an input file and putting them into an array. I need it in format [Next page in] | | | | (current pages between … | |
Hi. i am taking a C++ intro course and one of my projects is to create a program that will give me the beta 0 and beta 1 of a regression. The user must input a the following: how many data sets?, each of the Xs and each of the … | |
I'm trying to implement operator overloading. I think I was successful with overloading the input and output function. Do I need to keep the current functions and add functions such as [code] bool operator == (const HugeInteger&, const HugeInteger&); [/code] My program is listed below. Please point me in the … | |
So what I'm supposed to do is take a text file and read it into a set of string vectors. The file has three types of data in it, in this order: title, artist, genre. I need to read it into the vectors so that each data type is only … | |
How can i read in data in different functions without losing the stream's place in the file. i.e function a and function b both open a data stream to read in first and last names from a file. however function b reads in the first name as well rather than … | |
Here is the background: I am working on a project in which I have a base class called Account. In this base class I have the functions updateValue(int num_of_years) and void toString(); Next I have three subclasses of this base class, which are MutualFund, Bond, Buried. Each of these is … | |
hi. i have a program that i am having some troubles with. if anyone could give me any suggestions, it would be greatly appreciated! : ) i have to edit the main some more to get this to actually work. and i also have to add info into the function. … | |
import javax.mail.*; import javax.mail.internet.*; import java.util.*; import javax.activation.*; import java.io.*; public class SimpleSender { public static void main(String args[]) { try { String smtpServer=args[0]; String to=args[1]; String from=args[2]; String body=args[3]; send(smtpServer, to, from,body); } catch (Exception ex) { System.out.println("Usage :\njava SimpleSender server to from body"); } System.exit(0); } public static … | |
In my cdrom class I have a member function called returncost, and a private data member cost. [code] float cdrom::returncost() { return(cost) } [/code] Later, in a free function I call that member function to calculate a total cost and average cost. [code] void showcosts (cdrom &cd1, cdrom &cd2, cdrom … | |
basically what i am doing is building a c# app which allows users to open up html files and in between the certain tags find the contents. So it has to: - read start tag, example: <object> - read stop tag, example: </object> - take text which is in between … | |
I'm trying to update multple queries but the update is not working. here is the code.... [code] if (isset($_POST['btnSub'])) { // Preset counter $p and switch $sw to 0 $p=$sw=0; // Create UPDATE queries foreach($_POST["entry"] as $data) { $sql[$p]="UPDATE major SET "; foreach($data as $key => $value) { // Save … ![]() | |
[code=cplusplus] bool fun1() {if (root) return doFun1(root); else return false;} bool doFun1(Node *ptr){ if(ptr->left) doFun1(ptr->left); if(ptr->right) doFun1(ptr->right); if(ptr->left) doFun1(ptr->left); ptr->data=ptr->data*7; if (ptr->data>500) cout<<.5*ptr->data<<endl; else if (ptr->data<50) cout<<5*ptr->data<<endl; return true;} int main( ) { Tree t; t.insert(14);t.insert(13);t.insert(31);t.insert(27);t.insert(12); t.fun1(); return 0;} [/code] I am trying to trace through this and the output … | |
If I have a class called cdrom, and one of the member functions is loadinfo, what is the difference in these calls? cd1.loadinfo cd1->loadinfo I ask because my compiler is choking on the first and actually asking me if I meant to do the second. | |
Hi , this is the first time i ask for help here i have been searching for a good place to ask and i found daniweb i hope i be right of what i am thinking . and to get help from you guys. thank you here is the question … | |
Sorry I got the answer Dats y i delete it the question. But I do not know how to delte the thread... | |
Hello!!! I want to make a web site, and first I want to make the log in page using Login control from ASP.NET and I want to take the users from a database. Thanks for helping!!! | |
I'm trying to figure out how to input metadata into a tiff file, and my general web searches are just confusing me. Is there anyone that can point me in the right direction? I'm essentially trying to pull data from an excel file and use that as the metadata for … | |
I'm working on a program that reads a file of scores and then outputs the number of scores in certain ranges. I've got it to read the input file (scores.txt) which is set up as follows; 76 89 150 135 200 76 12 100 150 28 178 189 167 200 … | |
Hi All, I am a student and this is a project I am working on. The main idea is that this program will calculate the number of months it will take to pay off a loan. There are catches in place to only allow positive entries and to check to … | |
Hey all, I'm new at programming with Python and thru reading different documentation, I built a small program (handler), that I want to accept calls from other scripts to log to file and console, depending on the level passed in. I'm able to get the error message to show up … | |
I am new to php and am getting the following error; Parse error: syntax error, unexpected '+', expecting T_VARIABLE or '$' in… on line 14. Here is the code; [code=php]<?php /* Subject and Email Variables */ $emailSubject = 'Monthly attendance report'; $webMaster = 'phil@coxwebink.biz'; /* Gathering Data Variables */ $ChurchField … | |
Specifically, specific elements. A project requires us to delete elements in a vector via course number. I assumed one would use an iterator, so that being said, would this work? [CODE]void student::drop_course(int d) { vector<int>::iterator f = find(c_id.begin(), c_id.end(), d); vector.erase(f); cout << "You have deleted course number " << … | |
I have a website adding orders to my database. These start at 10000000 and increment by 1. I have pieces of paper sent out in advance with order numbers on them. These start at 50000000 and increment by 1. We get batches of paper orders brought back and need to … | |
I am working on one-dimensional arrays for class assignment. I don't think I have this right. Can someone check this: The question is: Write the c++ code that will count the number of elements in an array (named number) of base type int. that are equal to a key value … | |
Often in a code snippet, I will see [code] printf("%d %2d %3d", i,i*i,i*i*i); [/code] What does putting the numbers in front do, since it works the same without them? (ie) [code] printf("%d %d %d", i,i*i,i*i*i); [/code] | |
i am trying to write a function so that when a user enters onto a page selected images change with each page that is entered. the page uses an iframe to load the new data so i need to swap the images on the main page which holds the iframe … |
The End.