199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for lady_lily

hello anyone, hope you could help me, im working for my project a mini system in title Test Banking system, definitely its an examination system that might use at our guidance office for students to do their entrance examination. Im just beginner and doesnt have idea on how do i …

Member Avatar for AndreRet
0
283
Member Avatar for haro2x

i have an free web host on aspspider.com and i have made an page with asp.net and a sql database under root\Database\db1.mdf. the code on my page is in c#. i have an code for db acces but it doesent work [CODE] string connectString = @"Data Source=~\root\Database ;Initial Catalog=DB1"; System.Data.SqlClient.SqlConnection …

Member Avatar for sujimon
0
168
Member Avatar for LianaN

Hi! I have a question regarding the SQL Select and "try...catch". The problem is that my SQL Select statement could sometimes return empty sets. For this reason I'm using "try...catch" statement. However, it doesn't work - the error message is generated for the empty set. So, how could I solve …

Member Avatar for LianaN
0
632
Member Avatar for jdiddy

hi i am creating an applet where you click on the button and it adds an image and text to a list, which then will be displayed in a JOptionPane but the Image will not display but the text does. code is as followed; Add the items [code] String additem …

Member Avatar for jdiddy
0
538
Member Avatar for jamesyrawr

I seem to get this error message when I run this please can someone help? Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in C:\wamp\www\unisite\products.php on line 11 I can't figure this out at all :( [CODE]<?php if(isset($_GET['action']) && $_GET['action'] == "add"){ $id = intval($_GET['id']); if(isset($_SESSION['cart'][$id])){ $_SESSION['cart'][$id]['quantity']++; } …

Member Avatar for cwarn23
0
232
Member Avatar for MDanz

[code]foreach ($items as $product ) { echo $product; ?><input type="text" size="2" value="<?php \\display quantity here ?>" name="quantity" /><?php }[/code] $items is an array. It has multiple values, some duplicate. How do i count the duplicate values in the array and display in this foreach loop? i know array_count_values($product) but putting …

Member Avatar for cwarn23
0
274
Member Avatar for oceanside013

hey guys, my code requires a toString method and an equals method. My question is, did i do them correctly? im a bit confused on this topic, Any help, im greatful for, and the toString and equals methods are at the bottom, Thank you so much. [CODE]import java.util.*; class Scores …

Member Avatar for JamesCherrill
0
166
Member Avatar for facarroll

I have two tables 'quiz' and 'topics'. The relevant columns in 'quiz' are 'passState' (which returns 1 or 0 representing true/false) and 'managerId' which is a record number referring to a particular administrator. The relevant columns in 'topics' are 'managerId' and six other columns named 'equip1' .... 'equip6' respectively, which …

Member Avatar for smantscheff
0
148
Member Avatar for jgehlot09

I want to generate 1billion random integer with no duplication, I dont know how do I allocate memory for such a huge amount of data.

Member Avatar for Adak
0
114
Member Avatar for suganzeni

Hi all Hi to move a label box from left to right and right to left with the help of timers. Also how to change the fore color of the label (RAndom colcors )with the help of timers Thanks in advance

Member Avatar for mzoner
0
1K
Member Avatar for watery87

Hi guys, i just written a simple program which requires some date verification. However im facing some trouble with the input Problem 1: if the input has more than 8 chars, garbage characters gets printed Problem 2: if input contains invalid values(like negative), error gets printed Problem 3: if input …

Member Avatar for watery87
0
122
Member Avatar for kiran@kumar

Hi this is Kiran kumar How the Controls that are created dynamically in the page load will maintain their state that means how they will preserve the values . if anybody knows the answer please help me thanks in advancce regards kiran kumar

Member Avatar for kiran@kumar
0
129
Member Avatar for jakefrog

Hello. I need my tag like this: [code] <?xml version="1.0" encoding="utf-8"?> <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Body> <EnviarArquivo xmlns="http:(CLIENT LINK)"> <Sistema>1</Sistema> <Chave>1</Chave> <Solicitacao>1</Solicitacao> <OK>TRUE</OK> <Observacao></Observacao> <Arquivo>1</Arquivo> </EnviarArquivo> </soap:Body> </soap:Envelope> [/code] my when the server get my request its going like this: [code] <?xml version="1.0" encoding="utf-8"?> <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"> <SOAP-ENV:Body …

Member Avatar for DUAN20041
0
378
Member Avatar for tiger86

I am making a game where I need to take one image and make it into multiple images. then when I click on the image, I want one to dissapear at a time. I believe this can be accomplished via arrays. I am still pretty new to C++, so I …

Member Avatar for tiger86
0
199
Member Avatar for Sahilsahni

hi am new in php, i have values like A,B,C,D in database all in one box. i made a dropdown for its search A B C D , i want if somebody select A or B and search it fetch the whole row from database. or in other words i …

Member Avatar for jogesh_p
0
588
Member Avatar for shashi86

Please someone help to print function has to print numbers like Snack and ladder game when 2 variables rows and columns are passed to a function. ex: fun(4,3) 12 11 10 7 8 9 6 5 4 1 2 3

Member Avatar for TrustyTony
0
190
Member Avatar for eladreznik

guys i have an issue with scrolling a datagridview (VB.Net 2010) using the mouse wheel i created a mousewheel event an i am catching the mouse-wheel movement up or down i created a scroll event and set the boundaries for the scroll, but i have no idea how to combine …

Member Avatar for lolafuertes
0
223
Member Avatar for MrBlack

Hi I installed visual studio 2008 64bit.and i need MS sql server express 2005/2008 64 bit. plzz help me.i tried one.but installation is not completed.Is there a special way to install it.

0
73
Member Avatar for rebellion346

Im getting an error that says unresolved external and i have no idea what to do, does anybody have any ideas? by the way im not sure if my code actually does what its suppose to do, its still in the works [CODE] #include <iostream> using namespace std; class Measure …

Member Avatar for rebellion346
0
88
Member Avatar for kazuki05

hey guys! mind if you help me here? we were asked to make a grading system. here is my code.. [CODE] #include <iostream> #include <string> #include <cstdlib> #include <iomanip> using namespace std; void main() { system("CLS"); char fn[50],ln[50]; string *name, *enam, temp, *R, wN, fin, lan; double gr, *g, temp2, …

Member Avatar for Anyzen
0
110
Member Avatar for haroldelam

[CODE]#include <iostream> #include <string> #include <iomanip> using namespace std; // //CLASS DECLARATION SECTION // class EmployeeClass { public: void ImplementCalculations(string EmployeeName, double hours, double wage); void DisplayEmployInformation(void); void Addsomethingup (EmployeeClass, EmployeeClass, EmployeeClass); string EmployeeName ; int hours ; float wage ; float basepay ; int overtime_hours ; float overtime_pay ; …

Member Avatar for haroldelam
0
117
Member Avatar for daved83

Hi everyone. I'm brand new to Ajax so forgive me for the stupid question! I'm trying to populate a triple dropdown menu based on [URL="http://roshanbh.com.np/2008/01/populate-triple-drop-down-list-change-options-value-from-database-using-ajax-and-php.html"]Roshans code[/URL] The first dropdown populates the second one fine but when I clidk on the second it populates itself instead of the one below! I …

Member Avatar for nicosa
0
252
Member Avatar for Jake1905

I am trying to figure out how to set a float for a project I am doing. Example I am trying to set a float for a score but I would like the input to be set where you can't input a number over a 100. This is the code …

Member Avatar for VernonDozier
0
126
Member Avatar for python_noobie

Hello: I've been attempting to create a treemap (binary search tree) insertion and display function for a bit and am puzzled by the recursive calls. I've tried quite a few things, but the problem seems to be in my mapInsert function. Here's all the code I've written so far in …

Member Avatar for python_noobie
0
367
Member Avatar for MoreBloodWine

Test Page: [url]http://www.eojmarket.com/index.php?pag=26[/url] Code below: <script language="JavaScript"> function function1(){ window.scrollTo(0,265); } </script> <input type="button" value="Go" onClick="function1();"> Question: Is it possible to get rid of the button and have it scroll to 0,265 on page load ? Comment: <body onload="function1();"> doesn't appear to work.

Member Avatar for MoreBloodWine
0
105
Member Avatar for flyingcurry

The below is the main method, the wrapper method, and the array search method for a step recursive method used for finding the index position of the searched string. I am encoutering this problem when whatever search I put in, I get the return value of -1. Why and how …

Member Avatar for flyingcurry
0
166
Member Avatar for ceyesuma

Hello. I created a JTabbedPane on a panel and put it on a JInternalFrame of a JDesktop in SetObjects.java. Why can't I get a tabbcount for it after running an AbstractAction? [b]reference JTabbedPane[/b] [code] [/code] [b]reference JTabbedPane[/b] [code] M =(" --> in controlJMenuItems("+e.getActionCommand()+") var: e.getActionCommand() : xxxxxxxx<-- \n"); System.out.println(M); jtp=SetObjects.getCurrentJTabbedPane(); …

Member Avatar for ceyesuma
0
157
Member Avatar for Roses89

Ok guys, im here with a problem The thing is that ive created a website for a doctors hospital.Now the admin staff are allowed to create new patient and add new staff to the database. I have two databases right now.The aspnet membership data base and another one that has …

Member Avatar for kvprajapati
0
142
Member Avatar for P0lT10n

Hello people. I was reading severals scripts, and I saw, all the time, that they used %s... What is the application of that ??? Becuase I'm searching about that and I don't find anything about it ! I know that it's about injection codes... Can anyone give me a web …

Member Avatar for mschroeder
0
139
Member Avatar for JavaRookie88

Im having trouble creating a Word Decoder, Basically I'm trying to write a method that chooses a random character, and increases in by one place (a to b, b to c) and so on. Any ideas in how to approach that? Thanks, JavaRookie

Member Avatar for Eric Cute
0
178
Member Avatar for twitchybear

Everything works fine except when you roll a non-instant win or lose, you always win on your next roll #include <iostream> #include "Crapsfunctions.h" #include <conio.h> #include <ctype.h> using namespace std; void main() { double Money; double Bet; long Roll; long Roll2; long Point; long NumRolls; char Answer; //prototypes long throwdie(); …

Member Avatar for WaltP
0
164
Member Avatar for kyojin

I need to create a menu, and then depend on the choice, carry out a certain task. But sumhow any number i put in become sumthing else so the switch become deafualt. Can sum1 help? [ICODE] import java.text.DecimalFormat; import java.util.Scanner; public class Lab0602_ATT { public static void main (String args[]) …

Member Avatar for Eric Cute
0
93
Member Avatar for Suzie999

Can anyone tell me where to get started to get an md5 or sha1 checksum of a given file. I've searced around and all I can find are utilities, I also looked at wincrypt but It seems to me that it just does passwords and strings and suchlike. Any help …

Member Avatar for Suzie999
0
668
Member Avatar for zachattack05

I'm lost on this one. I'm creating a "Preferences" type form. On this form I have a tree view and a panel. I have created multiple user controls, each to be displayed in the panel when a certain tree node is selected. The problem I am having is finding the …

Member Avatar for zachattack05
0
899
Member Avatar for destruct0

Hi!!! I create my own custom control and everything is perfect except this event. I don't understand it. When i add my custom control to Window Form i add MouseDoubleClick event to this control. And when i start Application and try to double click on it is nothing happen. I'm …

Member Avatar for acheo
0
3K
Member Avatar for Jeyush

Hi buddy, I have small script which upload the images. This script is working perfectly fine in localhost but when I upload that script to my website then it is not uploading the pictures. I have subdomain in my website names as [url]http://projects.abc.com[/url], In projects folder I have my photo …

Member Avatar for jamal_jarrar
0
166
Member Avatar for Roses89

Hey guys, Im really new at vb.net and i have a huge project on it.Somehow, ive managed to complete 90% of it but im stuck at the last 10%.This is a system basically set up for GPs.Medical Centre.The system has 3 users, patient doctor and admin. The admin are allowed …

Member Avatar for jamal_jarrar
0
139
Member Avatar for patto78

The following is a recursive function designed to return the factorial of a number. [CODE] def factorial(number, target): if number == 1: return target else: target = target*number factorial((number-1), target) print factorial(7, 1) [/CODE] As you'll see if you run it however it doesn't return my 'target' variable (the factorial …

Member Avatar for patto78
0
205
Member Avatar for TheFeedingHand

So I'm doing this stack program , and basically when I try to print the elements in the stack, nothing happens... I'm totally lost : ( , any help would be appreciated. Oh and some function names are in spanish, llena means full, vacia means empty, the variable cuenta is …

Member Avatar for mg120
0
180
Member Avatar for knan

I have dictionary with single element lists. [CODE]dictionary={'a':['A'], 'b':['B'], 'c':['C']} [/CODE] How can i change it to [CODE]{'a':'A', 'b':'B','c':'C'}[/CODE]

Member Avatar for TrustyTony
0
150
Member Avatar for taylord69

i have to write a function (dayNumber) that returns the day number in a year for a date that is provided as input data. i cant use const, struct, or loops, it has to be very basic stuff. i have something written but i can figure out how to get …

Member Avatar for taylord69
0
116
Member Avatar for techie1991

I was trying to code the assembly line sheduling problem using the dynamic programming approach. I have coded the program but i am facing problem with the 2-dimensional arrays I am using. For testing purpose, I wanted to initialize the array, but I was not able to get it. Moreover, …

Member Avatar for Fbody
0
216
Member Avatar for LoLFactor

I'm interested in making an .ini file parser and I want it to have an internal list that can hold it's individual entries. The catch is I want to make one list to hold all the values. That means strings, boolean values and int types. I have a class to …

Member Avatar for Momerath
0
218
Member Avatar for Ninoaoe

hi!!!! i'd like to ask if anyone knows how could i possibly use a string as a number...i mean: i've got something like cin>>word; but if that word is a number(like 1,2,3... etc) i have to use that number for going in that line. if user types ''hello'' its ok.but …

Member Avatar for Ninoaoe
0
132
Member Avatar for ffishy

hi all, I need some help w.r.t. arrays and it's representation. My assignment was to think of an idea(s) to redesign a 2-dimensional array that is a compressed form of binary patterns. e.g. {3,9,4,2} is compressed form and it's decompressed form is 111000000000111100. Then same for next few rows. I …

Member Avatar for griswolf
0
115
Member Avatar for Mr Tk

Hi I have a question about a problem I'm having with raw_input function in python. I'm writing a CL program that requires a comment to be entered by the user, however problems arise when someone makes a mistake entering said comment. [CODE=python]comment = raw_input(Enter comment: )[/CODE] User Input: Archie^?ve testing, …

Member Avatar for Mr Tk
0
3K
Member Avatar for bnath001

Howdy, I want to make a sql that goes to oracle. the sql should be "Select "cusip", "price structure" from tableA" (basically the columns are wrapped in double quotes. I used this synatax in C#: string mysql = "select "+'"'+"cusip,"+'"' + '"'+ "Price structure\"" from tableA" and I am getting …

Member Avatar for Kimpl
0
116
Member Avatar for knan

I dont know what goes wrong in this piece of code?!! I keep getting the following error. File "<stdin>", line 11 t1.append(list[temp]) ^ SyntaxError: invalid syntax [CODE]tl = [] for inlist in token_list: temp=[] for token in inlist: temp.append((zlib.adler32(token,65521)) tl.append(temp)[/CODE]

Member Avatar for Gribouillis
0
158
Member Avatar for lafalot

Hi all, We are migrating from Coldfusion MX to Coldfusion 9. Yesterday, we were able to access the cfadmin. Today, when I go to cfide/administrator/index.cfm, I get the following error: "Tag CFAuthenticate is not supported in ColdFusion" I don't use CFAuthenticate in any of my code. Can anyone help? Thank …

Member Avatar for arrgh
0
147
Member Avatar for ryan-t

Hi, I've been trying to get my head around timezones and how to allow users to set their zone and update the times accordingly. Basically, I have a unix timestamp in the database and i want to be able to update it to a users timezone which is also set …

Member Avatar for ryan-t
0
132

The End.