199,114 Archived Topics
Remove Filter ![]() | |
UnboundLocalError: local variable 'gold' referenced before assignment ...[CODE]if chooseItem == "1": gold, arrows, whip, cannnonballs, heartPotions, megaHeartPotion, infinityPotion, infinityXPotion, duelBloodXXHealer, bloodXHeal, energyYPotion, basicRainbowHealer = bloodXHealerZZ.buy(gold, arrows, whip, cannnonballs, heartPotions, megaHeartPotion, infinityPotion, infinityXPotion, duelBloodXXHealer, bloodXHeal, energyYPotion, basicRainbowHealer)[/CODE] | |
Hi and I remember reading in a really old topic that somebody here was able to write a chatroom without using mysql or any other database system. Can somebody explain how this is possible with just javascript and ajax? What I want to do is to have a script that … | |
Hello all can you help me up with this guys.. i have this application with a product id which is in Hexadecimal format..wat i mean is an alphanumeric format.. and it is asking for a product key.. how can i suppose to know the product key? can you give me … | |
With the code below data is keyed into a form and inserted into a table called Investors. After it is inserted, I'm trying to [U]redirect back to the same page, passing the InvestorID on the querystring[/U]. Simply showing all of the information I just added, kind of insuring that it … | |
My app uses a verification method for users of downloading a text file which contains game-ID's of the users and checking the file with their game-ID. The problem is, the code I'm using to download it is kinda messing the file up. [CODE=VBNet] Public Sub GetIDList() Dim wr As HttpWebRequest … | |
I'm making an archery game and I need to shoot 5 arrows and assign a point value to each spot of the target. Bulls eye is worth 9 and each ring out from there is worth 2 less. I am having trouble figuring out how to assign a score to … | |
Hi, I have to create a maze in C++. // Below is the problem Statement Let's use a simple case of a w=4 (columns) by h=3 (rows) maze to illustrate the maze-generation algorithm. We will start with 4 × 3 = 12 closed rooms, arranged in a 4 by 3 … | |
just need some advice on making a list containing values for Tkinter buttons. thankyou :) | |
Hi, I am looking for the best solution to my situation: - I have businesses listed in a MySQL table. - Each business can bid on up to 10 keywords (different prices for different keywords). A user inputs a keyword and then I must find a way to query my … | |
What I've learned so far: An OS may trigger a software interrupt by executing a system call. According to what I read online, this is implemented via special instructions such as INT that the CPU can execute. I also understand how interrupts get handled by the interrupt service routine. My … | |
Hello all, I have a few questions about C++ (I have programmed quite a bit in VBA and some in the past using C++, and have been working through relearning C++). Currently I am working through a bit on the "Char" variable type. regarding the following (from the FAQ): * … | |
Im having trouble coming up with the java code for this. Can someone help me? First 3 month month-by-month account balance in your bank savings account. You need to make one, only one transaction-a deposit or a withdrawal-each month. Interest is added to the account at the beginning of each … | |
Greetings! I'm trying to make [URL="http://faculty.kutztown.edu/rjensen/charcoun.htm"]this tool[/URL] for some fellow librarians who answer questions via text messaging. As you see beneath that page's text box, the catch is that the PC-to-SMS client treats the forward slash as [I]two[/I] characters. I'd like if possible for the JavaScript character counter to recognize … | |
![]() | Hi, Just learning WPF and I wondered if there's an easy way to amend a controls control template with c# code? To explain - I'm using two 'types' of validation - one to ensure the data conforms to the requirements of an underlying table, and another to ensure the data … ![]() |
hey all. Have a list of checkboxes with SQL data in table. Currently using echo to ensure I'm using the correct data, however, echo it returning the last checkbox data only. Here is a segment of what I've got. [CODE] echo "<table border='1'>"; echo "<tr><th>Last Name</th><th>First Name</th><th>Party</th><th>Description</th><th>Cast Vote</th>"; while($row = … | |
this works, it echoes "worked". [code]<?php $url = "http://www.realgm.com"; $tags = (get_meta_tags($url)) ? get_meta_tags($url) : false; if($tags){ echo "worked"; }else{ echo "failed"; } ?>[/code] i've deliberately done this so it doesn't work. It fails to open stream. How do i make the error message invisible?... it should just say "failed". … | |
hi , I wish to create buttons(kinda array of buttons) on a form everytime the form loads. I am not getting the code/syntaxes for the same. Its like that the no buttons and there attribute on the form changes dynamically according to the DB . Please some1 help me with … | |
I have a situtation where I need to use the variables created during a session on another page. currently, I am doing the queries twice, which seems like such a waste! Is is possible to retrieve them via the session store? This is my first foray into the bowels of … | |
I have been searching around the internet for a few questions I have on the List<T> class with no success. 1. how do you edit the last item in your list 2. how do you edit a specific items value, every time i do it says you cannot edit a … | |
I have a pair member data in a class: pair<double,double> memory; How can I change the firs or second element? If I simply write memory.first = 42 the compiler says read-only structure If I use memory = pair<double,double>(42,42) than: error passing 'this' argument I dont understand, please help me | |
I am putting together a database with users, items, and tags. I have three tables to support this structure. The first is the "items" table, which contains all of the details about each individual submitted item. The second is the "tags" table, which has two columns: tag_id and tag_text. The … | |
Back again, with another homework problem that is stumping me. Ok so assignment is to design 3 classes: Ship, Cruise Ship, and Cargo Ship. Ship should: member variable for name of ship (string) member variable for year ship was built (string) constructor and accessors and mutators virtual print that displays … | |
can anyone tell me the merits & demerits of friend functions? p.s. help me kushal | |
hello , I need to know how to get the direction from point A to point B eg. point_direction(0 , 0 , 100,100); would equal 315 x1 y1 x2 y2 how do I compute this ? Thanks ! | |
Hello all. I have a moderate knowledge on how to create databases in Access but I am having a problem. I want to be able to improve the exams we write by tracking the questions which were answered wrongly to be able to improve the exam. Here is what I … | |
Running a SQL query from the following code: [CODE] <php if(sizeof($_POST['addcandidate'])){ foreach($_POST['addcandidate'] as $id){ $name= mysql_query("SELECT LastName FROM candidate WHERE Candidate_ID= '$id'"); while($rowz= mysql_fetch_assoc($name)){ $candidatename= $rowz['LastName']; $alter= "ALTER TABLE '$votertable' ADD '$candidatename' int"; mysql_query($alter) or die(mysql_error()); } } } ?> [/CODE] I return Im getting: [COLOR="Red"]#1064 - You have an … | |
Im in over my head and have a small project to complete using MS Access. It involves setting up 3 tables, creating forms, queries and a report. I have a narrative that describes what is needed. I am willing to pay to get this done, but for somebody that is … | |
I would like to use Galleria to display photos on my website but I'm having trouble getting it to function. I don't know an awful lot about html but I think I've followed the instructions correctly. I would like my gallery to function something like this: [url]http://monc.se/kitchen/stew/galleria/index2.htm[/url] but right now … | |
I'm in the process of reworking a bit field that I built to condense a collection of rule activation flags for a game I'm working on. I need to change the "multiplierRule" so that it can represent 2 different variations of the same rule as well as an "inactive" state. … | |
hello guys, i have a problem with a query. I have a table actions which has no primary key. any one particular record can be identified by the combination of actionID, taskID and ProjectID which are the other fields in actions table. Here is an example of the possible situations … ![]() | |
Hello, Currently, i was assigned to create an array, which i have no idea what array is. The problem is this.... 2.Write a function to read in numbers and put them into the array. The function should continue to read in numbers until either: the user types a negative number, … | |
I am currently trying to get the text from a DBLookUpComboBox but it wont let me retrieve it i have a number and 2 strings in the box which is an ID and first and last name. I cannot retrieve anything from the box unless i use a edit box … | |
Hi all, I am trying to learn the basic concept about array, however when I tried to change the type into string, it shows error .. I am using IDE visual studio 2005 [CODE]#include <iostream> #include <string> using namespace std; int main() { string stName[20]; cout << "what is your … | |
Hi, We've a requirement wherein we're provided with a csv file, within the file there is a name field, and some of names are very long and are causing issues while importing. What we want is pull out these kind of rows containing longer names and send it back to … | |
Does anyone know how to convert a jk flip flop to a d flipflop in computer architecture or circuits? | |
Hi there! I am working on a simple text based console application for a game of battleship. I am not really looking for a raw code just ideas on where to go next with my code. Some things i would like to put in it that I am flat out … | |
hello, i use a simple log script on my site.. very basic.. i would like to modify it, and am having issues.. here is what i would like... i would like to be able to have it filter out certian HOST names.. but not exact.. say for instance, i dont … | |
please help me.. i dunno how to make my project in C/C++. it's about binary trees but we'll use names instead of numbers or single chars then the traversals.. PLEASE... thanks! | |
I have a drop down box which is working but I want to put it on the same page twice because the document.drop_list.? is hard coded it will not work if I try and use it twice on the same page I have tried sending the id to the javascript … | |
Hi i have a problem Error 1 Operator '<' cannot be applied to operands of type 'object' and 'System.TimeSpan'. to use timespan with < is there any type of code? [CODE] SqlCommand cmd = new SqlCommand("SELECT * FROM tblBooking", conn); SqlDataReader rdr = cmd.ExecuteReader(); DateTime ts = new DateTime(); TimeSpan … | |
I have some data like this: [CODE] 6 9 5 2 3 6 1 5 1 0 3 4 5 3 9 1 9 4 3 8 6 8 5 1 5 4 9 8 1 4 4 5 1 5 8 6 7 2 5 5 6 1 8 … | |
how to create windows.h header file It is doesn't on my PC .Please give me windows.h header file | |
Guys I'm having a problem which is really annoying me .. I'm trying to change a normal class into a template class, but every time I try to do that I get a bunch of problems with the object of that class and the template : let's say I have … | |
Hi all, Ok, so I am new to C++ and whilst I understand most of the theory, I am still struggling with the practical applications! I'm trying to write a program that will allow a user to enter 10 whole numbers, then return the sum of all 10 numbers, the … | |
I am trying to make a log reader , which will read the log ..and the user will input a search string .. i want to get the output in a excel file containing the whole line in which this string is found [CODE]try { FileReader fis = null; FileWriter … | |
Hi, I have created a simple login page in c#, the code compiles and runs however it does not execute correctly as when i give the correct input for username and password. it just skips and does the action for the code within the 'else' statement. What am i doing … | |
Hi, I am making an online page for a company so that users can upload and download files from the company's server. Now, as every ASP .NET developer knows, the ASP .NET framework includes a file upload control for users to upload files to the server. The problem with this … | |
I've got an XML: [CODE]<?xml version="1.0" standalone="yes"?> <root> <profile> <name>xyz</name> <salary1>4</salary1> <salary2>2</salary2> </profile> <profile> <name>mno</name> <salary1>8</salary1> <salary2>6</salary2> </profile> </root>[/CODE] and a XSLT: [CODE]<?xml version="1.0" encoding="utf-8"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:exsl="http://exslt.org/common" extension-element-prefixes="exsl" version="1.0"> <xsl:template match = "/" > <html> <head><title></title></head> <body> <br /> <table border="0"> <tr> <td class="headerClass">name</td> <td class="headerClass">salary1</td> <td class="headerClass">salary2</td> </tr> … | |
--You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'Resource id #10' at line 1-- [CODE]<html> <body> <form action="login.php" method="post"> <div> <table width="100%"> <tr> <td><img src="Logofinalcopy.gif"></td> </tr> <tr> <td bgcolor="aqua"><h2>Login</h2></td> </tr></table> <table align="right" style="width:40%"> … | |
Hi Everyone, I am having trouble developing a user registration form for my site. Here are the steps that I want to implement: Page 1: form page 1. the form where the user fills out their information into a form. 2. The form then posts the data back Page1 so … |
The End.