64,152 Solved Topics
Remove Filter ![]() | |
Hi, Im new to JSP and I am trying to add data from a simple registration page using JSP to a table in mysql, My code seems to be working OK howerver when I check the table in MySQL Control Centre...no new records have been added, I am able to … | |
Hi, I just installed MySQL on my computer and went though a decent MySQL tutorial. Now I need you guys help me out so I can get my java programs to connect to MySQL. I am using the following code from a book to connect. [code] import java.sql.*; public class … | |
Hello all, im a beginner to VB.Net and kinda annoyed at the "not able to print to the screen and clear the screen facilities". Anyways i need to make a program to display the numbers 1-10 (a counter) on the form, my code so far is Private Sub cmdStart_Click(ByVal sender … | |
im writing a calculator program in c and having some trouble.. basically it needs to have + - / * ^ functions as well as an integer only mode the code so far [code=c] #include <stdio.h> #include <ctype.h> #include <math.h> int main(int argc, char *argv[]) { float acc, num; char … | |
hi everybody , I am new to python and interested in graphics . I like somebody to walk me thru monthly calendar using tkinter . I have already printed 07 calendar using python but I am stuck when it comes to use it with tkinter . it is no homework … | |
I want to create a simple script for uploading files from local maschine (windows) to a web servers (linux) directory. I found on the net some example codes and make the two parts of that simple script. 1. The HTML form creation... [php] <html> <body> <form enctype="multipart/from-data" action="upload.php" method="POST"> Choose … | |
Hi all. Eventually my program needs to prompt you to enter a year between 1800-2007 and then it will print off the calendar for that year. In order to do this I must create functions that determine what day of the week Jan 1 was that year, and a function … | |
Hi, I am a basic learner in C language.Could u please provide me a good link or tutorial or explanation regarding "order of precedence". I have the table of "order of precedence"........but needed some examples. I am always confusing with them. like, *ptr++=something; *++ptr=something i=i++................etc. Thanks & Regards. | |
OK I had C/C++ programming classes a few years ago and now I'm taking a ASP.net class and programming in C#. I need a little help with an assingment. We have to create an if state to display text depending on if the day of the week is a weekday … | |
I have a site that I am working on for a friend. The test site is located at: http://linux1.jbknowledge.com/AJW/AJW%20Photo/ In the image galleries when you click on the large image it greys out the background but it does not fill the screen. I know it is probably just something simple … | |
:o EDIT: Forget my question :eek:, thanks for looking :mad: | |
Can someone take a look at this. Create a method called findElement, which takes an integer value and a two-dimensional integer array as inputs and returns true if the value is in the array. If the value is not in the array, the method should return false. This is what … | |
Hello everyone, I am fairly new to oracle and SQL and I am having a little trouble figuring out how to accomplish a task. I have three columns from a table, we will call them 'a', 'b', and 'id'. I first want to order by 'id' and then query the … | |
Hey everyone, this is my first post. I have viewed these forums alot in the past for C++ help and it has helped me out alot, however I have reached a problem myself. I have been doing C++ since last September and until then i was a complete newbie at … | |
Could someone please suggest a way I can get the following sub to work? I'm trying to check to see if a field in a datagrid has been changed. I get runtime error 424 Object Required. Thanks [Private Sub DbGrid1_BeforeUpdate(Cancel As Integer) If DBGrid1.Columns(1).Value.DataChanged = True Then ' Check for … | |
Can someone please take a look at this for me. I have to create a program that models a simple card game. I have to shuffle the card and deal 1 card at a time and display the card that I have dealt. Not sure how to do this. The … | |
Hi, I'm in colledge and I have to finish this thing by tomorow mornig... So I'm asking if anybody cal give me some help on how to call and execute mysql procedures in PHP... I already tryed this but it dosen't work... :eek: [URL="http://www.daniweb.com/techtalkforums/showthread.php?t=41143&highlight=procedure+php+mysql"]link[/URL], Sorry for my english and thanks … | |
I'm using this code to place Time\Date stamps in specific Access Columns: [code=asp] Dim conn,strsql,sql_update,ssn,cps,hdDate,TOD,PageDate,h h=hour(now()) ssn = "Select SSN From CWCT07 where SSN = '" & Request.Form("SSN") & "'" If _ (Request.form("PageDate")) = "1/30/2007" And "h" < "12" _ Then _ sql_update = "Update CWCT07 Set Jan30AM = '" … | |
Hi Everybody I am trying to explore the master page fanctionalities, in which I come across a question. I am trying to change the CSS of the master page, based on user options I have tried the below code,in the master page page_load. But it seems it is not working. … | |
I'm making a shape editor. When I choose the circle button if I press the mouse button it appears a circle in the form, if I choose the square button it appears a square in the form. But I have to do an MDI Application with this. When I want … | |
Hey, I have here a piece of code that works in parts but does not work together. If I test all three parts at once, I get a segmentation fault immediately before the program is supposed to test for a (null) value in the string array. However, if I comment … | |
Decided to start my own thread rather than hijack thread "Sorting" I followed ghostdog74 advice and used module re to extract numeric strings: [php]import re data_raw = """[20] [ 35+ ] age = 40 (84) 100kg $245 """ # use regex module re to extract numeric string data_list = re.findall(r"\d+",data_raw) … | |
I am working on a struct. The two requirements are for the user to be able to input an entry and then view it. I have two questions, when entering the data shouldn't I be able to enter spaces when entering the address i.e. 654 smith st and store that … | |
How can I run some code when I click on an arrow of a data control? | |
The code below works for the first question (first half of the code), the program then proceeds to the second questin, but it never stops to await the answer. I can't seem to figure out what I'm doing wrong? Thx [code] #include <stdio.h> using namespace std; char answer; int main(int … | |
Hi everyone, I am making a quiz using forms. The user answers by clicking on radio type buttons e.g. [code]<input type="radio" name="question1" value="whatever1"> <input type="radio" name="question1" value="whatever2"> <input type="radio" name="question1" value="whatever3">[/code] I collect the answer on the second page using something like [code] $answer1=$_POST['question1'];[/code] Now the problem: If the user … | |
I have a question: I create a file named "number.inp". This file has a row of numbers: 5 4 4 3 3 3 2 note: 5 is the first number, haven't any space or char in front of 5 [CODE] #include<stdio.h> #include<conio.h> #include<stdlib.h> main() {clrscr(); int ch,v[10],count=0,i=0,j=1,n=0,a[10]; FILE *f; f=fopen("number.inp","r"); … | |
I keep reading threads here, some use the Tkinter GUI toolkit and others use the wxPython GUI toolkit. Why would one use one or the other? | |
Would you be so kind and tell me what does ^ symbol mean in definition of object, example: [code]class ^Object[/code] Thanks in adv | |
O.K. Ive compiled my program for debugging. I really don't know where to start looking. My program consists of two blocks of source code (Robotmoves.cpp and Character.cpp) and one header file (Character.h) Once I have compiled and attempted to run the program the error tells me my Robotmoves.EXE had triggered … | |
In python if I divide 6/3 I get 2, that's fine. But I divide 6/4 and get 1... Why aren't I getting a decimal? I would like to know because I want to make something that can detect wether or not a number is whole. (I need help with that … | |
Hey, I am in the process of writing a program that stores a integer entry into an array where each element in that array directly corresponds to a date on the calendar for that month. I think I have my code working, or at least almost working. My problem comes … | |
I have seen that writing anything after the completion of any pre-processor compiler directive does not affect either compilation or running of the program. i.e. #include<conio.h> 123as!#@ #define M 100 *&^asdf is perfectly valid. How can such athing happen ? | |
Why won't the 'luck' function get executed? Pasting the code of my tutorial in my compiler creates the exact same error as the little test code below: 'luck' undeclared. First use this function. I use dev c++ Thx ;) [code] int main() { printf("hellow (printed in main)\n"); luck(); return 0; … | |
I have been working on a questionnaire results page which takes the values from the questionaire on the previous page, calculates a score then plots their results on a grid. this all works fine, what i am a little baffled about however is, how do i dynamically add table rows/cells … | |
I am trying to write a recursive function that will produce a fractal snowflake, but am not getting the correct results. For some reason it gets caught in an infinte loop, but I cannot figure out why. Any help is appreciated. [code] [COLOR=#941edf]private[/COLOR] [COLOR=#941edf]void[/COLOR] recursiveDraw([COLOR=#941edf]double[/COLOR] x1, [COLOR=#941edf]double[/COLOR] y1, [COLOR=#941edf]double[/COLOR] x2, … | |
I have a program that displays its results in this manner. I added the results in an array this is what I got. [code] [20] [35] [40] [84] [100] [245] [260] [300] [440] [521] [650] [/code] How can I put it in this way ['20','35','40'] i used append but it … | |
I have a spreadsheet that has many rows and columns of data. Also, 20 fields need to be evaluated with around 15 variables. If I were to create a program that filters this data and finds the lowest cost option, how would I go about doing that? I have heard … ![]() | |
Hi everyone! Im stuck... I'm currently writing a GUI program to control a piece of machinery. I am using wxPython along with a few other bits and bobs including USPP for serial access. My problem is that i need some way of 'pinging' the machine. ie I want to be … | |
I am doing a project for my VB.NET class and I am a complete beginner, so please go easy on me :) I have a windows form that will collect information from a user. When they click a button, I want to display all their information in a completely new … ![]() | |
I have a problem creating a ODBC connection. I am using MS SQL server 2000. Local access. I create it in System DSN. 1. I select the "With SQL Server authentication using a login ID and password entered by the user rather than Windows NT. But the error message occur … | |
Hi! Here's my code: [code] for(i=0;i<N;i++) { for(j=0;j<M;j++) printf("%4.2f ",mat[i][j]); printf("\n"); } [/code] I want it to look like this: 68.85 52.25 32.00 -100.00 -632.25 -26.56 Instead I get: 68.85 52.25 32.00 -100.00 -632.25 -2.56 For life of me I can't remember how to get th alignment right. Anyone? Thanks | |
Hi, I want to learn how to build web services with java. I am starting out by installing all the neccessary software. I am following directions from a book. However, tomcat is installed twice in the book's example. The first set of direction is labeled Servlet container and tomcat is … | |
There is a querysting for example abc = "<a href=test_table.exe?PFolder=" & oPFolder.Name & "&SFolder=" & sfolder.Name & "&oMails=" & fItem & ">" s.WriteLine(abc) this oPFolder.Name and sfolder.Name contains some words with spaces. suppose oPFolder.Name is Personal Folders and sfolder.Name is Deleted Items. s is the streamwriter for htm page. When … | |
I'm trying to design a site that makes use of the [B]window.open()[/B] javascript method by opening certain links in a new window with a specific pixel size and position onscreen, but Internet Explorer (with default security settings) blocks most attempts...Is there any way around this, to let IE know that … | |
I have to rotate numbers an array. Example:`{5, 6, 7, 8} ==> {6, 7, 8, 5}{5, 6, 7, 8, 9, 10} ==> {6, 7, 8, 9, 10, 5}` This is what I have. It works for the most part to rotate the numbersbut I can't seem to rotate the first … | |
Hi Its back, I am being haunted. I thought I had resolved this problem but I am intermittently the receving the warnings below. This code consist of a 1) HTML form, 2) a display function on the HTML form and 3) a process to manage the form input. Can you … | |
Hi! First I'll say that I've searched this forum and read many threads and followed a few recommended links. I still need some clearifacation: I use Borlnad C++ V3.1 which runs in DOS. Can I draw an image in let say "Paint" and then display it with the above compiler … | |
Hi, I trying to learn SOAP from [URL="http://www.w3schools.com/"]http://www.w3schools.com[/URL] . The tutorials are not bad but I still have some questions. [code] <?xml version="1.0"?> <soap:Envelope xmlns:soap="[URL]http://www.w3.org/2001/12/soap-envelope[/URL]" soap:encodingStyle="[URL]http://www.w3.org/2001/12/soap-encoding[/URL]"> <soap:Body> <m:GetPrice xmlns:m="[URL]http://www.w3schools.com/prices[/URL]"> <m:Item>Apples</m:Item> </m:GetPrice> </soap:Body> </soap:Envelope> [/code] 1) What EXACTLY is the purpose of namespaces? 2) Why use multiple namespaces? Why is there … |
The End.