199,114 Archived Topics
Remove Filter ![]() | |
I have changed a column in my database from the primary Key to Index, as i need to allow the same reference in the column for multiple entries with different dates against them, but now i need to adjust my queries. how do i do this? | |
Hi, I am new in jquery. I am working on a registration page.I did all the validation but facing problem during username validation. when a user enter email id in the textbox,it first check whether it is present in database or not.. if not present "register successfully" otherwise "email exists" … | |
Need help with this. Write a program that asks the user to enter today's sales for five stores. The program should then display a bar graph comparing each store's sales. Create each bar in the bar graph displaying a row of asterisks. Each asterisks should represent $100 of sales. Her … ![]() | |
Hi, how can I read specific data from file? let's say I have file containing this: [code]Data1: 1 Data2: 2 Data3: 3 Data4: 4[/code] how can I make program find "Data1: " and then get everything what's behind it? or like in some configs, there is: [code]<Something: "something2", "something3">[/code] how … | |
Hi, I have several hundred html links in a file "main.html" pointing to external websites. ie: "external.html" When a user clicks an external link from within "main.html", I want to bring up "external.html" in all its glory, but with a banner / header across the top (I am guessing iframe … | |
Think about an antivirus software with an 1-pc license. After installation , while the user tries to upgrade it, the software recognizes that the pc rying to upgrade the antivirus is the one that bought the license so that the software when installed on another pc with the same serial … | |
How to find size of a semaphore object in windows? I tried using sizeof() but we cannot give name of the sempahore object as an argument to sizeof. It has to be the handle. sizeof(HANDLE) gives us the size of handle and not semaphore. | |
I am using the following to send a string to the application on the foreground. But it's no good, as it for some reason only accepts numbers, and letters in uppercase. But I also need to send letters in lowercase, and slashes and backslashes etc. Can anyone help me achieve … | |
hi i write code that is mesure the area of traingle with two constructor ... with argument and default constructor and set ,, get , high and length ,, and tostring , equals methods but i think is there a logical error class file [CODE] public class Traingle { private … | |
hello daniweb.. :) I am learning JAVA and currently new to it, I am studying "The Complete Reference-JAVA" by Herbert Schildt. In that book its written that using short or byte will save space, but there is no guarentee that Java won't promote those types into int internal anyway. Remember … | |
Hello, I have a file I saved as an XML file and want different parts of the file to display in two text boxes. What is happening is the whole content of the file displays in a textbox as: [CODE] <?xml version="1.0" encoding="utf-16"?> <text> h hkj </text>[/CODE] ...in both text … | |
Hi, I have a problem with linking boost libraries in codeblocks using gcc 4.6.1. I'm getting following errors: undefined reference to `vtable for boost::unit_test::unit_test_log_t' How can I solve it? | |
![]() | This is what my professor provided me in his own words. "Write a program that copies the contents of a text file specified by the user and copies it to another text file "copy.txt". No line in the file is expected to be longer than 256 characters." Here is part … |
when i try to access this login page..an empty page open...please help with this coding [CODE] <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Latest</title> </head> <body> <?php include("db.php"); if (isset($_POST["submit"])) { $username=$_POST["username"]; $password=$_POST["password"]; $query="select * from latest where username='$username' && password='$password'"; … | |
I've been given a basic form of programming to do. And I simply cannot figure it out. I know this topic has been covered several times before. But each of them going around the one crucial step that I need to complete my programming. My instructor insists that the 24 … | |
![]() | Hi, I made my own javascript method that I'd like to integrate into the JQuery validation plugin. I am new to JQuery and I'm not really sure how to integrate it though... Here is my javascript [B]working[/B] method: [CODE] function doAjax() { var captchaResponse = document.getElementById("registerCaptcha").value; $.ajax({ type: "POST", url: … |
Hi. I'm new here. Anyway, I have an assignment of writing programs from outputs provided. Here's an output given in the assignment that I think is wrongly done. I'm saying this because I tried many, many times just to get the exact output, but only to no avail. So, I … | |
can someone help.. i can see the file when i click the save button on my folder.. can you help me... [CODE] { SaveFileDialog dialog = new SaveFileDialog(); saveFileDialog1.ShowDialog(); saveFileDialog1.InitialDirectory = @"C:\sample"; saveFileDialog1.Title = "Browse a file"; saveFileDialog1.DefaultExt = "txt"; saveFileDialog1.Filter = "Text Files (*.txt)|*.txt| PDF File (*.pdf)|*.pdf"; saveFileDialog1.FilterIndex = … | |
Ok so i have this 3D cube (not made in java 3d) and i want to move it around and rotate it with keys on the keyboard. I know how to start it off and stuff i just can figure out how to make it work lol well here the … | |
hi guys, i have a minor problem that i can't get my head around. I have a picturebox, inside a panel, inside a form which has auto scroll on, as the panel's height is bigger than the screen... I never used to have this problem, but now if i manually … | |
Hey I am using SHLoadImageFile API ,but i am facing prob in loading images (jpeg) of bigger size. Can anyone help me to solve this? | |
basically, instead of the "(N1 + N2 + N3)" which is in the average method we need to call the sum method to the average method as the sum method returns a value = (N1 + N2 + N3). does anyone know how to call the sum method to the … | |
please help me, i need show data searching in datagrid. i have example code but its can't compile. These coding examples that I made. Option Explicit Dim conn As ADODB.Connection Dim Rs As ADODB.Recordset Dim query As String Sub setConn() Set conn = New ADODB.Connection End Sub Private Sub serachCmd_Click() … | |
Hi, Here is the code [CODE]bool A::clear(void) { if (m_active) { return val; } else { return true; } } // end A::clear bool A::initialize(void) { if (m_active) { return clear(); } else { return true; } } // end A::initialize[/CODE] getting the below segmenation fault as soon as it … | |
Firstly, Sorry for the long post :) Im currently creating a training database for use within the business (not done many getting used to coding) I used MySQLMaestro to construct the datagrid and have modified it to suit most my needs. however i have one issue that i cant resolve. … | |
Is there any if statement to check if a file is empty or not? | |
can anyone tell me how to avoid this kind of error "specified more than once in resource parameter" i copied one form and rename that form into other's name together with the class name and thier inheritance but still i have this error.. | |
hi, i am new in C# , i have 2 text boxes in which the user will enter the department and name, 1- I want the application to retrict the user to only enter letters not numbers . This is my following code: [CODE] public string Directorates_Insert(string Directorate_Name, string Directorate_Head) … | |
Hi, this is my first post. I apologize if I make any mistakes. I have a problem where I need to take a list and print it out as a table of average for each person. The list is : [('tom',4),('ben',5),('tom',8),('ben',12)] So far my code is: [CODE]def getAverage(list): list = … | |
I have tried to structure my program but im stuck at this point. I have a file that contains phone phrases on each line (1-900-WINNING) is one of the phrases, if i get more digits than a phone number requires i must ignore the remainder. This data is coming from … | |
Hello there Daniweb community, today i encountered a problem while developing a Desktop Application in C# With Mysql (MySql.Data.MySqlClient). Im not using ODBC. The situation is the following: When NOT executing two queries, the data gets processed and everything works fine. However, once there are two queries, problems appear. Its … | |
Hi i need to create a form in a .html file myteamform.html, then take the data entered into the form and process it in a .php file "roster.php" which takes the data and adds it another.html page team_roster.html. I have my form done, my problem is how do you add … | |
I do some experiences about boost::bind And I find out that boost::bind would incur heavy copy if you don't pass by referene [code] #include<iostream> #include<boost/bind.hpp> struct test_for_bind_00 { test_for_bind_00() {} test_for_bind_00(test_for_bind_00 const &Obj) { std::cout<<"this is copy constructor :: tfb00"<<std::endl; } }; struct test_for_bind { void tamaya() { std::cout<<"tamaya"<<std::endl; } … | |
Hello... I need to transfer the contents of a combo box into my list box..how do i do that? my list box is empty.and everytym i select something from my combo box..the previous value in list box should not be erased.It shoud keep on adding to the previously updated value..Please … | |
Hello.. I am developing a windows app and i have a form in which i have 2 datagridviews.. dgv1 is the main gridview with checkbox column and when the user checks the box, that row should be visible in dgv3 (other datagridview).. The code i used is : [CODE] Imports … | |
well it sounds simpler than OpenGL... I want to use DOS style graphics in my prog (look at SC2000) no need for animation or interactivity or PostPicture(). So the queston is what header/librays do I need and how do i use it? Google just brought up stuff on makeing your … | |
Hi, I pull the data from database and print it on screen. How can I print all the characters correctly? Page should support all languages worldwide. English(this is fine anyway), Turkish, Chinese, Greek, French, Tai etc. I added some header lines, meta tags like UTF-8 etc. but no joy. Thanks … | |
I'm trying to write a vbScript that will execute all files in a given directory (will be mostly batch files). I've tried to modify a script that deletes all files but I'm not able to get it to work. Here is what I have: [CODE]Option Explicit '=========================================================================== ' Scheduled Task … | |
I am VERY confused by the Doxygen configuration file. I cant seem to figure out how to make it compile code between [ICODE]#ifdef __cplusplus[/ICODE] and [ICODE]#endif[/ICODE] Also I dont understand how to change what it does with preprocessor symbols or how to make it NOT generate documentation on something. Any … | |
Hey guys, I was hoping to get a little insight on this issue. I recently signed up for Yahoo Boss v2, I'm not really experienced with PHP. I honestly would have used google's api but they are charging too much for the amount of searches I'll need for this project. … | |
![]() | Hi, I'm trying to have a set of random numbers into ArrayList and to print it. e.g. if the total number is 10, [2,3,5] or [1,5,2,2], etc. In below, it gives me each numbers but because y gets zero, it throws an exception. Can I have help to print all … |
Basically, what i would like is if the two letters are attached together (NOT seperated) in the string, it will say good, if not the bad. Example: [CODE] #include <iostream> #include <string> int main () { string letters = "or"; string test = "The man went to the store."; //here … | |
| |
Hello Guys. Good Day! Masters of programming out there anybody can read mo this code guys how it work in the program for better understanding of mine. Thanks in advance for your help... br. [CODE]Private Sub cmdsearch_Click() On Error Resume Next Dim dok As String Dim ran As String dok … | |
Hello, once again I have a very BIG problem. I made program that connect to proxy server and browse via proxy server. However, my company has a made private proxy server which I must authenticate through to get to the internet. I read hundreds pages of docs, but without success. … | |
HI, I don't know how to get the lastest data form the database. do anyone can give me some exmaples to see how to retrieve the latest 50 data. | |
Good day, I am currently starting to use wordpress for better CMS and I wish to learn more about the framework. Any advises on what website I should refer to? I have download several framework to dig into but in the end I am still confused. Any reply is appreciated. … | |
Guys, what particular drive/folder to stored the text/csv/excel file that the bulk insert will be reading? what if in my local drive is this applicable? or it should be in the shared folder in the server. Thanks, JOV | |
I have some stock market price data organized as follows in a structure: struct PriceInfo { string Date; unsigned int Time; double Open; double High; double Low; double Close; unsigned int Volume; }; This struct organizes price data per interval of date and interval of time, where time is measured … | |
Hey all, Came across this site while scouring the web for a solution to my problem. All of the answers on here seem very helpful and non judgmental. That is hard to come by in a lot of programming forums, so thanks. My Question. I am using VS 2008 and … ![]() |
The End.