64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for discovery-power

Hi All, I always have trouble with this every time I create a desktop app which needs to update data from a database. So, I have created and coded my form to load data into a data grid view control, I can add data to the data grid view and …

Member Avatar for discovery-power
0
122
Member Avatar for jayst19143

I am trying to Bind the value of Qty and Price to the Linetotal field but I'm get an error [I]window:global: uncaught exception: [Exception... "'SyntaxError: parseJSON' when calling method: [nsIDOMEventListener::handleEvent]" nsresult: "0x8057001c (NS_ERROR_XPC_JS_THREW_JS_OBJECT)" location: "JS frame :: chrome://firebug/content/net/spy.js :: callPageHandler :: line 807" data: no] (, line 0)[/I] I'm calling …

Member Avatar for jayst19143
0
324
Member Avatar for sirlink99

I am getting an access denied error when I am writing to the database I am using this line [CODE] LOAD DATA INFILE 'upload.txt' REPLACE INTO TABLE Test FIELDS TERMINATED BY ',' [/CODE] I have made sure I allowed remote SQL, and I made sure to give the user all …

Member Avatar for smantscheff
0
88
Member Avatar for enterpise

i'm a beginner for coding at java . net now i got a problem with input the port plz see the code [CODE]package test; import java.net.*; import java.io.IOException; import java.net.DatagramPacket; import java.net.DatagramSocket; import java.net.InetAddress; public class UDPCliet { final int buffSize = 10001;//buff size final int TIMEOUT = 3000; final …

Member Avatar for enterpise
0
176
Member Avatar for Majestics

I have using following code over jdk 6.0 but after first round it doesnt work .... [code] if(table.getRowCount() -1 == table.getSelectedRow()) table.editCellValues(0,columnno); else table.editCellValues(table.getSelectedRow(),columnno); [/code] These lines are in mouse clicked method... Problem is when it reaches to end, and when fw button is pressed it jumps to another column.... …

Member Avatar for Majestics
0
230
Member Avatar for GBignell

Hi, can anyone advise how to make a button run code only while it is pressed? Basically I have found this code on the Net for changing the system volume, but you have to keep clicking on the buttons to change the volume. I want to be able to hold …

Member Avatar for GBignell
0
185
Member Avatar for HacruLeian

hello, i want to get some guidance from the reader who read my post. I'm doing a game called deal or no deal using c++ and i can't think of other way to print the box's number instead of printing the value inside. what i want to do is, user …

Member Avatar for LRRR
0
2K
Member Avatar for c_learner

Dear All, I'm new to C, and would appreciate your help about the below code. The purpose of the program is to multiply the elements of the array and print the result. The user enters the value for how many elements he wants to have multiplied, and then the function …

Member Avatar for c_learner
0
2K
Member Avatar for guccimane

[CODE]#include <iostream> #include <string> using namespace std; class shapes { protected: int width; int height; public: shapes() { width=0; height=0; } ~shapes() { } void getWidth() { cout<<"What is the width"<<endl; cin>>width; } void getHeight() { cout<<"What is the height"<<endl; cin>>height; } }; class rectangle:public shapes { public: void area() …

Member Avatar for LRRR
0
103
Member Avatar for myk45

Hello everyone, I came across the following in a book: [CODE]Keyword typename The keyword typename was introduced to specify that the identifier that follows is a type. Consider the following example: template <class T> Class MyClass { typename T:: SubType * ptr; ... }; Here, typename is used to clarify …

Member Avatar for myk45
0
100
Member Avatar for triumphost

How do interpreters do it? I've seen bots for games that encrypt files then decrypt them at runtime and run what's in them.. Well How? How can I do this in C++? I plan to do this in another language but I decided to ask in C++ section because this …

Member Avatar for VernonDozier
0
172
Member Avatar for apontutul

[CODE]<html> <head> <title>Pie Chart Demo</title> </head> <jsp:useBean id=[COLOR=red]"myChart"[/COLOR] class=[COLOR=red]"classes.beans.votepie"[/COLOR] scope=[COLOR=red]"session"[/COLOR] /> <body> <h2>Vote Results Pie-chart</h2> <%String chartViewer = myChart.getvoteserve(request, response);%> <img src=[COLOR=red]"<%=chartViewer%>"[/COLOR] border=0 usemap=[COLOR=red]"#imageMap"[/COLOR]> </body> </html> [/CODE] accessing this above viewrst.jsp file shows the following error: [CODE][B]HTTP Status 500 - [/B] [B]type[/B] Exception report [B]message[/B] [B]description[/B] [U]The server encountered an …

Member Avatar for victabk
0
2K
Member Avatar for Dante2

Ok, I'm using the Head First Rails book, which sadly, was written in 2009. So, the API has changed drastically. I am trying to manually configure a route to make the controller find my show page. The route the book tells me to type [ICODE] map.connect '/ads/:id', :controller=>'ads', :action=>'show' [/ICODE] …

0
91
Member Avatar for PF2G

Hi, DaniWeb I'm trying to do a validation form, but when i "submit" and forgot some of the textbox's it gives the error, but erases the textebox's previously filled. Here's the code: [CODE]<?php include ('database_connection.php'); if (isset($_POST['formsubmitted'])) { $error = array();//Declare An Array to store any error message if (empty($_POST['username'])) …

Member Avatar for diafol
0
318
Member Avatar for coding101

How do strings work? In C we must declare the size of a char array to represent a "string". But in java we do not allocate memory for the size of a string. So how does the string work? Is there a pre deterimed size assigned to strings from the …

Member Avatar for dheaven
0
238
Member Avatar for Bladtman242

I hope I'm posting in the right forum :) I'm primarily concerned with C compilers and sun's JDK, but general info is more than welcome (Documentation for self-education as well). Well, if i wrote a program like [CODE] int i = 5 printf("i is $d", i); [/CODE] Would i=5 be …

Member Avatar for Bladtman242
0
156
Member Avatar for shandoosheri

Hi I have a folder containing a lot of shortcuts so i need to check if the shortcuts paths exist Thank you

Member Avatar for thines01
0
183
Member Avatar for annonymous21

I have been working on this for some time and need some help. I have posted to another forum with no results. I figured i would try here and see if i can get some real help. I am trying to populate an array with the contents of a file …

Member Avatar for annonymous21
0
329
Member Avatar for Bladtman242

As part of our exam project we need to write a GUI in java, the problem is that the structure has got us stumped. I'm not asking you to do our work, but if someone could nod us of in the right direction it would really be appreciated. We want …

Member Avatar for Bladtman242
0
204
Member Avatar for patk570

Hello everyone, I am a beginner at PHP, and I have been working with some php code, I built a search result page, a random string generator and a few other ones. But I would like to get a new idea for the website I am working on. I am …

Member Avatar for diafol
0
198
Member Avatar for vb.net_beginner

Hey Folks I am just starting out with JavaScript and am following the resource book for the course I am on. One of the exercises is to write an external JavaScript as below which produces the following output: Power is Off Number is Ten the problem is that I am …

Member Avatar for vb.net_beginner
0
66
Member Avatar for vb.net_beginner

Similar to my last post one of the exercises is to write an external JavaScript as below which produces the following output: Iteration number: 1 Iteration number: 2 Iteration number: 3 Iteration number: 4 Iteration number: 5 Iteration number: 6 Iteration number: 7 Iteration number: 8 Iteration number: 9 Iteration …

Member Avatar for vb.net_beginner
0
82
Member Avatar for Karlwakim

Hi everybody, I have a crazy problem with a basic calculator. [CODE]#include <iostream> using namespace std; main (){ int num; int y; int ans; cin >> num; for (int x = 0;x < num;++x){ cin >> y; ans += y; cout << ans << endl; } } [/CODE] it take …

Member Avatar for Karlwakim
0
135
Member Avatar for Cenchrus

I'm typing the code: [CODE] import cmath import math print r"pow(2,3) returns 2^3 pow(2,3,1) returns 2^3 modulo 1" pow(2,3) pow(2,3,1) [/CODE] and I'm getting this error: File "sample2.py", line 26 print r"pow(2,3) returns 2^3 pow(2,3,1) returns 2^3 modulo 1" pow(2,3) pow(2,3,1) ^ SyntaxError: invalid syntax Why is this invalid syntax?

Member Avatar for woooee
0
887
Member Avatar for vedro-compota

Hi there)) Guys please tell me - how to make reference to directory which is on higher level that site root (by php - site is on local machine) - may by this situation need some aliases in apache .conf file? As I see the server(apache) don't want to understand …

Member Avatar for vedro-compota
0
188
Member Avatar for FakeTales

Hey i am currently working on a book store for a university project. And would like to implement that only admins can access the backend of the website. My login scripts currently allows all types of users Login . I have two mysql tables a [B]user [/B] table and a …

Member Avatar for blocblue
0
438
Member Avatar for aproxx

Hi everyone! I'm experiencing some trouble with a fairly simple problem I guess. First of all, I'm not a real expert when it comes to java, but I would like to learn it mostly by self study. And I'm sorry for the lots of code, but I can't really specify …

Member Avatar for aproxx
0
154
Member Avatar for cascer1

hello, i've been working on this website for a while ([url]www.scfan.net[/url]), but for some reason the page: /gameinfo.php has an error with the session code. i'm using this code on every other page on the website too. but only /gameinfo.php and /livestream.php and /tac_protoss.php have the problem. could anyone help …

Member Avatar for broj1
0
89
Member Avatar for daniel36

I dont know where to save curl libraries downloaded from [URL="http://curl.haxx.se"]http://curl.haxx.se[/URL].can any one tell me.I have followed instructions given on the page [URL="http://devzone.zend.com/160/using-curl-and-libcurl-with-php/"]http://devzone.zend.com/160/using-curl-and-libcurl-with-php/[/URL] for installing curl.

Member Avatar for daniel36
0
83
Member Avatar for auwi987

hi guys i have existing column in datagridview sample column name (Student ID, Last Name) now i have mysql table column name sample(STUD_ID,LNAME) STUD_ID = int Type, LNAME= varchar Type. i used these code to display mysql table in datagridview if their is no Existing column [CODE] void dlist(string sqlQry, …

Member Avatar for M.Waqas Aslam
0
127
Member Avatar for Despairy

Hi, i have a client which reads from the socket: [CODE] for (index=0;index<SCALERS;index++) { read(my_socket,vectorScalerPointer,BUFLEN); read(my_socket,resultScalerPointer,BUFLEN); sum+= atoi(vectorScaler)*atoi(resultScaler); }[/CODE] and a server program which writes to it. [CODE] for (index=0;index<SCALERS;index++) { sprintf(ascii,"%d",(*matrixStruct)._vector[0][index]); write(fd,ascii,BUFLEN); sprintf(ascii,"%d",(*matrixStruct)._mat[atoi(whichRow)][index]); write(fd,ascii,BUFLEN); }[/CODE] now the problem is the programs are in a "race condition" usualy the server …

Member Avatar for Despairy
0
173
Member Avatar for wxflint

Hello what im looking for here is to get the next addition in the database to drop below the first set of tables. at the moment it is only showing the last persons submission it does create the tables with the data but with only the last persons. when the …

Member Avatar for wxflint
0
262
Member Avatar for Ashenvale

Hi guys I have a bit of a problem here about the alignment no what I try it always end up like that, the 2nd-3rd row course and sexcode column is what I want to fix >.< package studlist; here's my code: public class StudList { public static void main(String[] …

Member Avatar for JeffGrigg
0
130
Member Avatar for anita_86

Hi again!And happy new year to all.Just got to attained an interview and was asked about some c questions.Would like to know what does these lines means?Can anyone tell me? [CODE]int main() { int k=printf("Hello"); return 0; exit(10); } [/CODE] I got answeres like [QUOTE]You're outputting "Hello" on the screen …

Member Avatar for anita_86
0
161
Member Avatar for joy39

hi! another query! i want to insert values into the table 'employee' for the 'adddress' field in such a way that the large address comes in two or three lines like this [code] empid empname address mobile grade basic Joyban1 Joy banerjee 5/67, 1234567890 2000 10000 nehru colony, kolkata 700045 …

Member Avatar for hericles
0
96
Member Avatar for stevanity

I wanna know what type of parser is used in the gcc and turbo c++ compilers. whether a top-down or bottom-up parser is used..... ?

Member Avatar for stevanity
0
871
Member Avatar for stevanity

I wanna know what type of parser is used in the javac compiler. whether a top-down or bottom-up parser is used..... ?

Member Avatar for stevanity
0
215
Member Avatar for billmudry

After a few months working on another website, I am back finishing a list of coding tasks on my TAXA Wood Knowledge Base. One of the most important pages in the site is the one that lists (so far) over 15,000 different botanical names of woods. Each single name listing …

Member Avatar for phorce
0
173
Member Avatar for hamby

Hi guys, I'm writing a weasel program and needed a random character generator, I used a random number generator to give an ascii code for each character, and made a sequence of them, then I realized I needed to include the "space" symbol, but upon inclusion of the new code …

Member Avatar for hamby
0
191
Member Avatar for suhaildawood

I am having some trouble with this code. I want have an onclick function on a div and I want to call this function. Only the 'if' section of the code works. If the #about opacity is anything other than 0.47, it still executes the 'if' code, but not the …

Member Avatar for suhaildawood
0
1K
Member Avatar for khajvah

Hello people I heard, that c++ is more powerful than c and i want to learn one of them. I want to know if it is better idea to start with C or with C++ without learning C. I know a bit of C# (i can make some basic games …

Member Avatar for zeroliken
0
256
Member Avatar for KingAudio

Hello. I need some help with variable types. I am currently an 11th grader taking my first Computer science class. I am learning C++ and I would like to know how I can make 10/3 3.33 rather than 3 in C++. For example, a member on the forums updated my …

Member Avatar for richieking
0
136
Member Avatar for wolf29

I have a very simple wish, to dump all databases so I can lock up a backup of the databases, tables, users and so on. It looked like [CODE]mysqldump -v --all-databases -u root -p secret > "${directory2}""$h"_mysql_dumpall.sql[/CODE] worked, however the file contained a little error message telling me I had …

Member Avatar for wolf29
0
436
Member Avatar for Mr.BunyRabit

Im writing a java system for some one, and no contract has been established so far. Im just wondering, if i dont sign any contract, to whom does the source code of my project belong to? Is it mine? do i sell it to him? does he just get it? …

Member Avatar for hfx642
0
181
Member Avatar for daviddoria

I read that using a policy class for a function that will be called in a tight loop is much faster than using a polymorphic function. However, I setup this demo and the timing indicates that it is exactly the opposite!? The policy version takes between 2-3x longer than the …

Member Avatar for mike_2000_17
0
84
Member Avatar for PomonaGrange

Hello all, I am looking for a bit of code to make an input field into a calculator. The main difference from most scripts is I want it with no buttons. I am hoping to use the number pad on the keyboard. So, for example, I would like an input …

Member Avatar for niranga
0
339
Member Avatar for Karlwakim

hi everybody, the double type is 8B, right ? So if i use this code : [CODE]double pear[500000000];[/CODE] it will use 4GB of Ram ? or there's a limit for arrays ? thanks

Member Avatar for LRRR
0
81
Member Avatar for furlanut

I want to insert values into 3 different tables with auto_increment of primary key. My code below creates 2 records for the first table and 1 each for the second and third AND a Failure 'duplicate entry xxxx for key PRIMARY' for the second and third. The ADD RECORD does …

Member Avatar for diafol
0
301
Member Avatar for gilgil2

Hi, I am trying to make a link based on info stored in MySQL, the code I have got so far is [CODE] if (isset($_POST['search_now'])) { $result = mysql_query("SELECT * FROM bands WHERE BandName LIKE '%$BandName%'"); $page = "<a href=\"http://www.website.com/$row['PageName']\">$row['BandName']</a>"; while($row = mysql_fetch_array($result)) { echo 'Band Name: '; echo $row['BandName'] …

Member Avatar for gilgil2
0
150
Member Avatar for joy39

i am creating a table employee which looks like this [code]use employeemaster; drop table if exists employee; create table employee ( serial int unsigned NOT NULL auto_increment, empid tinytext NOT NULL , empname varchar(255) NOT NULL, address text NOT NULL mobile bigint unsigned NOT NULL, grade char(2) NOT NULL, basic …

Member Avatar for joy39
0
112

The End.