199,114 Archived Topics
Remove Filter ![]() | |
i want to send variable from one page to other in php and iam using session, but the variable doesn't appear in other page. iam using this code : page 1: <?php session_register('number'); $number =10; header("Location: page2.php"); ?> page 2: <?php echo"number= ".$number; ?> | |
Hi All, Can any one help me out by giving the code for javascript calendar. Thanks in advance. | |
I am studying for a C++ exam and the study guide says "Be able to initialize arrays using literal arrays." Ok then, so I think well yeah that is easy, a literal array is something like.....Wait, I have no idea what a literal array is! From what I can find … | |
Hi All. I create a accounting Program, and have so many module like sales, purchasing etc. I want to break my program to some program that linked each other. How i can make this happens? For exampled i build main application that have user management, and friends of mine build … | |
Hi all, I m new to asp.net . I am getting problem in using a dll residing on webserver from webservice. I m getting the following error. "Retrieving the COM class factory for component with CLSID {83767D91-FAC8-471D-935A-1A3D04D779C0} failed due to the following error: 80070005." Though the DLL is registered on … | |
Ok, the program is supposed to take a .DATA file of names and quiz grades, and then display all the grades and the averaged grade score. Now, I have most of it working, all I need to do is use a single dimensional array to read the list and calculate … | |
-- If you know of a shorter way to do this .. post away plz -- the nightscost and totalcost cause erros ( call to undefined function ) -- get a fair amount of warnings, but i can live with warnings [code=cplusplus] #include <iostream> #include "Thefunctions.cpp" using namespace std; int … | |
I have succesfully done this but with one error. using ... ifstream input("infile.txt",ios::in) while(input.good()) { input.getline(file,100); outputfile<<file<<endl; } then I have some new code that writes this into another file. You may laugh when you hear this but the problem is that it add an extra line to the output … | |
[code] Here is what I am trying to accomplish: an image management system, that will: a: Store the name and url inside the database b: be displayed where needed. I have a form that already uploads, but I am unsure how to get the disered information to the database, and … | |
Hi, I would like to ask if anyone knows how can I delete empty lines from a file. I thought that I have to crate a loop like [code] FileInputStream fstream = new FileInputStream("input.txt"); DataInputStream in = new DataInputStream(fstream); BufferedReader br = new BufferedReader (new InputStreamReader(in)); String strLine; while(br.readline()!=null) { … | |
Hi all. I am having a hard time trying to properly declare a header for my assignment overload operator function. My prototype for the function is: [code] const BSTree<T>& operator=(const BSTree<T>&); [/code] And my attempt to write the header for the method is as follows: [code] template <class T> const … | |
.,'is any knows the code to delete a directory in java... help me pls... YOUR ANSWER IS HIGHLY APPRECIATED!.. | |
Using java and netbeans to write a query How does the (:) colon change this String? [ICODE]String partial=("SELECT c FROM content c WHERE c.artist LIKE \"%" + like + "%\""); String partial=("SELECT c FROM content c WHERE c.artist LIKE \"%" + :like + "%\"");[/ICODE] | |
This is my second time taking C++ course and I'm about to fail again since I'm barely hanging on with a C-D grade percentage. Here is the problem. I'm using the book "Beginning C++ Through Game Programming - 2nd Edition" and Dev-C++ to compile code. I'm not even majoring in … | |
[CODE] const SimpleCat * const FunctionTwo (const SimpleCat * const theCat);[/CODE] Ok so this is a function declaration. I'll pose my questions numbered so it is easier. I'm taking an online course in C++ but got stumped on this line of code. 1. The return type is of type SimpleCat … | |
Hi, everyone. This is my first post. I'm just getting started, really. I took a computer science class this last semester and the professor's program of choice was Microsoft Visual Studio 2005. I enjoyed playing around with the codes, but I noticed that when making things for my own amusement … | |
I have a CheckedListBox1 that contains checked and unchecked Items. What I am trying to do is to save everything into a vector. Like below, I can save all Items Text into vector<string> TextInfo but what I am trying to do is also for each Item save if that specific … | |
I been seening ajax all over the place. The only time I have used is in the news feeds script I got from dynamic drive. The first question I have, is do you need to have a database dns sort of thing to be able to begin learning it. Where … | |
Hi, When I execute queries which have a lot of data returned in the recordset my VB app seems to hang (IE: This program is not responding) I'm using ODBC to connect to the database and am using Postgres DB [CODE] Public db_name As String Public db_username As String Public … | |
Hey All, I have a simple query form that displays from a mysql database, a list of names and phone numbers. What i'd like is a column heading at the top of the page but I can't seem to figure out how to put it in there. Here is my … | |
Hi... I looking for a way to hide application from the Task bar bottom line and i need to accomplish it by using the application executable name only... All information that i have it the process name which runs in the task bar Ive googled for a while but haven't … | |
Hi! It's been a while since i last posted, and now I'm in need of some expert assistance. I've found this Control written in C# with .NET 1.0 on vbAccelerator and wanted to use it with my current project. I decided to convert the entire code to VB.NET but one … | |
I am searching for a string in a textbox in my web application. My output must be the line number of where the string can be found in the textbox. To find the string in the textbox i am using IndexOf (which helps me make sure if the string is … | |
i am trying to write code for my function project but i get errors can somone tell me if i am on the write track at least [code=cplusplus] #include <iostream> #include <iomanip> #include <string> using namespace std; //fn prototype for passing num of students in class // *** void DisplayStudent(double … | |
I have a CheckedListBox with 95 Checked Items and 5 Unchecked Items. Every Checked and Unchecked Item has a "string" name. What I am trying to do is to locate All the Unchecked Items in this box and put these strings into my vector with the pushback method: Unchecked.push_back(); The … | |
The Microsoft write-ups for Visual Studio 2008 said that it can target various version of .NET. However, it seems to set up all projects to target NET 3.5. Does anyone know how to make it target earlier NET versions? | |
I am currently doing a project which consists of a Priority Queue. I have to simulate two boarding procedures of an airline. Rows 1 through 4 are first class seats (4 seats in each row) Rows 5 through 26 are coach class seats (6 seats in each row) Rows 10 … | |
I have 2 buttons on my Form. My question is if button1 can activate button2 in any way. Is it possible to write any code inside button1 that will execute/activate the code inside button2 ? | |
Hello all! I am trying to create a form like structure using Swing to enter data into MySQL database. I have a combo box that has a list of items to be chosen. If the user does not find the option that he needs, he can choose 'Other' as an … | |
I have writtten a program and it is compiled smoothly. However when I try to run the program, the console just comes out a while and then closes. I don't even have chance to type in commands and the commands will be recorded by **argv. int main(int argc, char **argv) … | |
-------------------------------------------------------------------------------- Hello I am Using Vb.Net 2005 And Sql2005 See This [CODE] Dim RsSave as new adodb.recordset RsSave.open "Select * From Table Where 1=2 ",Con,CursorTypeEnum.adOpenDynamic, LockTypeEnum.adLockOptimistic con.Begintrans RsSave.AddNew RsSave.Fields(0).Value = textbox1.text RsSave.Fields(1).Value = textbox2.text RsSave.Fields(2).Value = textbox3.text RsSave.Update Con.Commitrans [/CODE] This Just eg for saving to databse using Adodb connection … | |
Hi, Not sure if I'm doing something stupid here or not, I want a map of integers and objects (Rooms) which I've done, but whenever I create a new room to add to the map it appears to use the same memory location as the previous Room(s). The upshot being … | |
I am wanting to learn more about ajax. But I don't know if you need a database the server to be able to learn it. Since I don't have one of those. I am not sure if I should move on to something else. Where would be the best place … | |
Hey guys, i've got a right headache from this piece of code at the moment, it's a simle login script and it just sin't working, the MySQL query looks correct to me and all the other stuff looks ok, but then again i'm no PHP expert. Could someone look at … | |
Hello , Please I want some help in making this small program : the program looks for 3 or more repeated similar letters and replaces them with two characters , the first is the letter itself ( value ) , and the second character is the number of times it … | |
Hi,all everybody :) I just curious how C can be made. Do any of you know it?? | |
Can someone help me figure out why this .form compiles yet the query to perform a search throws this error? I have one entity manager,at startup "query and list set the table with all data from [ICODE]<splashtemplateda.Content>[/ICODE] combobox and textfield and button(action) should config search specs and refresh table with … | |
i have here this constructor used 2 display a bitmap [CODE] void bitmap::display() const { for (int r = 0; r < numrows; r++) { for (int c = 0; c < numcols; c++) { if (grid[r][c] == 0) cout << " " ; else cout << "*"; } cout … | |
Hello Experts I have a CF app (MX 6.1) that creates a text file, inserts some data (mainly numerical values along with a text header and footer), zip/encrypt/password protect with Winzip command line and then email to a 3rd party and CC some users. When the text file is opened … | |
I've created, and written to a file. It lets me do all of that just fine, but when I try to delete the file it says that I do not have permission. Is there something wrong with my code?: [code] #include <cstdlib> #include <iostream> #include <fstream> using namespace std; int … | |
I was wondering if anyone could help me with what should be a simple PHP script. I want to write a text file, inputing different strings to different lines using some predefined lines and some input from a text box, then save it with another extension (such as .ini). Here's … | |
I am an employee at Scottrade (competition with etrade if you guys have not heard of it) and they had me start out as an intern then joined the help desk starting this summer. In the fall I will be graduating from McKendree University with a B.S. in Computer Information … | |
Hi. I am using WAMP5 Version 1.7.2, which includes : 1. PHP Version 5.X 2. MySQL Version 5.X 3. Apache Version 2.X 4. Php-MyAdmin But it does not recognize DB.php file, I dont why...I get the following error [B] failed to open stream: No such file or directory in F:\wamp\www\XXX[/B] … | |
what are the differences between these two type of commands: 1- >>> import socket 2- >>> from socket import * i mean when you get the object list from the first command it gives different object from when you get objects from the second command. so does it mean these … | |
all work perfectly just the substraction here's the code: [code=pascal]Program calculation; uses wincrt; Procedure menu; Begin Writeln('Options:'); Writeln('1. Addition'); Writeln('2. Subtraction'); Writeln('3. Mutiplication'); Writeln('4. Division'); Writeln('5. Exit'); End; Function GetUserInput(msg:string):integer; Var UserInput:integer; Begin Write(msg); Read(UserInput); GetUserInput:=Userinput; End; Procedure Add; var add:integer; Begin clrscr; add:=GetUserInput('Enter another number:')+GetUserInput('Enter a number:'); writeln('Result=',add); End; … | |
Hey all, I'm looking at building a website that allows photographers to login and upload images to galleries, while another type of user can signup and buy images from those photographers. The problem is I've come up against my age-old rival. I haven't been able to get my head around … | |
Hi all, I am getting Null pointer exception while getting other applet in the same page, can guide what i am doing wrong here is demo code [code] // First applet import java.applet.Applet; public class Applet1 extends javax.swing.JApplet { Applet applet1 = null; public void init() { try { java.awt.EventQueue.invokeAndWait(new … | |
Hi everyone and thanks for taking the time to read. There's a specific section of my website that I would like to be dynamic. It has the possibility of having one or two paragraphs, possibly even more. What I had done was set up a MySQL database with a field … | |
Does anybody ever succeed writing USB device from DOS ? Thx for a reply | |
Hi all, Need some info on "how to use or implement timers/threads/polling mechanism in c language". Need to run the same piece of code on both platforms(windows + linux). Can anyone of you guys suggest me something :) Thanks in advance! ~Manoj |
The End.