199,114 Archived Topics
Remove Filter ![]() | |
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'; | |
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?? | |
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 … | |
Hi How to get sum and avg in crystal report? please refer [URL="http://www.daniweb.com/forums/thread112804.html"] | |
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 … | |
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 … | |
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 … | |
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... | |
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) … | |
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 … | |
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 … | |
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] | |
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 & … | |
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 … | |
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 … | |
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 << … | |
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 | |
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 … | |
I´m a begginer in java and i would like to know how can i create graphs like: y=ax+b for example thanks | |
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. … | |
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, … | |
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 … | |
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 … | |
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 … | |
[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 … | |
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 … | |
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 # … | |
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. | |
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 … | |
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 … | |
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 … | |
[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 … | |
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 … | |
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 … | |
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] }; | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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. | |
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; … | |
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 … | |
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 … | |
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 … | |
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, … | |
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 … |
The End.