199,113 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for ErickN

I read some of the threads on calculators, but couldn't find anything related with what I need. We have this swing calculator project, that uses buttons and/or a textbox for input, and a different textbox for output. I have done most of it, and is working ok. The problem I …

Member Avatar for NormR1
0
210
Member Avatar for MavrickIT

Here is the project link: [url]http://d-h-enterprise.com/zshop/[/url] user:admin pass:123456 After login I am getting errors those below here Warning: Cannot modify header information - headers already sent by (output started at /home/dhenter/public_html/zshop/menubar.php:4) in /home/dhenter/public_html/zshop/login_c.php on line 26 Warning: Cannot modify header information - headers already sent by (output started at /home/dhenter/public_html/zshop/menubar.php:4) …

Member Avatar for twiss
0
84
Member Avatar for ibakir

i'm working on adobe dreamweaver cs5 and i create a dynamical table contain a lot of training courses , any way if i click on one of those text it will go to the registration page and showing me the text that i clicked on connected with the text ID …

Member Avatar for ibakir
0
200
Member Avatar for epicrevolt

Alright, So I am making a website that will have groups of pages, on those pages it will have the ability for a user to paste a Facebook page URL. How would I go about using their API to retrieve that pages news feed? It baffles me that Facebook expects …

Member Avatar for twiss
0
191
Member Avatar for bio-grad

I posted a similar thread back in Nov and got some great help. I'm modifying the code to be useful to not only compare multiple columns from two separate files, but also to classify each line from @hairpin to determine if the parameters fall within any of the ESThits, outside …

Member Avatar for d5e5
0
234
Member Avatar for epicrevolt

Alright, so I am embarking on a fairly large project that is complete with user profiles. My question is, what's the fastest, most efficient way to store user meta like books, movies, etc. I was planning: metaid | userid | firstname | lastname | movies | books | biography | …

Member Avatar for epicrevolt
0
129
Member Avatar for Saith

Please tell me how bad this code segment is. I figured I would share this horrible code. If it's not as horrible as I think it is, please let me know. Thanks! [CODE] /* Purpose: Create a function to check the input from user. Only valid integer should be returned. …

Member Avatar for vijayan121
0
337
Member Avatar for dmizz002

Hi, I seem to have an issue with this code...its giving me an error at this line: lblDB.Text = currentRecord.ToString(); The error is [B]System.NullReferenceException was unhandled by user code[/B] I have debugged and connection to DB is working and the dataReader does have the record in it but I am …

Member Avatar for svilla
0
130
Member Avatar for djjavo

Hi Am new to this and was wondering if anyone knew a solution to this problem. I am wanting to get information from a text file into different arrays. My current text file has a new line for each driver but I would like it to look something like this: …

Member Avatar for djjavo
0
251
Member Avatar for hawx

What am i doing wrong? [CODE]function error_msg(code) { if (code=="pass") { alert(code); //pops/works $('#error').addClass("notification fail").fadeIn(); //does nothing $('#error').html('<strong>Incorrect Password</strong><span style="color:black"> - Please try again.</span>');//does nothing } }[/CODE] Any help will be appriciated :-)

Member Avatar for levanlong
0
130
Member Avatar for Mike_11

Hi. I'm trying to make a simple question program, my first question doesn't work (if you enter the wrong answer/an answer that isn't an integer, you get stuck in an infinite loop). However, my second question works fine even though the code is quite similar. Sorry if I'm being a …

Member Avatar for AKMafia001
0
407
Member Avatar for dpiss99

Please help me, i dont know what is wrong with this code it return with error: No overload for 'GridView1_SelectedIndexChange' matches delegate 'System.EventHandler' downlaod.aspx: [CODE] <%@ Page Language="C#" MasterPageFile="~/msportal.master" AutoEventWireup="true" CodeFile="Download.aspx.cs" Inherits="Download" Title="Download Page" %> <asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server"> </asp:Content> <asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server"> <asp:Label ID="Label1" runat="server"></asp:Label> <asp:SqlDataSource ID="SqlDataSource1" runat="server" …

Member Avatar for crishlay
0
1K
Member Avatar for apanimesh061

I have tried to make a chatting application using ASP.Net. Following are the names of the files : 1. default.aspx - The first page where the login ID/Passwords are to be entered 2. Chat.aspx - Here the chatting is done 3. rs.js - RemoteScripting Java script 4. Global.asax 5. ChatEngine.cs …

Member Avatar for crishlay
0
115
Member Avatar for Jiaxin

Hello, I need help with this. If in my form i put this, <td><input type="text" name"Example" id="Example"></td> and my sql what would i put? Mine is, $insertQuery = "ALTER TABLE atable ADD column '$example' INT"; this is the error shown, You have an error in your SQL syntax; check the …

Member Avatar for almostbob
0
92
Member Avatar for tunlinaung

It is OK, if you write like this below : [CODE] delegate void mydelegate(); public class testing { mydelegate d1; string str ; public void btnStart_Click(object sender, EventArgs e) // Click Event { ThreadStart ts = new ThreadStart(StartServer); Thread t = new Thread(ts); t.Start(); } public void StartServer() { str …

Member Avatar for tunlinaung
0
293
Member Avatar for apanimesh061

I recently downloaded a source code of Chat Application ..... But when I ran it's solution .... I said that that the IIS server is not installed on this system !!! The box also mentioned a few IIS components ... like; Internet Information Services IIS 6 Metabase IIS 6 Configuration …

Member Avatar for crishlay
0
99
Member Avatar for megha10

In the below snippet,Rewind() wraps up the file but still the no of records exceed the MAX value set. if(no_of_msg_records >= MAX) { rewind(fp_msg); no_of_msg_records=0; } ie the no_of_msg_records in the file exceeds MAX value.

Member Avatar for abhimanipal
0
88
Member Avatar for riahc3

Hello I have a form with a textfield simply named 'textfield' on one page and a table with a recordset on another page. It has a dynamic field/text with this code [code] SELECT codas FROM t WHERE user = colname [/code] and colname is [code] $_POST['textfield'] [/code] I manually replace …

Member Avatar for ko ko
0
92
Member Avatar for illuminatus89

[CODE]#include<stdio.h> #define UN_IN -1 #define COL 10001 #define ROW 5000 int main() { int r,c; long int a[ROW][COL]; for (r=0;r<ROW;r++) for(c=0;c<COL;c++) { a[r][c]=UN_IN; // b[r][c]=UN_IN; } printf("%d %d", a[34][56],a[12][67]); getch(); return 0; } [/CODE] I was solving a problem which required large input. Am using a two dimension array but …

Member Avatar for Narue
0
110
Member Avatar for stevanity

I have just started out with Java. I have been programing with C and C++ for some years now. I have this problem. Im not able to call a non static method belonging to the main class from the static main method. This is the code: [CODE]public class Helloworld { …

Member Avatar for masijade
0
28K
Member Avatar for laghaterohan

Hello, I show a form in the modal pop up which has several drop down lists in it. The problem is that if i select nething from the drop down list then my selected index change event fires and my form gets refresh..how to overcome this problem?? Can we use …

Member Avatar for riteshsoniarya
0
114
Member Avatar for goldenpete

Hi, I am having an issue with OpenCV version 2.1, 2.0 on windows VS2008. I am attempting to open an uncompressed .avi video to grab frames from it. The VideoCapture class works to capture from an attached camera, and it compiles, making me think it is not a location/missing file …

Member Avatar for beano69
0
542
Member Avatar for SBox

I Programmed A CMS ( Control Mangament System ) With ASP And When I Programmed The Search Engine This Error Messege Apears : [CODE]Microsoft JET Database Engine (0x80040E14) Syntax error (missing operator) in query expression '??????? like '%??? ??????%' or ?????? like '%??? ??????%' or ????? ??????? like '%??? ??????%' …

Member Avatar for guruben
0
331
Member Avatar for masterofpuppets

Hey guys, Here's the problem I have: I am writing a server application in Java using the ServerSocket and Socket classes. I have an instance of ServerSocket which listens for connection and accepts them. The server runs a website that requires users to log in using an e-mail and a …

Member Avatar for masterofpuppets
0
1K
Member Avatar for Macko888

HI Everyone, Having a bit of trouble with some array`s... here is the situation: I need to get the contents of 1 array and compare them to another array and if numbers from the 2nd array are in the first array, i want to unset it from the 2nd array. …

Member Avatar for Macko888
0
116
Member Avatar for pril

please help me with this.. (this s the function)- i don't know how to construct a code to test if array integer is empty using bool..pls help me.. (this s the function)- pls also include the main.. thanks bool isArrayIntEmpty(int *numbers)

Member Avatar for pseudorandom21
0
115
Member Avatar for jeevanism

The case scenario is like I have to check all available usernames/names from the databases whenever I type the letters instanly. For example:- When type "je" in the userfield, it should show all combination of names starting with "je" inline. I am attaching a picture as sample. Its indian railway …

Member Avatar for urtrivedi
0
204
Member Avatar for navi17

Hello, There will be two users on my site. one is free and other is paid. So for paid there will be seperate registratoin form having around 20 input fields. Now paid registration is around 97$. i am using 1shopping cart for payment. Now how the registration will work? Will …

Member Avatar for vibhaJ
0
162
Member Avatar for Sorcher

Hello guys, i got a small problem here. I can write and press "send" to submit a private message to a memeber, right... but if i refresh the page, the message gets sent again.. Anyone know a small php script i could put on top of the page to avoid …

Member Avatar for vibhaJ
0
107
Member Avatar for fadliraihana

i cant seem to solve this. how do i change the cell background color using php? this is what i got; <tr> <td ><span class="style2">1</span></td> <td >PERAK IP-F002</td> <td bgcolor=<? if($a1==1) echo "#00ff00"; else echo "#ff0000"; ?>>&nbsp;</td> <td bgcolor=<? if($a2==1) echo "#FF0000"; else echo "#00FF00"; ?>>&nbsp;</td> <td bgcolor=<? if($a3==1) echo …

Member Avatar for vibhaJ
0
212
Member Avatar for jacob21

Hi,I am working on a php ajax dropdownlist. What i am trying,When a user select january month it show 31 days similarly in march 31,april 30,may 31 n december. in feb month it should take leap year. Need suggestion

Member Avatar for vibhaJ
0
83
Member Avatar for yongj

So I have two databases that have separate pieces of information that I need together. Instead of running queries on each database I was told that I can join the two databases together so that I can declare variables from both databases without worrying about which database was specified or …

Member Avatar for vibhaJ
0
156
Member Avatar for nocloud

I have a custom date class that is constructed in the following way: [CODE] date date_file("dates.txt"); [/CODE] I want to put this object into a new class as a private member, e.g [CODE] //the mem_data class======================================// class mem_data { public: mem_data(int,int,std::string); ~mem_data(); private: std::vector<reader> mem_store; int complete; date date_file; }; …

Member Avatar for mike_2000_17
0
278
Member Avatar for Besherek

Hey guys, I'm trying to update an existing site and I'm having a few issues with an array in terms of sorting the results of an array into a simple div layout. It currently works and the output is working fine. However I want to define a category as a …

Member Avatar for Besherek
0
178
Member Avatar for drax12

Hey guys, I'm want to retrieve results from the database, where datetime picker given value, is equal to database value. var _check = (from day in Check.tbl_employees where day.d_from== _frm && day.d_to == _to select new { day.desg_id, }).FirstOrDefault(); datetime picker gives a value with its time,but i'm only interested …

Member Avatar for drax12
0
714
Member Avatar for pseudorandom21

So.. I really don't know anything about modern databases at all. How can I learn to work with databases? Is it simple to create one? What should I do?

Member Avatar for kvprajapati
0
89
Member Avatar for Zaffron

Obviously, it doesn't work. So what I'm trying to do (this is all very rough at the moment, merely an experiment/test to see if I can get it to work) is have a method under the player class that, when called, takes the value of the requested item, sees if …

Member Avatar for Zaffron
0
113
Member Avatar for jens123

Hello guys! :) I have problem finding out, about why the author if the code i have. Uses array like this: [CODE]int past[1000][2]; and says that 0 is side, and 1 is up.[/CODE] Does he mean that: [CODE]past[pastCounter][0]; is for up,and down (x) past[pastCounter][1]; is for sides (y)[/CODE] Appreciate all …

Member Avatar for mrnutty
0
175
Member Avatar for MasterBerd

Hey Guys! Below is my code of Battleship game. I keep getting "Process terminated due to StackOverflowException." error. It keeps pointing to [CODE] char[,] Grid = new char[10, 10]; [/CODE] and i have no idea what it's asking to fix. Please help me. Thanks! [CODE] using System; using System.Collections.Generic; using …

Member Avatar for MasterBerd
0
1K
Member Avatar for maikens

Hi, I am having a problem with an assignment for a C++ course. I have to make a Game of Life simulator (predator and prey). There are two organisms, lion and ant, and the lions eat the ants. My problem is that for some reason I can't fathom, the lions …

Member Avatar for daianahoney
0
319
Member Avatar for 24x24

OK I have a project due tonight at midnight and I know I should have posted sooner but it seemed like such simple things that I just knew I could do it on my own. I was wrong. I need your help. I have a program that essentially makes a …

Member Avatar for NormR1
0
390
Member Avatar for WolfShield

So, I am working with some code I don't understand. Here is the file: [CODE=Python] import sys import os def change_ext(directory, old_ext, new_ext): for f in os.listdir(sys.argv[1]): base, ext = os.path.splitext(f) if ext[1:] == sys.argv[2]: os.rename(f, "%s.%s" % (base, sys.argv[3])) if __name__ == '__main__': if len(sys.argv) < 4: print "usage: …

Member Avatar for WolfShield
0
430
Member Avatar for didi00

Hi guys, I'm trying to modify the plaincart for my needs but I have problem with the cyrillic characters. When I call the data from the database, all I get is ???????. My database is ok, the collation is utf8_unicode_ci and I can see my characters correctly in phpMyAdmin. for …

Member Avatar for didi00
0
608
Member Avatar for annetria

I'm receiving the following errors when trying to read from a file: java.io.FileNotFoundException: rates.txt (The system cannot find the file specified) at java.io.FileInputStream.open(Native Method) at java.io.FileInputStream.<init>(FileInputStream.java:120) at java.util.Scanner.<init>(Scanner.java:636) at MortgageCalculator4.submitButtonActionPerformed(MortgageCalculator4.java:187) at MortgageCalculator4.access$000(MortgageCalculator4.java:20) at MortgageCalculator4$1.actionPerformed(MortgageCalculator4.java:70) at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995) at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318) at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387) at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242) at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236) at java.awt.Component.processMouseEvent(Component.java:6288) at javax.swing.JComponent.processMouseEvent(JComponent.java:3267) at java.awt.Component.processEvent(Component.java:6053) …

Member Avatar for annetria
0
136
Member Avatar for Labdabeta

Is it possible to do any logic with gl lists, I am trying to make a wrapper class for them and I have this code in the compile function: [CODE] glNewList(model1,GL_COMPILE); glBegin(GL_TRIANGLES); int pos=0; for (int i=0; i<numcmds; i++) { if (cmdtype[i]=='v') { glVertex(cmdarg[pos++],cmdarg[pos++],cmdarg[pos++]); } else if (cmdtype[i]=='t') { glTexture(cmdarg[pos++],cmdarg[pos++]); …

Member Avatar for Labdabeta
0
241
Member Avatar for porterrj

hello! I need a program that validates the imput of dates. (Checks for leap years etc.) The user enters: mm/dd/yyyy The problem is, I have trouble with complex programs. I came up with this program, but i know it's too basic for what she wants. I need to have arrays …

Member Avatar for NathanOliver
0
464
Member Avatar for bibiki

hey there again, I am trying to build a small mechanism that lets me store product names and prices on a produktet.txt file. the file should hold lines as follows: product1 price1 product2 price2 . . productN priceN So, I built a small panel with three rows and one column. …

Member Avatar for bibiki
0
146
Member Avatar for dyingatmidnight

Hello hello. What I'm trying to do is show or hide div layers based upon the previous URL. I have a user panel for a library database project for school that lists all the books a user has out as well as fines, user info etc. When I go to …

Member Avatar for diafol
0
283
Member Avatar for HelloPeople1

Hi We are high school students working on a final project for our course. We are making a top down shooter type game using pygame (its kind of like boxhead), and have made made all of our game except for the ai. We really need some help with this, so …

Member Avatar for raptr_dflo
0
317
Member Avatar for jarograv

I have this code: [CODE]import csv from math import * distances=[] pos=0 tally=0 target_x=input("Please enter the X coordinate of the target city: ") target_y=input("Please enter the Y coordinate of the target city: ") count = sum(1 for row in csv.reader( open('cities.csv') ) ) cityname = csv.reader(open("cities.csv", "rb")) citynames = [] …

Member Avatar for TrustyTony
0
101

The End.