199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for almualim

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; ?>

Member Avatar for almualim
0
87
Member Avatar for vganeshvenu

Hi All, Can any one help me out by giving the code for javascript calendar. Thanks in advance.

Member Avatar for codebreaker
0
117
Member Avatar for Squeeker

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 …

Member Avatar for Squeeker
0
185
Member Avatar for andrewblack

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 …

Member Avatar for andrewblack
0
114
Member Avatar for manjusaharan

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 …

Member Avatar for manjusaharan
0
74
Member Avatar for YJ1994

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 …

Member Avatar for corwing
0
102
Member Avatar for dazed&confuzed

-- 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 …

Member Avatar for dazed&confuzed
0
111
Member Avatar for scarface3288

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 …

Member Avatar for scarface3288
0
87
Member Avatar for Vai

[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 …

Member Avatar for Vai
0
100
Member Avatar for katerinaaa

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) { …

Member Avatar for alpe gulay
0
5K
Member Avatar for tones1986

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 …

Member Avatar for tones1986
0
93
Member Avatar for alpe gulay

.,'is any knows the code to delete a directory in java... help me pls... YOUR ANSWER IS HIGHLY APPRECIATED!..

Member Avatar for alpe gulay
0
151
Member Avatar for ceyesuma

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]

0
69
Member Avatar for Zubb

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 …

Member Avatar for Ancient Dragon
0
180
Member Avatar for zsamus.love

[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 …

Member Avatar for bugmenot
0
88
Member Avatar for sonic_geezer

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 …

Member Avatar for sonic_geezer
0
87
Member Avatar for Jennifer84

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 …

Member Avatar for Jennifer84
0
153
Member Avatar for fluffythebunny

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 …

Member Avatar for KenK
0
116
Member Avatar for danielgee

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 …

Member Avatar for Oxiegen
0
166
Member Avatar for rickarro

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 …

Member Avatar for rickarro
0
116
Member Avatar for vedmack

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 …

Member Avatar for Ancient Dragon
0
113
Member Avatar for Oxiegen

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 …

Member Avatar for Oxiegen
0
224
Member Avatar for mjzammit

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 …

Member Avatar for Ramy Mahrous
0
88
Member Avatar for rock9449

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 …

Member Avatar for VernonDozier
0
99
Member Avatar for Jennifer84

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 …

Member Avatar for Jennifer84
0
649
Member Avatar for fishsqzr

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?

Member Avatar for scru
0
104
Member Avatar for ladyj4480

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 …

Member Avatar for ladyj4480
0
177
Member Avatar for Jennifer84

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 ?

Member Avatar for Jennifer84
0
260
Member Avatar for nadhi

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 …

Member Avatar for nadhi
0
94
Member Avatar for ddt99999

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) …

Member Avatar for ddt99999
0
103
Member Avatar for mafaisal

-------------------------------------------------------------------------------- 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 …

Member Avatar for manal
0
141
Member Avatar for inamabilis

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 …

Member Avatar for inamabilis
0
99
Member Avatar for fluffythebunny

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 …

Member Avatar for fluffythebunny
0
61
Member Avatar for mortalex

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 …

Member Avatar for blocblue
0
149
Member Avatar for quecoder

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 …

Member Avatar for quecoder
0
142
Member Avatar for Little Princess

Hi,all everybody :) I just curious how C can be made. Do any of you know it??

Member Avatar for oi2005
0
107
Member Avatar for ceyesuma

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 …

Member Avatar for ceyesuma
0
175
Member Avatar for shotjase

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 …

Member Avatar for Salem
0
95
Member Avatar for jamba

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 …

Member Avatar for jamba
0
143
Member Avatar for server_crash

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 …

Member Avatar for Salem
0
249
Member Avatar for dmanw100

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 …

Member Avatar for nav33n
0
106
Member Avatar for jimJohnson

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 …

Member Avatar for Salem
0
107
Member Avatar for tanha

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] …

Member Avatar for tanha
0
165
Member Avatar for s_jmp

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 …

Member Avatar for sneekula
0
158
Member Avatar for manutd4life230

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; …

Member Avatar for manutd4life
0
120
Member Avatar for uncoversports

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 …

Member Avatar for Will Gresham
0
144
Member Avatar for dayanandabv

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 …

Member Avatar for dayanandabv
0
154
Member Avatar for antwan1986

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 …

Member Avatar for Will Gresham
0
123
Member Avatar for xzaqwer
Member Avatar for Asat232
0
99
Member Avatar for manojkumar2004

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

Member Avatar for manojkumar2004
0
411

The End.