199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Archo

Hello! I am a n00b to both PHP and Javascript, so please bear with me... I have a form and I use Javascript to validate the form. If there is an error on the for it displays the appropriate alert. The problem I have is when I click "OK" on …

Member Avatar for Archo
0
305
Member Avatar for sgweaver

I'm somewhat new to PHP. I'm not sure how to point to the root of my web site in a function. I was using $_SERVER["DOCUMENT_ROOT"], but when I use it in my function it comes back: "http://mywebsite.com/var/www/html/mypath" Note - this is in the HTML - other parts of the function …

Member Avatar for diafol
0
204
Member Avatar for newcpp

I have a problem about std::vector as member of class, I'm not clearly about the initialization mechanism [CODE=c++]#include <iostream> #include <vector> using namespace std; class Obj; //this is a Class object class Grid { public: Grid( ) { } ~Grid( ){ } protected: private: vector<Obj> v1; //initialization mechanism ? and …

Member Avatar for newcpp
0
7K
Member Avatar for veledrom

Hi, I use PHP and have a question. As cookies and sessions have their pros and cons, I don’t know which one is better for shopping card. If I use cookie then user my block it. Therefore, my e-commerce web site won’t serve the purposes. If I use session then …

Member Avatar for almostbob
0
97
Member Avatar for Darkangelchick

Hey guys I have to analyse a short program for school and the only keyword i cannot find a definition for if ORG. What does this do in assembly code?? Any help would be appreciated. Thanks

Member Avatar for jephthah
0
136
Member Avatar for CppBuilder2006

Hi I have a question. [COLOR="Red"]The aswer is very short [/COLOR]I think. I got many different useful helps in different forums but [COLOR="Green"]still[/COLOR] my main question is [COLOR="green"]not answered clearly[/COLOR]! MY QUESTION: Can a [COLOR="Green"]not inline[/COLOR] [COLOR="Red"]method[/COLOR] have [COLOR="Red"]internal linkage[/COLOR]? This question is simple & clear (if you don't think …

Member Avatar for CppBuilder2006
0
332
Member Avatar for reisende

Hi everyone, I've been combing the message boards for the last few days trying to find something that will work for me, but to no success. I had 0 experience with XSLT before this which definitely doesn't help out in the search but I am determined to learn. What I've …

Member Avatar for reisende
0
153
Member Avatar for Aelphaeis

ok, I have a very serious somewhat simple problem that I just can't seem to figure out myself. Simply put I want to make a program take the lines Hello How Are You ToDay and output ToDay Are You How Hello Using the End of data marker as a newline …

Member Avatar for Narue
0
294
Member Avatar for c_skyscraper

hi guys, I have one table: exams(e_no integer primary key,e_name text); now i want to create another table called questions which should have primary key that is combination of exam.e_no (foreign key) and question.q_no questions(q_no,e_no,questions text); so i would like to make q_no and e_no both act as primary key …

0
76
Member Avatar for cruisx

hi guys, new to c++ here. So we have a school project due tomorrow, a hangman game of sort and i just wanted to go a bit above the required so i thought i would put in a message box. Now i got the working and all but the thing …

Member Avatar for dubeyprateek
0
178
Member Avatar for bokz06

problem i'm having is getSelectedRows() and getSelectedColumns().... they dont return anything when i select the rows. am i doing it wrong? i need it so when the button is pressed to output the selected strings[] [CODE]import java.awt.BorderLayout; import javax.swing.JFrame; import javax.swing.JScrollPane; import javax.swing.JTable; import javax.swing.*; import javax.swing.table.AbstractTableModel; import java.io.*; import …

Member Avatar for JamesCherrill
0
2K
Member Avatar for Usura

it is possible to change the colour of the font in the terminal by using come sort of code, not sure of the correct term, what im after is like cout << "hello" << endl; and hello would be bold or a different colour, can that be done?

Member Avatar for dubeyprateek
0
105
Member Avatar for hunterm

I thought I understood how tuples work, but that is not the case. [code=python] lose = ['skldhf', 'laweoirht', 'skdljhflkjhs'] print lose [/code] How would I get it to print of the three phrases randomly? No, those aren't what I will be actually using, I just haven't come up with what …

Member Avatar for hunterm
0
119
Member Avatar for ShadowScripter

Greets, A string array in C++ can be initialized, just like everything else. With that in mind, how do you count the number of items in the array? I mean, how many rows? Let me give you an example using Char arrays (having two dimensional since it's not like string) …

Member Avatar for ShadowScripter
0
98
Member Avatar for Sam_Surrey

Hi guys, i have been having problems with this piece of code all afternoon, i have never seen this error myself before and cant see how the problem is applicable in my situation from looking though the various forums of the world ! Basically the program is a small game …

Member Avatar for Sam_Surrey
0
129
Member Avatar for gretty

Hi I have to create a program that takes in 2 arrays (each array containing 5 values). The program will check whether the 5 values of array one contains the same values of array 2. I have done everything to make this program work [B][I]except[/I][/B] ....[B]how write an algorithm that …

Member Avatar for siddhant3s
0
4K
Member Avatar for squinx22

Hello all! I have some troubles in saving a file by byte chunks, (will use in saving large file size.). My goal is to chunk the file bytes first into a certain size before writing. I have this code: [code=java] FileConnection fc = (FileConnection) Connector.open("file.ext", Connector.READ); InputStream fis = (InputStream) …

Member Avatar for JamesCherrill
0
89
Member Avatar for CommanderOne

Hey, I'm new to the language and was hoping someone could give me a bit of a hand. [language=code]def common_elements(list1, list2): """ Return a list containing the elements which are in both list1 and list2 >>> common_elements([1,2,3,4,5,6], [3,5,7,9]) [3, 5] >>> common_elements(['this','this','n','that'],['this','not','that','that']) ['this', 'that'] """ list3 = [] for item …

Member Avatar for CommanderOne
0
89
Member Avatar for ice_cool

Hello, I am currently doing an assignment which requires the use of hashmaps. The game is called "zuul" which is a text based game. A player class can pick up and drop items and if an item is picked up, the item is taken away from the rooms hashmap and …

Member Avatar for kvprajapati
0
1K
Member Avatar for Fritzli

I'm doing a Sudoku GUI in C#. All 81 textboxes are created at runtime. Their names are 11, 12, 13...19,21...98,99 respectively. At beginning the focus is in the textbox that has internally the name "11". I wish to navigate with the arrow keys. I.e. with the downkey I want to …

Member Avatar for Fritzli
0
937
Member Avatar for midnightdesire

Hi all! I created a form for a website I'm building for a friend; and he wants to be able to have the form information submitted to him via email. The problem is that when the information is submitted, the items are coming up with the names, not the label …

Member Avatar for Airshow
0
99
Member Avatar for tanmoy_india

I summarised my problem by a simple example,anyone plzz ans this...then I will be able to understand my problem.......: Suppose in a database named "DATABASE"..there is a table called "XYZ"..it has 4 rows named "T1,T2,T3,T4"..one primary key named "T_id"..now what I want that to access this same table via different …

Member Avatar for tanmoy_india
0
86
Member Avatar for spectrum6125

Alright so I'm working with a program that works with various email programs and I'd like to use it to automate the login process. I know I can open a browser using ShellExecute(NULL, "open", "https://various.email.com/", NULL, NULL, SW_SHOWNORMAL); but how would I actually parse the login/password strings into the text …

Member Avatar for Sky Diploma
0
115
Member Avatar for anandarju

I need to know how to access two tables which has some reference values within the table.I need the Java Code to Fetch Both the tables values which are same and have to display it

Member Avatar for kvprajapati
0
92
Member Avatar for lkw8888

Timeout doesn't work properly.. is there any problem? with my source.. These are relevant source for the TimeOut Thread.. [code] /////////////////////////////////////////////////////////////// public ChatJin() { //Find Local IP Address & Name try { InetAddress myInet=InetAddress.getLocalHost(); System.out.println("My InetAddress "+myInet.getHostAddress()+" name "+myInet.getHostName()); } catch(UnknownHostException e) { System.out.println("InetAddress Error on Port "+8000+" Error code …

Member Avatar for JamesCherrill
0
94
Member Avatar for cool_aj

[code=java] import java.util.*; public class Coin { private Random randomNumbers = new Random(); // flips a coin many times public void flipCoins() { Scanner input = new Scanner( System.in ); int heads = 0; int tails = 0; int choice; do { // display a menu System.out.println( "1. Toss Coin" …

Member Avatar for verruckt24
0
95
Member Avatar for effective

You are to design a class class called Employer data members: char name[] long int ID double salary , and two constructors _Default construtor Person () _Copy constructor Person ( char n[30],long int id,double s) _setPerson (char n[30],long int id,double s) that allows user to set information for each person …

Member Avatar for ithelp
0
107
Member Avatar for matrix2

24.21 (Modifications to the Multithreaded Tic-Tac-Toe Program) The programs in Fig. 24.13 and Fig. 24.15 implemented a multithreaded, client/server version of the game of Tic-Tac-Toe. Our goal in developing this game was to demonstrate a multithreaded server that could process multiple connections from clients at the same time. The server …

Member Avatar for ithelp
0
354
Member Avatar for perlguy

I'm trying to append a string to an array value and it doesn't seem to be working. Can someone tell me what I'm doing wrong? The array values will be URLs with a trailing forward slash. [url]http://www.mywebsite.com/Details/product-type/New-York-293486/[/url] $values[10] .= '?cid=spontrue';

Member Avatar for KevinADC
0
126
Member Avatar for Project_Panda

Hello, I unfortunately failed my advanced c++ class last semester so I need to retake it. Our first assignment is to "Define a base class person that will contain universal information, including name, address, birth date, gender and identification (student, worker etc). Derive from this class the following classes: Student …

Member Avatar for ithelp
0
116
Member Avatar for kenji

Hey, I have used the LWP:\:Simple module and saved the source of a website in a file. I am trying to extract all the data between the <head> tags and pass it to a variable to process. So far I can't seem to extract the data properly. Any suggestions? [code=Perl] …

Member Avatar for KevinADC
0
168
Member Avatar for Bernard Kane

I am using MS VB 2008 Express Edition I have a form that allows users to put details in various text boxes associated with a database. The form has the usual VB tool bar buttons such as add new, Save and so on. What I want is that when the …

Member Avatar for Bernard Kane
0
120
Member Avatar for Reg74

Here's my function that i call from main. However i'm getting an error "stackType undeclared" Does anyone know what i'm doing wrong ? [CODE="CPP"] template<class Type> void removeX(queueType<Type>& Q) { stackType<Type> stackQ; while (!Q.isEmptyQueue()) { stackQ.push(Q.front()); Q.deleteQueue(); } } [/CODE]

Member Avatar for Reg74
0
91
Member Avatar for hydravien

Hi, I am hopign someone will take this on as a simple little project as it would be of great help to me. I have a CNC plasma machine which cuts sheets which are about 4ft by 10ft. however, sometimes we only use about 4*4ft of the sheet. I would …

Member Avatar for nexocentric
0
193
Member Avatar for clutchkiller

I am writing an app right now that needs winmm.lib. I tried typing winmm.lib in the project properties under the correct section, but kept saying that does not exist. So i did a little research and found that if i type -lwinmm it works. I am using dev-c++. Can anyone …

Member Avatar for clutchkiller
0
115
Member Avatar for punithapary

Hi, I am trying to upload my images using my ftp folder by php code.Begining it was worked very fine.recently i shifted my domain from one server to another one server now if i am trying upload any images it storing path into database and its not uploading that image …

Member Avatar for punithapary
0
190
Member Avatar for shea279

I'm looking for some sample code which would demonstrate AES encryption using SHA 256 as the hash. 1 or two .cpp or .h files would be appreciated, I prefer not to mess with huge libraries or folders of unnecessary headers. I looked on google and found a semi-functional AES example, …

Member Avatar for ArkM
0
152
Member Avatar for iconz113

can someone help me create pseudocode. Im writing pseudocode representing a payroll application, this includes over time hours, payrate, tax and social security deductions. I need to now incorporate.................................... Your pay calculation pseudocode must be changed to accept input from a file. You need to read each record from the …

Member Avatar for ArkM
0
243
Member Avatar for trung_a10

Here is my code.... #include "stdafx.h" #include <iostream> using namespace std; #include <iomanip> int _tmain(int argc, _TCHAR* argv[]) { int a,b,c,d; cout << "Previous odometer reading: "; cin >> a; cout << "New odometer reading: "; cin >> b; cout << "Gallons added to the tank to fill: "; cin …

Member Avatar for Nick Evan
0
80
Member Avatar for rajeesh_rsn

Hai all , I had a from in a php page with 3 fields. ie username, name and email. I have to do a form validation using javascript. My code is like this. [ICODE]<script language="javascript"> function Validate_form(){ if(document.getElementById('user_id').value.length<=5){ document.getElementById('user').className="error_msg2"; document.getElementById('user').innerHTML='Username must have minimum 6 chars.'; return false; } else{ document.getElementById('user').innerHTML=''; …

Member Avatar for mail2saion
0
105
Member Avatar for vikaschndr

Hi, I have created a windows service in Visual studio 2005 C++, which will encrypt a file and send it to a server using socket. For this I am using OpenSSL, I am running in to following issues 1) I could not find the library method of OpenSSL which can …

Member Avatar for vikaschndr
0
169
Member Avatar for anandarju

I need to know how to access two tables which has some reference values within the table.I need the Java Code to Fetch Both the tables values which are same and have to display it

Member Avatar for hardik.rajani
0
101
Member Avatar for BombAppetit

Anyone here has experience making a PIC based pointing device that can interface with the PC using PS/2 mouse port? Can I have a look at an example of the codes and circuitry? I'm working on creating a prototype of a new pointing device, just as a uni project, and …

Member Avatar for murthysharma
0
214
Member Avatar for bhanu1225

Hello All. I created a login form, which has two fields named "USER ID " & "PASSWORD". Here, i took 8 character length for USER ID field. I would like to take "THE" as first three characters as constant in USER ID field. So, is it possible to do it? …

Member Avatar for bhanu1225
0
77
Member Avatar for zoner7

There is clearly something wrong with the else statements in this code. This program essentially mirrors the attack/defense rules in the game risk. The attacker roles 3 times. The defender 2. The best two roles of the attacker are taken and compared to the defender's two roles. The defender wins …

Member Avatar for zoner7
0
93
Member Avatar for nalasimbha

Hi, I am trying to extract data from a text file into an array or even a vector. The example data in the file "data.txt" is in the following manner Home number = 123456 Mobile number = 789012 Office number = 567987 Balance = 46.56 ... ... ... I want …

Member Avatar for Lerner
0
240
Member Avatar for rownak
Member Avatar for MosaicFuneral
0
78
Member Avatar for yssirhc

I have a web page that prints information from a database based on the query string variables. Sometimes the page loads just fine and other times it gives the message "Use of uninitialized value" for every single one of my database variables. The times it gives this message seem to …

Member Avatar for katharnakh
0
156
Member Avatar for stix

hello, i never used ajax and now i need it :-P i need monitor iframe on page. user open my page with some information and iframe. in this iframe user must register on other pages and i need to know iframe url to redirect iframe to other pages after complete …

Member Avatar for itsjareds
0
84
Member Avatar for cguan_77

hi, can anyone help to explain this code.. or is their an equivalent vbscript for this code? please help...don't know about javascript.. thanks in advance.. [code] if(arguments.length == 3){ var result = "<" + arguments[1] + ">"; for (var i = 0; i < arguments[2].length; i++){ result += "<li>" + …

Member Avatar for essential
0
131

The End.