199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for super-duper

I'm trying to create a delete button that lets a user "delete" an entry from mysql database. I have a demo.php page, where my php connects to my database and inserts data into it. And I have a demo-form.php which is to display the form and when "submit" button is …

Member Avatar for vaultdweller123
0
830
Member Avatar for CityThrille

Good day, geeky guys. :cool: I have some reactions and questions about DirectX and OpenGL... Suppose (for example only,) I was hired by a big game company to spearhead game developer teams then, I want the game we will produce, to make it versatile in any computer regardless of computer …

Member Avatar for BCBTP
0
255
Member Avatar for Gilbert_1990

i have this code and i am trying to make this [CODE]cout << (rand () % (1 + max - min) + min ) << "\t";[/CODE] into something like this [CODE]cout << rand (range) << "\t";[/CODE] and this the code [CODE]#include <iostream> using namespace std; int main () { srand …

Member Avatar for gerard4143
0
73
Member Avatar for BCBTP

I am not really good at HTML, (I assume this is HTML, at least, I do C++ mainly). I found this thing called "passwordreset.htm" and I got a little curious(this is on a school computer). I decided to open it, and I found something that looks like a password reset …

Member Avatar for BCBTP
0
269
Member Avatar for razamughal67

Hello Every one Please Help me on My problem i want to close a application proccess in taskmanager using vb6 Example: we open a notpad.exe and we want to close it using visual basic 6.0 to this way we have a Command botton Private Sub Command1_Click() ' Here my command …

Member Avatar for Jx_Man
0
2K
Member Avatar for straylight

say for example the first 5 apples you buy cost .50 and the next 5 apples you buy after that cost .40 and every apple after that is .30. How would I go about creating a function that could tell okay apples 1-5 cost .50 then add any extra in …

Member Avatar for straylight
0
136
Member Avatar for HasNor

Hi all, here i got a problem where i want to delete file uploaded..my script just remove from database but not remove from directory.. how can i delete from database and directory at a same time?? Please help me..

Member Avatar for HasNor
0
123
Member Avatar for caltech

Here's my full assignment below, and then the code I have so far to follow. I'm up to Step 4 of the assignment... need some insight to kickstart my flow. Much appreciated. [QUOTE]The ABC Corporation wishes to review a group of its products based on their performance in the prior …

Member Avatar for caltech
0
139
Member Avatar for Beautifullove09

Hi I"m receiving this on my program. I know that this happens when i choose a location outside of the map, but how do i fix this? Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: -1 at GameMap.getLocation(GameMap.java:56) [COLOR="red"]return map[xdimension][ydimension];[/COLOR] at Game.startGame(Game.java:87) [COLOR="Red"]System.out.println("New Location:" + mapMgr.getLocation(X,Y).getLocation() + ", "+ mapMgr.getLocation(X,Y).getDescription());[/COLOR] at Game.main(Game.java:168) [COLOR="red"] …

Member Avatar for NormR1
0
119
Member Avatar for phorce

Hello, In my class I have a method that basically does this: - Reads in characters from text file (as a string) - Converts the characters into an integer - Stores the values into the integer Here is the code: [code] bool Loader::Read(string theFile) { strRepositry = theFile; string theData …

Member Avatar for phorce
0
122
Member Avatar for Trizocy

Hello there I was wondering if anyone could help me with this problem See I running a site where people can log in, and everytime they log in, a cookie is set, based on their username. so when a user complete a offer, my website send a link to a …

Member Avatar for vaultdweller123
0
120
Member Avatar for raul8

Hi, I simply want to append a string at the end of another string. But instead, it is replacing in the beginning. [CODE]#!/bin/bash str1="/user/test" echo $str1 echo ${str1}/program[/CODE] I tried other techniques too but same result

Member Avatar for Fest3er
0
133
Member Avatar for cjohnweb

I have a project that, instead of using MySQL, I am supposed to use txt files to manage data. I have no say in this, I'm doing the project for a client. So I wrote a test file with functions for writing these data files, reading, etc. But it's not …

Member Avatar for cjohnweb
0
173
Member Avatar for pizzipie

I am just beginning to get the idea on how to put together the above four source codes to produce, in this case, a Contact Database/Display program. On a 0-10 learning scale I feel like a 3. My current problem is: ContactRevise3.html calls revise.php with the following script: [CODE] <script …

Member Avatar for vaultdweller123
0
674
Member Avatar for kikic

I made union of two strings with letters. I need to write function in C++ which sort letters in union. example union is "acefd" I need result "acdef" Could someone help how to write the function for this in C++?

Member Avatar for Bench
0
260
Member Avatar for ProgrammingGeek

How would I do this [CODE] class test { public: int* num; }; int main() { test *d = new test; d->num = new int; d->*num = 3; cout << d->*num; } [/CODE]

Member Avatar for ProgrammingGeek
0
139
Member Avatar for wallet123

[CODE]public class Array { /** * @param args */ public static void main(String[] args) { // TODO Auto-generated method stub String ctr=""; int size= Integer.parseInt(JOptionPane.showInputDialog("Enter any 10 numbers:")); String num[]= new String [11]; for (int i=1; i<=size;i++){ num[i]=JOptionPane.showInputDialog("num["+i+"];"); ctr=ctr+num[i]+ " "; } JOptionPane.showMessageDialog(null, ctr); } } [/CODE] thats my code, …

Member Avatar for wallet123
0
1K
Member Avatar for radiat

I've a question on dynamic memory. As i understand it, i can create a dynamic memory array using: xxx= new int [z]; Then I can set the value of 'z' to be whatever value i want during the program. But if i create a dynamic memory array using a predefined …

Member Avatar for Bench
0
191
Member Avatar for marios_neo

Hello guys, i'm trying to calculate the value of checkbox that chosen (onclick or onsubmit calculate the value).What i'm doing wrong? [CODE] <script type="text/javascript"> //<![CDATA[ function calculate_total(id) { // get a reference to the form using getElementById var theForm = document.getElementById( id ), total = 0; // DON'T use getElementById …

Member Avatar for marios_neo
0
110
Member Avatar for sandeepparekh9

Ever Thought if it was possible to not WebBrower control and use the Firefox Browser in your c# window Application...?? Yes ,, It is possible using GeckoFx wrapper class for C#.net and vb also. You will need the Followings: 1. [URL="http://code.google.com/p/geckofx/downloads/list"]GeckoFx Wrapper[/URL] 2. [URL="http://mirrors.directorymix.com/mozilla/xulrunner/releases/1.9.1.2/runtimes/"]Xul Runner[/URL] (Download the zip file from …

Member Avatar for newlonator
0
936
Member Avatar for Syrne

Hi there, I wrote a VERY simply program attempting to use a recursive function to calculate a math problem and spit it out onto a table. It prints once and then I'm getting a stack oveflow error on line 8 and then line 12: [CODE] package recurtable; import java.text.*; public …

Member Avatar for Syrne
0
128
Member Avatar for straylight

Hello, I am a very entry level python user so my knowledge is behind at the moment but I am have a problem creating a function that will take an x range and pass it through as a parameter to my function and output all the results. For example this …

Member Avatar for joehms22
0
141
Member Avatar for compsci91

Question: So basically using the class below I want to create polynomials as can be seen in the example: Command: s Set coefficient. Give A n c: x 3 33.33 Command: o Output poly. Give A: x Polynomial x: 0x^0 + 0x^1 + 0x^2 + 33.33x^3 Command: s Set coefficient. …

Member Avatar for compsci91
0
205
Member Avatar for Hypnos_16

I'm making a maze game for a project in school, and as such i need to create boundaries for the game. not only for the outer walls but also inner ones of different and sometimes not perfect squares. I was just wondering how i should go about doing this? Is …

Member Avatar for NormR1
0
213
Member Avatar for phorce

Hello I'm working on a project, and I have the following classes: [LIST] [*]Loader - This loads the contents of the text file [*]Matrix - This processes the data that has been loaded [/LIST] Now I'm using association, Loader -> Matrix In my matrix class I have a method that …

Member Avatar for histrungalot
0
164
Member Avatar for fishsticks1907

Hello, i'm new to python, I mostly program in C++. i'm adding values, but it doesn't give me the right answer. [CODE] x = input("Enter number: "); y = input("Enter a another number: "); z = x + y; print("Answer is: " + z); [/CODE] if i enter 5 + …

Member Avatar for woooee
0
109
Member Avatar for cdea06

I'm trying to improve the validity checks in my program, but no matter what I do, I can't seem to come up with one that catches the following: 1) If you input "enter" "enter" the program reads it as a valid anagram. 2) if you input all number "33467" "22113" …

Member Avatar for cdea06
0
86
Member Avatar for floatingshed

I have a wx Gui that gathers all the necessary info and starts an external command line app. Whilst it is running my gui freezes as you'd expect so I've been experimenting with putting the external app in a thread of its own. My original code ends with the line: …

Member Avatar for floatingshed
0
147
Member Avatar for layneb131

So im trying to create a times table: Write a program to print a multiplication table (a times table). At the start, it should ask the user which table to print and how high the table should go. The output should look something like this: Which multiplication table would you …

Member Avatar for woooee
0
1K
Member Avatar for faithful4ever

I have an array of structures: [CODE]typedef struct { char name[20]; int ID; int status; } seat;[/CODE] Then, basically, I'm trying to print out the list of empty seats in a reservation system. [CODE]void listEmpty(seat plane[MAXCAP]) { int i; for(i = 0; i < MAXCAP; i++) { if(plane[i].status == 1) …

Member Avatar for Ab000dy_85
0
223
Member Avatar for vimtojoe

Trying to help my brother who has just started learning Python at school. He's not the brightest so any help is appreciated. I consider this quite hard for someone who has barely started, although he has missed a few lessons through illness. Solution is welcome but please try to explain …

Member Avatar for ihatehippies
0
207
Member Avatar for suneye

hello, i am using the item selection changed property inorder to control the items in listview,when the user selects first any item every thing goes well but when he changes selection it gives this exception : System.ArgumentOutOfRangeException was unhandled Message=InvalidArgument=Value of '0' is not valid for 'index'. Parameter name: index …

Member Avatar for suneye
0
246
Member Avatar for gameon
0
126
Member Avatar for sahmeme

the error goes like this: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: 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 'order (custNo, dateOrder, totalPayable) VALUES ('', '2012/Feb/19 16:09:02', '0' at line 1 // HELP T_T. this project is to …

Member Avatar for harinath_2007
0
302
Member Avatar for TIM_M_91

Hi there guys can someone explain to me how I can increment a value within a field in my database each time I execute my query?. As I cannot seem to find a way to do this. Below is my structure for reading + writting to my database if you …

Member Avatar for TIM_M_91
0
176
Member Avatar for vizz

I want to display [CODE]»[/CODE] But it is outputting [CODE]�[/CODE] What is the problem?

Member Avatar for pritaeas
0
62
Member Avatar for wildplace

let say, i have a House object; House* someHouses = new House[100]; -----fucntion call... may or may not add stuff to someHouses ------ now, i want to get to the last position that haven't used yet. i tried to check NULL, and 0, both doesn't work. how can i check …

Member Avatar for mrnutty
0
5K
Member Avatar for Valiantangel

Suppose that the tuition for a university is $ 10,000 this year and increases 5% every year. Write a program that uses a loop to compute the tuition in ten years. Write another program that computes the total cost of four years worth of tuition starting 18years from now. I …

Member Avatar for hfx642
0
126
Member Avatar for Labdabeta

Is this a viable BIGENDIAN test: [CODE]int tmpvaluethatwillneverreallybeused=1; bool bigendian=(*(char*)(&tmpvaluethatwillneverreallybeused)==1); void myFunction() { if (bigendian) { //do big endian specific code } else { //do little-endian specific code } }[/CODE]

Member Avatar for rubberman
0
151
Member Avatar for manoj_93

I need to find the exact operation count and i got confused over the below 2 Is a=b+c+d considered as one instruction or 2 instructions? Similarly is a+=b one instruction or 2?

Member Avatar for tungnk1993
0
150
Member Avatar for SumPersonGuy

Basically, the assignment is to create a huge integer class by using a singly linked list, wherein each element of the linked list holds one digit of the number of the huge int. I only have to do addition and multiplication, and addition works. Multiplication *should* work, as far as …

Member Avatar for tungnk1993
0
158
Member Avatar for choosechrist

Hi, I did checkout many solutions on daniweb but couldn't get anything positive. i am new to vb.my idea to is to cycle through the cell values of particular column in a datagridview. and if duplicates are found, display them in a message box. Dim wacko As String wacko = …

Member Avatar for kingsonprisonic
0
161
Member Avatar for aparichit4evr

Hello friends...I'm having confusion about binary operator overloading in the following program. The question goes like this. Qn. Create a class time with two member variables as hours and minutes of integer type,write default,parameterized and copy constructor. Overload necessary operators to compute T3=5+T1+T2, where T1,T2 and T3 are time objects. …

Member Avatar for tungnk1993
0
281
Member Avatar for senergy

Hello, about 3 months ago I made simple chat using MySQL++ which is working fine, login function: [url]http://pastebin.com/Mdup4zi6[/url] but today I'm creating Control Panel, I've copied and changed this function a little bit, but i'm getting 0 results (if I copy syntax to navicat I'll get password so...) login function: …

Member Avatar for senergy
0
111
Member Avatar for ilovejava

I have a question why is important to supress warnings in java, i notice my professor do that all the time [CODE] @SuppressWarnings("unchecked") [/CODE]

Member Avatar for rubberman
0
114
Member Avatar for jayhall

my Table looks like this id make client price cart 1 bmw day 500 5 2 gt3 mr king 450 9 3 gt3 mrs johan 600 9 4 bmw mr emir 350 2 5 golf ohar 150 5 6 golf mr smith 850 6 7 bmw mr smith 451 7 …

Member Avatar for diafol
0
662
Member Avatar for Dhanesh10

Here is my java connectivity code to Oracle [CODE]public class OracleConnectivity { public Connection con; public Connection getConnection () { try { Class.forName("oracle.jdbc.driver.OracleDriver"); con=DriverManager.getConnection("jdbc:oracle:thin:@127.0.0.1:1521:dhanesh","dhanesh","root"); Statement s=con.createStatement(); s.executeUpdate("insert into test (num,txt) values (2,'hi')"); s.close(); con.close(); } catch(Exception e) { System.out.println("Connection failed"); e.printStackTrace(); } return con; } public static void main(String[] args) …

Member Avatar for database_nitesh
0
452
Member Avatar for daydie

hey guys, im wondering if its possible to ping a website while logged into the website so you can ping a certain page which you couldn't if you was not logged in. Any 1 shed any light on this please? I seen CMD ping through VB but that doesn't have …

Member Avatar for tungnk1993
0
159
Member Avatar for abelingaw

I'm having problem trying to find out what is wrong with a code. Here's what it is supposed to do. 1. The messagebox should only appear if a record already exist in the database 2. If there is no record of the same information, then it would save the new …

Member Avatar for abelingaw
0
154
Member Avatar for suneye

Hello, I am trying to read data from a file and make each saved item in the file an option on the combobox so that the user can select whatever he wants .The problem is in adding items to combobox not in reading from file .can anybody help me plz …

Member Avatar for Ancient Dragon
0
153

The End.