64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for Nfurman

Hi, I am trying to make some "a la captcha" it must be simple, but not for me. my code is: [CODE] using System; using System.Configuration; using System.Data; using System.Linq; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.HtmlControls; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Xml.Linq; public partial class _Default : System.Web.UI.Page …

Member Avatar for Nfurman
0
170
Member Avatar for ruwanaru

What i want is when i click upload button upload the file with progress bar [CODE] <form action="image_upload.php" method="post" enctype="multipart/form-data"> <input type="file" name="filei" id="filei" /> <input type="submit" name="button2" id="button2" value="Upload" /> </form> [/CODE] this is my php file [CODE] <?php $name=$_FILES["filei"]["name"]; $size=$_FILES["filei"]["size"]; $type1=$_FILES["filei"]["type"]; $dirpath = "upload/"; //upload image if ((($_FILES["filei"]["type"] …

Member Avatar for peter_budo
0
135
Member Avatar for roadmaster

As the Title states I'm trying to Display a Form that has a Listbox Docked to "Fill", theres no problem displaying the form but I want to Display the Items in the ListBox as each line is added to it (in this case the lines are added programatically through the …

Member Avatar for roadmaster
0
107
Member Avatar for -ordi-

[CODE]import java.io.*; import java.util.*; class Telefon { public static void main(String[] args) throws Exception { /* IO */ BufferedReader sisend = new BufferedReader(new FileReader("telefon.sis")); // IN PrintWriter valjund = new PrintWriter(new BufferedWriter(new FileWriter("telefon.out"))); // Out int n = Integer.parseInt(sisend.readLine()); // Reading first integer String abi; String abi2; String[] numbrid = …

Member Avatar for javaAddict
0
96
Member Avatar for TheWhite

I have a class which extends LinkedList and implements Runnable. I also have a main class which modifies the extended LinkedList. So, the issue is, the LinkedList is being modified by 2 threads: main() in the main thread and run() in the thread which is created from implementing Runnable An …

Member Avatar for TheWhite
0
1K
Member Avatar for adams161

I have a gameboard class: class gameboard extends JInternalFrame In the constructor i have the line: setDefaultCloseOperation(DISPOSE_ON_CLOSE); my gameboards are actually in an array myboards[500] were each is an object of this class. the deal is I want to be able to tell which are open and i want to …

Member Avatar for adams161
0
102
Member Avatar for Hidden-Coder

G'day all, The program i'm currently working on has a search feature, I want to be able to search a Folder and any Sub-Folders contained within that structure. I'm really confused at the moment as to how i'm going to keep going deeper into a directory and still manage to …

Member Avatar for Hidden-Coder
0
123
Member Avatar for dsmush

Hello, I am building a servlet which handles the login process after the user clicks the submit button on the previous HTML form. The servlet should get the data entered from the form then perform an SQL statement to select all the data in the registered users table. Once all …

Member Avatar for cbarton.a
0
932
Member Avatar for ronaldpaul

[CODE]<?php //Start session session_start(); //Include database connection details require_once('config.php'); //Array to store validation errors $errmsg_arr = array(); //Validation error flag $errflag = false; //Connect to mysql server $link = mysql_connect('localhost','root',''); if(!$link) { die('Failed to connect to server: ' . mysql_error()); } //Select database $db = mysql_select_db(shop); if(!$db) { die("Unable to …

Member Avatar for cwarn23
0
233
Member Avatar for nats01282

Hello all. im new to mySQL database so dont know very much so sorry if its a daft question. I have a mySQL database with a company called 5quidhosting but my hosting is with heart internet. Can i get a web page hosted with heart to access the database on …

Member Avatar for nats01282
0
369
Member Avatar for Godflesh

Hello again! I have a new question. I have run a script and wants to run it again with a "keypress" input from the user, how do i code that. Like this: import subprocess drive=input(" If you want to start the script again , press 1: ") if drive == …

Member Avatar for Godflesh
0
2K
Member Avatar for Katsurou

Heyah Does anyone know how can I change the bacground color of my textfield by using : the commands if & else It's for one of my school assignments but I really can't get to solve it by myself i searched through web but nothing :S We must use the …

Member Avatar for ddanbe
0
227
Member Avatar for mangel.murti

why this function display [B]sharma[/B] not love on browser [CODE] <?php $a='abc'; define("h",sharma); define("h",love); echo h; ?> [/CODE] and second [CODE] why this will show nothing on browers? <?php $a='abc'; bb(); function bb() { echo $a; } ?> [/CODE]

Member Avatar for mangel.murti
0
116
Member Avatar for iamcreasy

Im trying to solve a ACM problem 10189, LINK: [url]http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=13&page=show_problem&problem=1130[/url] It looks ok to me...but, online judge is showing wrong answer... can anyone help me to figure out the problem. [CODE]#include<stdio.h> int row = 1, column = 1,i=0, j=0, a=0, b=0; char array[100][100] = {0}; int change(int a, int b) …

Member Avatar for iamcreasy
0
204
Member Avatar for asm2hex

Hello, I have a quick question I want to ask. How can I copy the data from a allocated variable, so that when I free up the allocated variable the copied data isn't erased with it. Thanks, -A2H

Member Avatar for Narue
0
104
Member Avatar for ryy705

Java implements pass by reference right? So when I do cons("item", stack) with the following code I should print out --> itemabcd. But that isn't the case, why? String stack = "abcd"; cons("item",stack); System.out.println(stack); // public void cons(String item, String stack) { stack = item + stack; }

Member Avatar for tux4life
0
225
Member Avatar for jakesee

Hi, I am playing around and trying to understand template singleton class and I accidentally created something that I am surprise it even runs. What I don't understand is when did Apple and Orange instances get created? Could you also comment on the good and bad of the Singleton class …

Member Avatar for jakesee
0
486
Member Avatar for TheStig01

Hi all, So i basically created a database with an arraylsit. All the data is stored in the arraylist and is added by a stringLine. [B][U]All this is shown in the code[/U][/B] My Database is an Insurance Database. Well basically i'm finding it hard to find out how to actually …

Member Avatar for TheStig01
0
215
Member Avatar for freesoft_2000

Hi everyone, I have quite a problem. I have a text pane and three menu items which are cut copy and paste. In my textpane i have some text and an embedded icon. when i select all the contents of the textpane and click cut all the contents of the …

Member Avatar for javaAddict
0
2K
Member Avatar for fawkman

HI Guys I have an issue, I would like to know if anyone can suggest how I can achieve what I want. I have two tables, a user table and a media table. The media table has a FK, User_id , referenced to User.User_id. Table structure User: user_id username password …

Member Avatar for nav33n
0
109
Member Avatar for JAM1011

Hi there , Just wondering if anyopne could help me out with a problem I am having with a update statement. I this error [I] ExecuteNonQuery: Connection property has not been initialized.[/I] I have been at this all day and still can't figure the problem. Hope someone can put a …

Member Avatar for JAM1011
0
165
Member Avatar for flying_bird

Hi guys, The following code doesn't compile, and I've been banging my head why. Some header code: [code] template <typename T, typename LESS_THAN> class RestrictedSet { private : int _size; int _max_size; set<T, LESS_THAN> _S; typedef typename std::set<T, LESS_THAN>::iterator tIt; public : RestrictedSet (int max_size); RestrictedSet (RestrictedSet<T, LESS_THAN> &other); ~RestrictedSet …

Member Avatar for flying_bird
0
772
Member Avatar for Excizted

Hi people. :) I'm making a function callback system for a console, so I would dynamically be able to send a function pointer to my console class, and then it would be callable from the console. Well, it works - but only with functions that are not member of a …

Member Avatar for Ancient Dragon
0
259
Member Avatar for pac-man

Hi guys, just playing about with pointers and keywords and to my surprise, this code does not throw up an error... can anyone tell me why? [CODE] int main() { int *P = new int; *P = 50; cout << *P << endl; // output: 50 delete P; *P = …

Member Avatar for pac-man
0
125
Member Avatar for gunnarflax

Hi! Basically, what I'm trying to do is a site for online storage of my own files, like Microsofts SkyDrive service. One thing I'm wondering about is what way that would be most effective to organize the files? My first thought was that when I upload the files to the …

Member Avatar for vaultdweller123
0
101
Member Avatar for NoviceChrilill

Hi, I have the problem that a char ch2 = '\u0041' is confirmed as a character and also printed as "A", but the char ch3 = '\u00c6' , which is also confirmed as a character, is not printed only as a "?" where it is supposed to be a "æ". …

Member Avatar for NoviceChrilill
2
259
Member Avatar for cane23

i am trying to run this code but i am not getting anything from the mysql_fetch_assoc($result) it is just blank can anyone help me thanks in advance [CODE]<html> <body> <?php $host="localhost"; // Host name $username="root"; // Mysql username $password="hayden"; // Mysql password $db_name="ecng3020"; // Database name $tbl_name="students"; // Table name …

Member Avatar for vaultdweller123
0
121
Member Avatar for veledrom

Hi, Assume I start session and print data stored in session and print some html stuff at the begining of php file. Then I need to use header() to download a file afterwards. When I do it i get this error: [CODE]Warning: Cannot modify header information - headers already sent …

Member Avatar for veledrom
0
108
Member Avatar for jen140

Hello again. I was trying to login to my web server protected with basic auth, and after i understood that it would be nice to automatically detect the realm so now i want to know on how to do so. Thanks in advance.

Member Avatar for jen140
0
442
Member Avatar for rouse

I have a query that looks good to me but MySQL does not agree. I am using the DATE_FORMAT function and I do not see what is incorrect so I am hoping some one can point it out. [code] SELECT title, DATE_FORMAT(event_date '%Y-%c-%e') AS event_date FROM event WHERE event_date LIKE …

Member Avatar for rouse
0
117
Member Avatar for gu0gu0

hi, i debug it keeps show: Syntax error in FROM clause. i google and read many website tried remove ' ' from sql line still cannot. can anyone help pls [code] Public Class frmLogin Dim mypath = Application.StartupPath & "\password.mdb" Dim Password = "" Dim conn As New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=c:\Users\Du\Documents\password.mdb") …

Member Avatar for gu0gu0
0
107
Member Avatar for kplcjl

How does a property that returns a byte[,] signature have the same parameter types as a function that returns a bool and has a passed byte[,] signature? Here is the command: ...My Documents>csc /target:library /out:CourtneyNumbrs.dll CourtneyNumbrs.cs here is the output: Microsoft (R) Visual C# 2008 Compiler version 3.5.30729.1 for Microsoft …

Member Avatar for kplcjl
0
116
Member Avatar for CppBuilder2006

I need an API function that disconnects the computer from internet! does type of connection matter? eg dial up, adsl or.. :)

Member Avatar for CppBuilder2006
-2
583
Member Avatar for butcher71793

i am making a game in python 2.3.5 and i wanted to know if there is a command that would make it so one sprite will move to another no matter what the position is on the screen.

Member Avatar for Firewolf
0
169
Member Avatar for don bunot

newbie here can anyone help me with C# dealing with RFID and file handling process?? if you have tried this kind of IDEA or codes or something..you can post it here thanks..

Member Avatar for don bunot
0
152
Member Avatar for techhelpforme

This works: -----------PrintInfo.php <?php phpinfo(); ?> -------------------------- But this doesn't: -------------PrintInfo.html <html> <head> <title> Hello World </title> </head> <body> <?php echo 'This is my first PHP web page.'; ?> </body> </html> ------------------------- I'm using Apache 2.0 on WinXP Home with php 5. Thanks!

Member Avatar for diafol
0
3K
Member Avatar for selimhanov

Hi, It must be a simple issue, but couldn't find any answer googling. Here is the problem: I have a simple test application with a TextCtrl, Button and StaticText. When I press the Button, it must query PostgreSQL with ...[code]SELECT name FROM contacts WHERE name LIKE '%"+TextCtrl.Value+"%'[/code] and return the …

Member Avatar for Pupo
0
158
Member Avatar for spivey

I have a little tabbed content window that uses jquery and I have an annoying little problem: whenever I click on one of the tabs, the page resets to the top, so if you click on the last tab, you have to scroll down to see it again. Here's a …

Member Avatar for spivey
0
159
Member Avatar for suberi

hey there, i've been messing around with applying graphics to windows of other applications, using their window handles.. (if that's even possible..). here's my code so far: [code] [DllImport("user32.dll")] public static extern IntPtr GetForegroundWindow(); [DllImport("user32")] public static extern IntPtr GetWindow(IntPtr hWnd, uint uCmd); [DllImport("user32.dll", CharSet = CharSet.Auto, SetLastError = true)] …

Member Avatar for suberi
0
113
Member Avatar for learn_vb.net

hello..i am new to VB.net i know VB i created a button on the form [code] private void button1_Click(object sender, EventArgs e) { MessageBox.Show("neha"); } [/code] i am not getting display .I just get a blank form when i choose start debugging

Member Avatar for learn_vb.net
0
96
Member Avatar for jbisono

Hello everyone. The problem: I am developing a form that i have to validate some fields against the database. For this particular scenario lets say the Part ID field, I do not want to create a dropdownlist with all part id because is too big. maybe i can let people …

0
82
Member Avatar for imso

I started to program on C++ on converting 8bit binary to its decimal requested for my school project. But i have problem to proceed further as i am lost on what to add on next. Can someone help me to add on to my program to allow it to work.. …

Member Avatar for Dave Sinkula
0
214
Member Avatar for ireimaima

Hi....can anyone help me to explain what is the use of isPrime=true; in the last line of this coding..?? I found that it is very important because if i delete it, the answer of the prime number will always constantly 2 and 3.. Even if i put 7 as the …

Member Avatar for ireimaima
0
123
Member Avatar for goody11

I was working on a game where I have a bunch of enemies. I wanted the game to randomly select which enemy to use but it always picks the same one. Here is the file were I make the enemies: [CODE]using System; using System.Collections.Generic; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Content; using Microsoft.Xna.Framework.Graphics; …

Member Avatar for ddanbe
0
125
Member Avatar for hitro456

What is the best way to parse the string in C# In java u have a class like Scanner. Is there any equivalent class in c#.

Member Avatar for hitro456
0
540
Member Avatar for Shillz

how can we use a printf statement without a semicolon??? this was a question asked during an interview of a computer engineering student.

Member Avatar for Shillz
0
153
Member Avatar for spogs

When I do the following: [code] s= serial.Serial('/dev/',9600) # or set a function and pass via command line s= serial.Serial(arg1,9600) [/code] The code executes without any error. [b]But[/b], when I use AJAX and POST the parameters to the script [code] def index(req): info = req.form sys.stderr = sys.stdout s= serial.Serial(info['device'],9600) …

Member Avatar for spogs
0
115
Member Avatar for bonnysammy

Hi! I have a dropdown that is populated by a hashtable. THis part is working fine. But, I have to select an option in this dropdown according to information I get from a SQL Query. It's like this: The field in the table can have 0 - 3 0 First …

Member Avatar for bonnysammy
1
146
Member Avatar for girl.java

how are you all I want to write a program where when i enter the number For example 10 must give the numbers of Singles 1, 3, 5, 7 and 9 please its important

Member Avatar for harrierdh
-1
115
Member Avatar for Chris147

Can someone please help me with this - it's driving me mad. I have a very simple app (at the moment) that stores file names/paths and folder names/paths in an SQL database and displays them in a ListView and TreeView respectively. All fine and dandy. I have an option to …

Member Avatar for Chris147
0
124

The End.