199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for realzahed

i've got a project to be done using javascript and html....i don't know how to pass the arguments from <input type="text"> to the javascript function i'm using in my program. i just want the javascript script to calculate the input given by the user and return the answer. here is …

Member Avatar for MarPlo
0
192
Member Avatar for tendaimare

I am trying to delete a record from a table by using dao recordset. Currently I am working with the code listed below. Unfortunately i've realised that this code only deletes the first record in my table, whereas I am looking to delete a record form the table with an …

Member Avatar for Reverend Jim
0
221
Member Avatar for jemz

Hi to all, I need to know how to use the cookie in php,my problem is that when i clicked the log-out.and then i will go to my browser and click the back button.it will go back to the user where it is still logging in.but what i want is …

Member Avatar for jemz
0
140
Member Avatar for Stjerne

Hello, So I've big project (about conserts) going on, and this project, I'll handle all GUI. Since we need a few windows (one for registration artist, hall, concert. one for "Buy ticket", one for reviews etc.), we decided to put all these things on tabs, so we only have one …

Member Avatar for NormR1
0
208
Member Avatar for tubesnube

Hi, I was wondering could anyone help me here. In my program, the user selects a document and fill's it out, submits it and receives an email with the information they filled out in. What I am trying to do now is that when the user selects document and submits …

Member Avatar for cereal
0
144
Member Avatar for jerryjerry

Hi all, I have implemented overloaded function for operator new. In this function I have not allocated any memory still while exiting from program it is getting crashed. Code is as below: class A { public: int a; int b; A() { cout<<"Inside A::A()"<<endl; } void* operator new(size_t s) { …

Member Avatar for L7Sqr
0
241
Member Avatar for beginneronce

Hey guys, i am a beginner in c++ and i don't know what's wrong with my code. i'dont get any errors, but when i run the programme the following: "... Line: 251 Expression: vector iterators incompatible ..." I think there is a problem with "b.getmark()" and "b.getcoursename()" but i don't …

Member Avatar for beginneronce
0
717
Member Avatar for RainbowMuffin

Hello, I'm fairly new to C++, and i would like to know how to make a program that uses IO stream? like, i want it to have settings feature where the user would enter thier info on a form, and it saves as a .txt or another format file, and …

Member Avatar for thines01
0
142
Member Avatar for mc3330418

I have a header file. #include <iostream> class coinReturn { public: coinReturn(); coinReturn(int quarters, int dimes, int nickels, int pennies); void setChange(int quarters, int dimes, int nickels, int pennies); void getChange(int& quarters, int& dimes, int& nickels, int& pennies); void print (); private: int countQuarters; int countDimes; int countNickels; int countPennies; …

Member Avatar for mc3330418
0
344
Member Avatar for paoi00

My textbox6 represents the dateprinted of my asssessment form.. i code it like this : TextBox6.Text = My.Computer.Clock.LocalTime.Date then in the my SAVE Button coded like this : Dim cn As OleDbConnection If TextBox1.Text = "" Then MsgBox("Enter a Student Number! ", MsgBoxStyle.Information, "Warning") ElseIf TextBox1.TextLength = 9 Then con …

Member Avatar for paoi00
0
206
Member Avatar for dsmoore

I have the following code that I cannot figure out how to get to work: namespace Project2 { public static class Variables { public static List<string[]> tran1; public static List<string[]> tran2; } } private void Submit_Click(object sender, EventArgs e) { //Find the schedules // Variables var; string[] transaction; transaction = …

Member Avatar for dsmoore
0
222
Member Avatar for eburlea

Hello, all. Please advise how to use $_POST in cycle. I have the following code: 1. <?php 2. if (isset($_POST['id1'])) {$id1 = $_POST['id1']} 3. if (isset($_POST['id2'])) {$id2 = $_POST['id2']} 4. if (isset($_POST['id3'])) {$id3 = $_POST['id3']} 5. ?> I have tried: 1. <?php 2. for ($x=1, $x<=3, $x++) 3. { 4. …

Member Avatar for pritaeas
0
100
Member Avatar for Twin802

I need some help with programming python. I need to have what it would normally state in the terminal (Linux Mint 12) to be stated in something for example the search bar. Thanks for your help.

Member Avatar for Twin802
0
108
Member Avatar for kevindougans

Hi there, Can anyone think why my jQuery panoramic plugin (http://test.cafemamboibiza.com/en/ibiza#ui-tabs-4) will only let me scroll once and not click to scroll again inside my site even though when i have it standalone (http://test.cafemamboibiza.com/pan.html) it works as expected. It seems to let me scroll around once perfectly but once that …

Member Avatar for kevindougans
0
95
Member Avatar for loserspearl

I can't see where the error in my CSS document is, it says location is -1, -1 which isn't inside the document, tried different ways of defining the column and "up" and "down" images and neither seem to work. [Xerces-J 2.9.1] Checking "nasdaq.css" for Well-formedness ... Ln -1 Col -1 …

Member Avatar for pritaeas
0
124
Member Avatar for collinskawere

hello! am trying to do a simple search engine, but whenever the user types a search term, the script returns the error: unidentified variable: name. name was the input name in the html code. ie (input name="name"). thanks. <?php $db = mysql_connect("localhost", "root", ""); mysql_select_db("room_p7", $db); $query = "select name, …

Member Avatar for collinskawere
0
152
Member Avatar for adit_kr

I am using firefox 9.0.1 under ubuntu 11.10. Suppose I am lying that I am using internet explorer 8 under windows vista. (by manipulating http request headers). Is there any way for the server to find this out? (at least the fact that I am using Ubuntu not Microsoft Windows) …

Member Avatar for cereal
0
142
Member Avatar for Behseini

Hi, I am trying to creat a very simple session between 3 php pages as:index.php ,validate.php and target.php index.php <?php session_start(); $_SESSION['uid'] = 'test'; ?> <!DOCTYPE HTML> <html> <head> <title>Start A Session</title> </head> <body> <h1>Welcome to Heaven</h1> <form method="POST" action="validate.php"> Your Name: <input type="text" name="name" value="" /> <input type="submit" value="Submit" …

Member Avatar for Biiim
0
143
Member Avatar for Muni123

Ok so I have made ASP.NET website I have used Access database 2010 but I am having problems with one particular thing when I try and run the website I am getting this error which says OleDbException was unhandled by user code and Could not find file 'C:\Program Files\Common Files\Microsoft …

Member Avatar for Lusiphur
0
235
Member Avatar for blake81

I am trying to code a number guessing class and client. The issue/problems I am having with this class/client is that my number guess either ends up too high or too low and in top of that it loops the number twice when it should once. Number generated from 0 …

Member Avatar for stultuske
0
144
Member Avatar for lfmconsummates

I'm trying to have HTML generate random background colors using Python. What I have so far is: `print "<body bgcolor='%s'>" % choice` what python code should follow?

Member Avatar for prerakmody
0
392
Member Avatar for jhedonghae

hello! i'm trying to implement an audit trail in my system and what i wanted is that when the user click the login button, infos like username, level of access, time in and date will be save in the database and fortunately i have done it and here is my …

Member Avatar for jhedonghae
0
1K
Member Avatar for collinskawere

my script returns this error: Warning: mysql_fetch_assoc() expects parameter 1 to be resource, boolean given in C:\wamp\www\php_test\user_inter.php on line 17 <?php $db = mysql_connect("localhost"); mysql_select_db("room_p7", $db); $query = "select * from members"; $result = mysql_query($query); while($record=mysql_fetch_assoc($result)){ while(list($fieldname, $fieldvalue) = each($record)){ echo $fieldname.": <br>".$fieldvalue.":<br><br>"; } echo "<br><br>"; } ?>

Member Avatar for mohamedasif18
0
237
Member Avatar for neuralcomplex

the simple thing i want to achieve is to be able to browse a file on my system an then use a servlet to finally store the file as a byte stream to my DB2 database. Initially i started by using coding the servlet part as a java application by …

0
118
Member Avatar for pleasecompile

I ask the DaniWeb Community for guidance in resolving the following NameError. I have attached the import (OpenOPC for Python Library Module), but basically my code: import OpenOPC opc = OpenOPC.client() produces this NameError: >>> import OpenOPC >>> >>> opc = OpenOPC.client() Traceback (most recent call last): File "<pyshell#4>", line …

Member Avatar for pleasecompile
0
6K
Member Avatar for TheFearful

Hey guys, I don't know where to get started in this. I pretty much only have the header file and I don't even know if that is correct. I don't know what the question is asking other than it is asking me to open up a text file. Any suggestions? …

Member Avatar for rubberman
0
173
Member Avatar for agilocha

hi... anybody want to help me to solved my problem i want to get value from gridview column into textbox. i have DGS4 as my gridview . and i want to use query like i used bellow. i uses some code from @luc001 but it stil not working. this is …

Member Avatar for poojavb
0
199
Member Avatar for don't give up

hello :) please I need your help :( give me small example can do this: how can display information in page if selected ,,, look at this picture ![help2](/attachments/large/3/help2.png "help2")

Member Avatar for veedeoo
0
157
Member Avatar for vizz

I'm using following latest files, jquery.min.js jquery-ui.js When I create javascript functions based on above both files, that works well on localhost, but as I upload them to server for become online it goes slower 'n slower 'n slower. Why scripts goes slow on effects? I have tried multiple hosting …

Member Avatar for vizz
0
113
Member Avatar for Tygawr
Member Avatar for pattmorter

Hey everyone. I just finished a cross product calculator program for the fun of it trying to test stuff outside of my rage of knowledge. I tried a couple new things like strings and cin.fail() so if someone would read over it and tell me what I did right/wrong that …

Member Avatar for pattmorter
0
289
Member Avatar for shean1488

Hi everybody, When I tryed to compile a C program, compiler gave me error, that I haven't see before. Please tell me what does it mean? and what are the possible reasons, this error occure. blade71(20)% gcc lineholder.c -o lineholder Undefined first referenced symbol in file main /tools/gcc/bin/../lib/gcc/sparc-sun-solaris2.8/3.4.2/crt1.o ld: fatal: …

Member Avatar for shean1488
0
370
Member Avatar for Dmiller071

Hi all, I need to write an algorithm that can find intersections, dead-ends, and turns within a maze. Below is the code I currently have. You're welcome to read through it, though I'm not sure if it will help in any way. The basic information: - Maze image file is …

Member Avatar for Dmiller071
0
174
Member Avatar for NachoLobato

I have to create a game, in which the computer chooses randomly a word out of 5 and randomizes its characters, so that the user has to guess the word. He can also get a hint of the computer. I have started the code, but dont know how to continue: …

Member Avatar for Ancient Dragon
0
219
Member Avatar for jia khan

**My Question is How i can make my project portable.whenever i run my project on another computer it gives an error for wrong path. please tell me any code which can choose its path in resourses or debug folder to make a file in project.and whenevre use that file its …

Member Avatar for codeorder
0
196
Member Avatar for yamigx

Hi all.. I wrote a program for this: A C program can represent a real polynomial p(x) of degree n as an array of the real coefficients a_0,a_1,…a_n (a_n≠0). 〖p(x)=a_0+a_1 x+a_2 x〗^2+⋯+a_n x^n Write a program that inputs a polynomial of maximum degree 8 and then evaluates the polynomial at …

Member Avatar for zeroliken
0
411
Member Avatar for nekoleon64

// Planet.h "Header file" #include <string> using namespace std; class Planet { public: // Constructors Planet(); // Post: your weight and the Planet's weight set to Earth. Planet(string); // Takes in string value and sets it to planet name, or defaults to earth if not valid float PlanetWt(float) const; //observer, …

0
217
Member Avatar for Sibuns

Hey! I have one problem with sorting matrix. So i want to sort the first row in matrix alphabetically and than copy all the values of other rows to matching char. Example: R E D b g s a v g a a sorting first row, and copy other char …

Member Avatar for Sibuns
0
143
Member Avatar for hatrickwah

For a lack of words, I'm confused with my server at the moment. I moved an old site on ASP/Access over to ASP/SQL Server 2008 Express, and now some data appears, while other data does not. This one is an odd ball to me. I have data cells of the …

Member Avatar for hatrickwah
0
132
Member Avatar for Danny159

Hey guys, I have a script that will resize an image, .jpg, .png or .gif The .jpg works fine! But the .png doesnt work at all and I just cant get it to work... On from URL I get the following: ‰PNG  IHDR,Éᘧ Why is this? I have a …

Member Avatar for Danny159
0
179
Member Avatar for pakiali007

ile problem 2. Write a function named countTriWords() that opens a file for reading, reads each line in the file, and returns the number of three letter words in the file. For simplicity, you may ignore the fact that some characters are punctuation and treat them as part of the …

Member Avatar for hughesadam_87
0
110
Member Avatar for Labdabeta

I want to test some graphics work I am doing with the Utah Teapot model. The issue is that all the data I can find on it uses bezier patches (which I have no clue how to render) does anybody know how I could get the data in a form …

Member Avatar for Labdabeta
0
525
Member Avatar for jakubee

**Hello everyone, I dont know if im placing this in a good place. I have a problem with my application. Its a simple application with connecting to database, retriving info and populating table. I changed the apache tomcats context.xml to looks like this:** <Resource name="jdbc/test" auth="Container" type="javax.sql.DataSource" maxActive="100" maxIdle="30" maxWait="10000" …

0
131
Member Avatar for phummon

Hi everyone, I’m Pete, moderately-experienced C++ user who is always looking for better ways to do things. Let me ask you guys about a problem I’ve scratching my head over lately. Suppose I’m writing a program designed to simulate a large company. I’m interested in tracking each company employee by …

Member Avatar for phummon
0
212
Member Avatar for JenniferT1980

I have been working on this for a while. I'm new to python programming. I've been designing a user interface. I origionally created a python file for each interface. Such as the two below. mainmenu.py from Tkinter import * class mainMenu: def __init__(self, master): frame = Frame(master, width=500, height=400, bd=1) …

Member Avatar for JenniferT1980
0
182
Member Avatar for tyu4

I'm completely lost with this assignment code. The objective is to modify this program that originally asked the user for an input 1-12 for a month, and it outputs the number of days in that month. The modifications would make it so that the user inputs the name of the …

Member Avatar for NormR1
0
2K
Member Avatar for joey_r

Hello, long time lurker first time poster. I was looking for some help on a problem I came across on a python site. I am supposed to count the number of times 'code' apears in my string. But any letter can be in the place of the 'd' in 'code'; …

Member Avatar for TrustyTony
0
164
Member Avatar for setiawan.fenrir

hello there please help me, I have a problem with this program, i confused about how to make this program run well, this is the lish of program package guipert2; import java.awt.BorderLayout; import java.awt.Color; import java.util.ArrayList; import java.util.List; import javax.swing.DefaultListModel; import javax.swing.JList; import javax.swing.JOptionPane; public class ContohList extends javax.swing.JFrame { …

Member Avatar for NormR1
0
171
Member Avatar for sidd.

Hi, I have attached a .html document and a text file, which is used as a input. This is a very basic website and its working fine in mozilla and chrome but not working on IE. Whenever a refresh button is clicked it loads data in debug area and Generate …

Member Avatar for kabugima2
0
196
Member Avatar for RenanLazarotto

Hey guys! I want to make a simple app that will search for a predetermined file name and will list all occurrences in one listbox. I've searched on Google, but all the "search files" codes that I found were somewhat confusing. Can someone provide me some info so I can …

Member Avatar for RenanLazarotto
0
101

The End.