64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for Yeen

I ran into a something I did not expect when making a small program. I'm not including the whole program, just exemplifying the stick in the wheel, as it's part of a homework assignment. I'd just like some clarification on why the last "x = 1" is ignored. [CODE] x …

Member Avatar for pspwxp fan
0
101
Member Avatar for dangari

I have already implemented AJAX (DWR) in a web application.My concern is that I don't want the users to lose the efficiency of AJAX simply because browser settings have disabled javascript.Already I have seen someone who has hinted on using degradable AJAX to implement AJAX regardless of whether javascript is …

Member Avatar for Airshow
0
183
Member Avatar for sumit007

Hi I m making web page and for that i am using mysql and php. In tha i enter data and that is to be stored in mysql database. I m having a problem in that. I want add, delete, previous, next, cancel and update button in that. But can't …

Member Avatar for sumit007
0
1K
Member Avatar for MattyRobot

I have been trying to get world coordinates of the cursor position for a program by: [LIST=1] [*]getting the top and left position of the client of the window [*]getting the global position of the cursor (GetCursorPos()) [*]cursor x - client left and cursor y - client top [*]zoom x …

Member Avatar for MattyRobot
0
96
Member Avatar for ricksvoid

Ive successfully managed to bind my DropDownList control to the membership.getAllUsers class. The problem is, no matter who i select from the list, it always returns the same value which is the first selection. Is this some kind of postback issue? Yikes! [CODE] Protected Sub fillDropList(ByVal sender As Object, ByVal …

Member Avatar for ricksvoid
0
838
Member Avatar for dandixon

Can anyone recommend a course for a php beginner, ive been doing alot in html and a few bits of search and forms stuff in php which has all been self taught but i want to go on a course to confirm really that im doing stuff right can anyone …

Member Avatar for dandixon
0
85
Member Avatar for SCoder1

Hi I can't seem to get this right I've looked online but I can't find the right page. I'm trying to make a simple program that takes a number but what if a character is entered. Well so far I get "140" as an answer. Here's what I mean in …

Member Avatar for SCoder1
0
97
Member Avatar for culebrin

Hi, I'm developing an AJAX website, and I want to make it compatible with most browsers and its many versions in the market. I've been using IE, FF and Chrome, for many years, and I know his popular versions (not everyone updates, you know), but I never used Opera, and …

Member Avatar for culebrin
0
173
Member Avatar for Facte

Hi there everyone. I have a problem with some PHP. I have to make a xml feed that works in IE in UTF-8 format and I'm having major problems with £ signs and '. the poud signs are in the mySQL database in their £ format and cannot be changed. …

Member Avatar for joles
0
179
Member Avatar for jrosh

[CODE] tdate= new JTextField(); tdate.setBounds(200,25,134,20); java.util.Date date = new java.util.Date(); DateFormat df = DateFormat.getDateInstance(); String s = df.format(date); a = s.split(" "); a2 = a[1].split(","); //a[0]=oct , a[1]=27, , a[2]=2009 , a2[0]=27 , int mon=0; if(a[0].equalsIgnoreCase("jan")){ mon=01; }else if(a[0].equalsIgnoreCase("feb")){ mon=02; }else if(a[0].equalsIgnoreCase("mar")){ mon=03; }else if(a[0].equalsIgnoreCase("apr")){ mon=04; }else if(a[0].equalsIgnoreCase("may")){ mon=05; }else …

Member Avatar for masijade
0
92
Member Avatar for rouse

I am cycling through a return set and trying to capture the result in a concatenated string. I have verified that I get a valid return value and also verified the quantity in the return value. This works [code] while ( $i < $num) { $bone .= "<item> <record_num>" . …

Member Avatar for rouse
0
62
Member Avatar for neilsam

im working on a program for my exams and its not really working.....cant really figure out why........i ran my program in both borland and turbo.....and both are giving the same error......DECLARATION SYNTAX ERROR. [CODE]void mul(int a[][3],int b[][3]) {int k=0; for (i=0;i<3;++i) { for(j=0;j<3;++j) { c[i][j]=0; for(k=0;k<3;++k) c[i][j]=c[i][j]+(a[i][k]*b[k][j]); //Multiplication of two …

Member Avatar for neilsam
0
114
Member Avatar for saj_amo

i have a text box, control botton and a datetime picker i want that if i write 2 in textbox and press button then datetimepicker auto change the current date and add 2 days in it . i am doing it in c#.net

Member Avatar for saj_amo
0
94
Member Avatar for rouse

I found the following code in a tutorial on building a RSS feed. I can’t find a reference to the “<<<” on the PHP manual web site. Would someone point me to the documentation on this symbol. [code] <? $content = <<<CONTENT <?xml version="1.0" encoding="UTF-8"?> <rss version="2.0"> <channel> <title>$chan_title</title> <link>$chan_link</link> …

Member Avatar for Froger93
0
122
Member Avatar for crazyboy

Hello every one ... I have a C# windows based application in which when i press ALT + F4 key at that my window is closed as usual... but i dont want to close window when user press ALP + F4 key . User have to close window by clicking …

Member Avatar for crazyboy
0
154
Member Avatar for gebbit

Hello, I'm new to C and having this problem. What I need to do is add a single integer (0-9) to an (obviously char) string. More specifically, I want to add the value of a function that returns an integer (0-9) to a string. I don't want to change the …

Member Avatar for themoon49
0
2K
Member Avatar for power_computer

I have the following driver for my template class the parameter being passed to the template is another class, the error I get is Error line 28 : templateclass.h std::ostream<<ballteam is illegal driver.cpp line 30 Where instationating templateclass<ballTeam>::print const () driver [code] #include <iostream> #include <fstream> #include "arrayListTypeT.h" #include "ballTeam.h" …

Member Avatar for power_computer
0
142
Member Avatar for Doughnuts

Hi, I am trying to use strings, and even a simple program like this doesn't work. [CODE]#include <iostream> #include <string> int main() { string Hello; Hello = "Hello world!"; cout << Hello; cin.get(); }[/CODE] I am using Borland C++ 5.0, and it gives me this error. "String does not name …

Member Avatar for Doughnuts
0
127
Member Avatar for fragtech

In my c++ book they give a program that finds the prime numbers between 1 and 100. The problem I am having trouble understanding is the logic of the second for loop. I know what it does but not how, if that makes any sense. [CODE] #include <iostream> using namespace …

Member Avatar for mrnutty
0
541
Member Avatar for mms6

I want to allow certain characters to a string For example I want strA to contain either 'A' or 'B' or 'C' or 'D' How do I do that, help would be greatly appreciated. Thanks strA = 'A' or 'B' or 'C' or 'D'

Member Avatar for mms6
0
89
Member Avatar for scrace89

I'm having a tough time figuring this out. we need to fill in the blanks [CODE]import ____________ def wordCount(): lineCnt = 0 wordCnt = 0 charCnt = 0 list = [] ______________ = _______________("Enter the filename : ") file = ________(filename, __________) for _________ in file: ____________ += 1 list …

Member Avatar for vegaseat
0
385
Member Avatar for Dhruv Shah

As I am new to MySQL, I dont know how to connect my jsp page to the MySQL Database. So please help me by giving some code on how to connect. I have downloaded driver for Java named as Connector/J. MySQL version is 5.0. In this line con = DriverManager.getConnection("jdbc:mysql://localhost/JSP_MYSQL?user=root&password=admin"); …

Member Avatar for masijade
0
2K
Member Avatar for chunalt787

I am trying to create a 2d array list but it is giving me a compiler error pointing at the first line of the function. I don't really get what is causing the problem. I am pretty good in C++ but Java has some new rules that I am trying …

Member Avatar for chunalt787
0
4K
Member Avatar for skrithikaa

Hi, Can some one tell me how to create elements like (text, tables) in memory, then edit them in memory and finally print it on a file. Thanks, K

0
92
Member Avatar for sbmcdeshan

Hi I have a pointer generated in a method. And this pointer is input to another object. So at what point I have to delete this pointer? [CODE] method() { TEnemyCharacter *tenemyCharacter = new TEnemyCharacter(this); } [/CODE] So how to delete this tenemyCharacter. I cannot use delete tenemyCharacter; at the …

Member Avatar for sbmcdeshan
0
150
Member Avatar for verbob

I am writing a script to add and edit listings in a realestate site. For some reason I can't get the variables from the url to recognize properly. heres the "problem" part of the script: [CODE] <?php require_once "../dbconnect.php"; // include the database information // if the 'mode' is set …

Member Avatar for verbob
0
177
Member Avatar for romilc

how do i get started with MySQL and get the command prompt like MySQL monitor to write the command for creating a database in MySQL?

Member Avatar for romilc
0
93
Member Avatar for Moody1

Hello, Ihope to find some help in here, i have the following diagram [URL=http://img143.imageshack.us/i/13503390.jpg/][IMG]http://img143.imageshack.us/img143/6704/13503390.th.jpg[/IMG][/URL] and i want a query which return Emp_ID, Pro_ID note; i can get these values but by 2 queries as the following; [code=sql]select Pro_ID from Projects where Dep_ID in (select Dep_ID from Departments where name = …

Member Avatar for Moody1
0
125
Member Avatar for Kolz

Return the longest odd-length palindrome centered at the int index in the str. Assume that the index is valid, that the length of the str is at least one, and that there are only lowercase letters: no punctuation, spaces, or uppercase letters. I just want to know what this question …

Member Avatar for masterofpuppets
0
163
Member Avatar for Geekitygeek

I know how to handle multi-dimensional arrays, but whats the best way to represent them on a form?? Not sure how best to describe the problem : / Its an order form. Each row represents a product, each column represents the week we're ordering for. The problem is the order …

Member Avatar for Geekitygeek
0
197
Member Avatar for deepak.marur

I have tomcat 6.0.18 running on my laptop. Tomcat is installed under my /home/xxx/bin directory. However, after I start tomcat, I'm unable to connect to tomcat through my browser but my eclipse is able to do so. I do not get any error message, the browser just keeps on trying. …

Member Avatar for deepak.marur
0
153
Member Avatar for adamsn

hi all i am using VB6 and is writing a code for a maths project. learners have to enter an answer into a textbox and press enter to mark the given answer. i am currently using a command button to mark the answer, but it is time consuming. the idea …

Member Avatar for adamsn
0
138
Member Avatar for Web_Sailor

Hi.. I have 3 JPanels. (one) JPanel contains the scrollpane and the (two) JPanel contains a JButton. I am adding (one) + (two) into (combine) JPanel and then adding to the frame.Now I am really having a hard time align the scrollpane and the Jbutton. scroll pane is coming squeezed …

Member Avatar for KirkPatrick
0
150
Member Avatar for suncity

I'm stuck trying to get a C# USB MIDI link to an Audio Mixer. Is there some sort of C# class or API that I can use to send and receive MIDI commands? Thanks.

Member Avatar for suncity
0
71
Member Avatar for JimD C++ Newb

Good morning, all! I have a Java project that is complete, but it's not due for another week. I've been poking around trying to "spruce it up" a little with maybe a pull-down menu for one of the options. The examples I've found online all deal with web development. Will …

Member Avatar for JimD C++ Newb
0
145
Member Avatar for topcat712

Hey there, I've never actually used a forum to ask for help on any sort of project before, but I'm a little stuck.. okay, a lot. =D It's probably something really stupid and minuscule, though. Anyway, heres the project.. I hope it's not too confusing: Write a program that asks …

Member Avatar for snippsat
0
1K
Member Avatar for Mitja Bonca

How to call a comboBox1_SelectedIndexChanged(object sender, EventArgs e) method from this code: [CODE]private void treeView1_AfterSelect(object sender, System.Windows.Forms.TreeViewEventArgs e) { // Get subdirectories from disk, add to treeView1 control AddDirectories(e.Node); // if node is collapsed, expand it. This allows single click to open folders. treeView1.SelectedNode.Expand(); // Get files from disk, add …

Member Avatar for DdoubleD
0
90
Member Avatar for garcon1986

I have 2 pages right now. One is list.php, the other one is detail.php. The list.php is a table generated by mysql data. i add a column called "detail" at the end of each row. Everytime i click "detail", it redirects to detail.php and display a form according to the …

Member Avatar for garcon1986
0
109
Member Avatar for Ineedhelpplz

So I have written a reverse polish notation calculator: [CODE] #include <ctype.h> #include <stdio.h> #include <stdlib.h> #define NUMBER '0' #define MAXOP 100 int main () { int type; int op1, op2; char s[MAXOP]; while ((type = getop(s)) != EOF) switch (type) { case NUMBER: push(atoi(s)); break; case '^': push ((unsigned …

Member Avatar for Ineedhelpplz
0
207
Member Avatar for DemonGal711

Alright, I'm working on my own signature rotator. At the moment the image only updates when the page is refreshed, which I'm fine with for now. However, is it possible to force the script to grab a new image after X minutes if the page hasn't already been reloaded? I'd …

Member Avatar for Airshow
0
137
Member Avatar for thehivetyrant

Evening there. [B]I need to return an (x,y) tuple of an object, This x,y will be used to help 1 object calculate where the other object is and move towards it.[/B] My problem is that both the objects need to know the others' x,y. (i'm unsure how to get the …

Member Avatar for thehivetyrant
0
863
Member Avatar for cheapterp

What is the best way to generate a set of dates based on today's date? Essentially, what I wanna do is: 1. Get Current Date 2. Populate a table with future dates 6 months apart and go up until I reach, let's say, 12/31/2020 I have looked at some of …

Member Avatar for cheapterp
0
238
Member Avatar for vnproduktionz

im taking a class in python but i just cant keep up with the curriculum. Some things confuse me so i was wondering if anyone have any websites or anything that can help me get through python or at least help me understand it easier. the book im using right …

Member Avatar for vegaseat
0
130
Member Avatar for Noodles156

This code works fine if I replace the $s variable in the value being assigned to the $query variable with a valid site. The echo at the beginning of the foreach statement works correctly. Looking at the apache error log I see the following: [Mon Oct 26 16:16:36 2009] [error] …

Member Avatar for Noodles156
0
2K
Member Avatar for garcon1986

Now i extract data from mysql database, and echo them in a table. In the last column of each row, i made a link. It link to the corresponding page according to the value of first column in the row. Now i can't get the solution and have some errors. …

Member Avatar for garcon1986
0
206
Member Avatar for fhast

hi, i want to ask.. is it can to get an input from the user by only call the class object? here's the code : #include <iostream> class Time{ private: int time; int minute; int sec; ... }; void main(){ Time t; cin >> t; cout << "The time is …

Member Avatar for fhast
0
7K
Member Avatar for crystality

Hi! I can compile the following code, but when I try to run it with the line [B]a.out File1.txt[/B], my programming partner get a seg fault, and I get this error: [INDENT]a.out: relocation error: a.out: symbol __cxa_allocate_exception, version XXABI_1.3 not defined in file libstdc++.so.6 with link time reference[/INDENT] I found …

Member Avatar for dkalita
0
356
Member Avatar for jbisono

Hi, I would like to know how can I execute an event from a web content form, for example i would like to run a centralized event to assign rigths to component in every webform, but i would like to do that from the master page so i do not …

Member Avatar for jbisono
0
147
Member Avatar for ivankenny

Call List3.AddItem(txtname & vbTab & txtamount & vbTab & txtqan & _vbTab & Format$(ans, "Currency")) need help need to align the text the keep displaying like this: toy car 1 $3.00 $3.00 card board box1 $0.50 $0.50 remote control car 1 $3.00 $3.00 cart 1 1 $1.00 $1.00 this is …

Member Avatar for vb5prgrmr
0
324
Member Avatar for hello214

hi to everybody. I'm just wonderin' if someone can help me with arrays. I am making a program of computing an average grade. I manage to execute the first requirements. The problem i have is how can i compute the grades that had been entered using a seperate method here …

Member Avatar for hello214
0
118

The End.