199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for naju

i need to have null date from php and send to mysql how to make a null date so that i could insert it the database it should be in the format '00-00-0000';

Member Avatar for ryan_vietnow
0
89
Member Avatar for technogeek_42

can anyone here who knows where can i find the posted one problem that is to convert the month-day-year birthday to a simple day like sunday?? and who knows the answer to this problem using getdate setdate??

Member Avatar for technogeek_42
0
442
Member Avatar for Rand al'Thor

I want to make some functions that I expect I will use again and again, but I don't want to copy and paste them everytime I make a program that will use them. My thought was to make a .h file with a namespace. Would that work? Or would I …

Member Avatar for Rand al'Thor
0
168
Member Avatar for sbv

Hi How to get sum and avg in crystal report? please refer [URL="http://www.daniweb.com/forums/thread112804.html"]

Member Avatar for sbv
0
61
Member Avatar for sbv

Hi I want to write a query which will return me Sum(MarkU) and also the avg. Which is something like (Sum(Sum(MarkU)))/5 in mathematically operation or TotMark = Sum(MarkU) AvgMark = TotMark / 5 I hope you get an idea what i need. How to write this type of query in …

Member Avatar for sbv
0
151
Member Avatar for ccclay

I want to put the date and time into a file. Below is what I have tried. import time import datetime >>> test_time = open('test.time', 'w') >>> test_time.write('today is') >>> test_time.close() >>> test_time = open('test.time', 'a') >>> today = datetime.date.today() >>> print today 2008-03-09 >>> test_time.write(today) Traceback (most recent call …

Member Avatar for ccclay
0
14K
Member Avatar for toadzky

I am trying to do a store page for my class. I have a perl script that generates simple HTML tables. The store pages uses ajax to load the tables into the form. The form has all the elements, but when I submit, there query string is empty. I tried …

Member Avatar for toadzky
0
80
Member Avatar for ebabes

I created a javascript function [B]FnNextQuestion()[/B] but I have a problem calling it in my C# class. Is there a way to call this function inside my aspx.cs class? I need help please...

Member Avatar for ebabes
0
106
Member Avatar for nurulshidanoni

How to count how many (3, 10 appears in data? I have done a little bit programming but abnormal program. (3 , 10) (3 , 31) (3 , 51) (3 , 71) (3 , 78) (3 , 97) (3 , 105) (3 , 113) (3 , 135) (3 , 138) …

Member Avatar for nurulshidanoni
0
87
Member Avatar for ericstenson

Hi, I was wondering if anyone has the solution to this. Let's say I have a dropdownlist. And if a particular value of that dropdownlist is selected, I display a textbox. So I set the dropdownlist to cause a postback event, and on the pageload (when postback), i check to …

Member Avatar for ericstenson
0
100
Member Avatar for mathisfunwith

this is a program that the user is suppose to select a computation from a menu, the menu calls the function. and then the output is displayed in a nice java window. I think most of the coding is correct but i am having problems with the switch statement at …

Member Avatar for darkagn
0
183
Member Avatar for Jennifer84

How is it possible in C++ .NET to open a file on the computer. Lets say that I am trying to open this file. Is this possible to do. In this case, Wordpad will open. Thanks [code] "C:\\WordPadFile.rtf" [/code]

Member Avatar for Jennifer84
0
92
Member Avatar for bashir matovu

invalid sql statement,expected "delete","insert","procedure","select" or "update" it a run time error which i recieve when an saving a record to the database. and this is the code. [B]rsord.Open "order", cnnord, adOpenKeyset, adLockPessimistic[/B] cnnord.Execute "INSERT INTO order(OrderId,DateOrdered,CustomerId,QuatityOrdered,ProductTitle,PurchasedUnitPrice);" _ & "VALUES('" & txtoid.Text & "','" & txtod.Text & "','" & txtcid.Text & …

Member Avatar for cometburn
0
89
Member Avatar for adnanius

Hi again; Today I've got some silly questions about the translation of an algorithm to c++ :S (hey matrimkar, I found something that should work!:idea: ) well, my questions are in comments in this code: You can just read the first 2 paragraphs of the code, the 3rd one is …

Member Avatar for adnanius
0
112
Member Avatar for hawisme000

im making an installation form in VB -i already made the installer/setup for my project using another installer maker im having a prob on the syntax, i just googled this and try it but have a error Dim TaskID As Long TaskID = Shell(App.Path \ CAIsetup.exe, vbNormalFocus) my only guess …

Member Avatar for cometburn
0
148
Member Avatar for ArrogantLegend

So I have writing to a file and reading from a file. Now I need to be able to find specific data that was previously entered and saved to that certain file. Here is the code I have so far. [CODE] { ofstream myFile ("words.txt"); if (myFile.is_open()) { myFile << …

Member Avatar for ArrogantLegend
0
78
Member Avatar for SEOT

I need to sort a list with a bunch of numbers in separate columns. How would you sort a linked list with a bunch of numbers in separate columns. Anyone have any good examples to share or point me in the right direction. Please help - SEOT

Member Avatar for dougy83
0
129
Member Avatar for CaffeineCoder

I've been playing (more like struggling) with a few ways to illustrate an explosion for a Fireworks display in an application. One of my reference books dealing with Game Programming had a very nice solution, where the "explosion" is a progression of images. One problem: it relies or depends on …

Member Avatar for CaffeineCoder
0
148
Member Avatar for RMartins

I´m a begginer in java and i would like to know how can i create graphs like: y=ax+b for example thanks

Member Avatar for RMartins
0
95
Member Avatar for Jennifer84

I have a program that consists of 2 Forms in C++.NET. When I open Form1 that is my "StartForm", this Form comes up in the TaskBar as all applications and Folders etc on the computer. So when I open Form2 from Form1. Both these Forms will appear in the TaskBar. …

Member Avatar for Jennifer84
0
114
Member Avatar for jeffige

Following along a tutorial I entered code for a person to enter the age of five students. Then, the program is supposed to divide the five ages and display the result. It allows me to enter the ages, but as soon as I hit enter after inputting the fifth age, …

Member Avatar for highspeedhook
0
175
Member Avatar for jimshef

Hi there. i would like this procedure to delete all rows in 'sale' where date_modified < (getdate() +0.02) and all the related rows from 'sale_detail' and 'sale_address' i have written the code below, but ti think this might only delete one row from sale and its related rows in the …

Member Avatar for AaronASterling
0
138
Member Avatar for Pilate

Hello python world, this is my first post I type print "hello world" into IDLE, hit return but it returns nothing also the pull down menus were HUGE. After reading and attempting to fix them they are nothing but --- now. actually not even as clear as --- 1 more …

Member Avatar for sneekula
0
188
Member Avatar for Fasola

Its been a while but I need your help on this one Daniweb...I am creating request forms (i.e. Conference from Reservation Request, Software & Hardware Installation requests, Network Access Request, etc.) Forms using Code 5 System ([url]www.code5systems.com):[/url] 1. I have a form for Conference Room Reservations. There are 6 conference …

Member Avatar for petr.pavel
0
119
Member Avatar for myth3_16

[CODE]<? $username="*************"; $password="***************"; $database="****************"; mysql_connect("***************",$username,$password); @mysql_select_db($database) or die( "Unable to select database"); $query="SELECT product_name, url FROM product WHERE product_name like 'Day You Were%' group by product_name order by product_name"; echo "<form action=\"https://www.paypal.com/cgi-bin/webscr\" target=\"paypal\" name=\"mygallery\" method=\"post\">"; /* You can add order by clause to the sql statement if the names are …

Member Avatar for petr.pavel
0
102
Member Avatar for Jennifer84

I have a .txt file that contains a lot of text. I will read the whole text file and output a new textfile with one change that is this: The txt file that I will read could for example look like this: [I]Value1 Value2 Value3[] Value4 Value5[][/I] What I am …

Member Avatar for Jennifer84
0
99
Member Avatar for nick1981

Can someone help me? I have a enquete script with checkbox answers for question when more than one anwer can be choisen but de script will only write de latest answer to my txt file. Can someone help me? This is the first time i work with PHP. <?php # …

Member Avatar for petr.pavel
0
108
Member Avatar for Dani

I was wondering if any of you guys know of a good tutorial on regex. I'm able to do most of the simple stuff, but still confused by some of the more advanced pattern matching.

Member Avatar for ~s.o.s~
0
111
Member Avatar for manu1001

I've an old C function that calls a function pointed by a global function pointer. How do I get it to call a member function of a class object determined at run-time. It'll be complied in a C++ project of course. My main motive is reusability here. So I don't …

Member Avatar for vijayan121
0
312
Member Avatar for hawisme000

hi every1, another prob cnt solve even after googling how can i load a notepad file or txt file on VB, what i mean is loading the notepad.exe with the file inside example i click the cmdLoad then it will open the file (on notepad) the file i want to …

Member Avatar for hawisme000
0
244
Member Avatar for 3265002918

hey im really new with javascript. can someone tell me whats wrong with this? [CODE]<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta http-equiv="content-type" content="text/html; charset=windows-1250"> <title>calculate distance and slope between two points</title> <script language="javascript"> <!-- var x1=0; var y1=0; var x2=0; var y2=0; var xdif=0; var ydif=0; var …

Member Avatar for ~s.o.s~
0
100
Member Avatar for dkwantee

[CODE] [LIST=1] [*]void selectionsort(int numbers[],int arraysize) [*]{ int i,indes,large,j; [*] for(i=arraysize-1;i>0;i--) [*] { large=numbers[0]; [*] index=0; [*] for(j=1;j<=1;j++) [*] { if(numbers[j]>large) [*] { large=numbers[j]; [*] index=j; [*] } [*] } [*] numbers[index]=numbers[i]; [*] numbers[i]=large; [*] } [*]} [/LIST] [/CODE] i have been able to understand upto 7 line. can someone …

Member Avatar for manzoor
0
114
Member Avatar for Jennifer84

If I have a file like this and I want to copy this "File1" to "File2", how is this possible to do. So I will copy File1 so the new file with have the name "File2.txt". I know that: std::copy member exists but are not really sure how to use …

Member Avatar for Jennifer84
0
73
Member Avatar for -mk-

Hi, currently I have a shared web hosting with MS SQL server 2000 database. I have already implemented the database, with all the data inside the database, on the server. Now I wish to copy the whole database (.mdf) down to my PC, in case I wanna change hosting or …

Member Avatar for AaronASterling
0
632
Member Avatar for amitahlawat20

class matrix { int **p; int d1,d2; public: matrix(int x,int y); //constructor allocates block of specified size /*I am not specifying contructor code*/ void get_element(int i,int j,int value) { p[i][j]=value; } int put_element(int i,int j) { return p[i][j]; } // [U][B]return statement encountering access violation during runtime , Help!!![/B][/U] };

Member Avatar for mitrmkar
0
99
Member Avatar for chapelhoffer

Hi, I'm a first year college CS major. We've started OOP and I've just been asked to create a class for a bank account. I'm pretty solid at the idea of a class, but the actual format of using the member functions inside main have got my head spinning. I …

Member Avatar for darkagn
0
97
Member Avatar for itstopnotch

Hi, I run an arcade site using a script. it lets me upload files,images and lets me add links to iframe files. What I want to do is embed stuff like Youtube videos and other type of movies. My script has an admin area where I would like to add …

Member Avatar for itstopnotch
0
160
Member Avatar for dealered

I have an application that was written for me by a programmer who represented VFP as the "best thing since sliced bread" and that would be robust for many years in the future and more importantly handle huge customer databases over a LAN instantly. Now, after two years the server …

Member Avatar for trudge
0
137
Member Avatar for ccclay

I am a beginner and want to learn the method to run python script in linux system so that an application can automatically execute a job. For example, I want my ubuntu to do the cron job with a script to play a mp3 file by vlc player at 9pm …

Member Avatar for ccclay
0
98
Member Avatar for Gerritt

My online class just started into arrays, and I am getting this nasty error "passing arg 1 of `show_costs' makes pointer with integer without cast". I have no idea what the problem is. If anyone would be so kinda, please help. BTW: sorry, I have a habit of naming my …

Member Avatar for mitrmkar
0
200
Member Avatar for virubudy4u
Member Avatar for bugmenot
0
101
Member Avatar for COLLIESA

I have been given a problem in which i have to write a program to find the letter frequency and the average word length of a piece of text. i've written the code to promt for and read in the text file. i'm finding it difficult however to make the …

Member Avatar for jephthah
0
155
Member Avatar for cancer10

If you have a column, of data type = INT, with the following numbers as separate rows. 1 3 4 5 7 10 How can you write a sql statement where you can calculate the nearest number to any give input. Example , if the input is 9 ? (the …

Member Avatar for petr.pavel
0
118
Member Avatar for gurusundar

When i log on to my site and click a link in it. It is logging out automatically. [url]http://thelittleguynetwork.com/index.php[/url] username: demo and Password: demo can any one say me what may be wrong with this site. Please reply me.

Member Avatar for Designer_101
0
105
Member Avatar for newport

I'm working on a matrix addition/multiplication/transpose/inverse program and after entering the values of matrix A, I don't know how to call these values. [CODE] int setMatrixA(int r1, int c1, int i, int j){ printf(" Enter the number of rows:\n"); scanf("%d", &r1); printf(" Enter the number of columns:\n"); scanf("%d", &c1); for(i=0; …

Member Avatar for jephthah
0
103
Member Avatar for ctor

hi, i would like to code a toypiano using SDL and c++.--a simple program which will emit a note when a graphical representation of a piano key is clicked. how do i call a particular midi note(corresponding to piano note)using SDL.(i am beginner with SDL and midi stuff,with adequate knowledge …

Member Avatar for ctor
0
87
Member Avatar for wollacott

i have to create a calculator which i have but i cant get it to run yet. i keep getting "12: error: subscripted value is neither array nor pointer" i'll highlight it for you. if anyone can fix it please do thank you. [CODE=c] #include<math.h> #include<stdio.h> int main() { float …

Member Avatar for jephthah
0
122
Member Avatar for ckins

I'm so new to arrays, I've read, I've made boxes...and yet I'm still clueless. So my task is to make a bingo card, so far I've made one column of numbers that don't repeat...something I'm very proud of, but to do that same thing with different ranges for 4 more …

Member Avatar for VernonDozier
0
291
Member Avatar for madhusamala

Actually i am doing a ssc project. The student will enter his roll no in a web page which is designed by html. HIs marks subject wise have to be displayed wth the total marks . this will be done by using servlets and my html code is [code] 1, …

Member Avatar for ~s.o.s~
0
155
Member Avatar for Techboy52

I have a Calculator program below that I wrote. I need it to write an exception handler that deals with non-numeric operands. I know the exception error i need is Number Format Exception but I am having a hard time with my try and catch block so I took it …

Member Avatar for ~s.o.s~
0
618

The End.