64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for PinoyDev

Good day Gentl'men! Is there a way in c++ to convert a string variable that holds time of format like "17:30" to time_t variable? Lets say!: #include<iostream> #include<ctime> using namespace std; int main() { time_t timein,timeout; float timediff; string stimein,stimeout; cout<<"Enter time-in: "; cin>>stimein; cout<<"Enter time-out: "; cin>>stimeout; //convertion from …

Member Avatar for deceptikon
0
4K
Member Avatar for New22010

Formatting a date, In VB6 I could specify the a date that was so many days from today and change the format of the output in a nice and easy statement: Format(Now - 1, "yyyyMMdd"). I am trying to learn vb2010 and am getting an error on that statement: *Operator …

Member Avatar for New22010
0
203
Member Avatar for r0n

hi everyone is there anyway to get all cell values of a column in the jtable? for instance i have to get all the values in column1 which are all integers and sum it up to the textbox. :) thanks!

Member Avatar for JamesCherrill
0
2K
Member Avatar for anand01

Hi all, I have created web application, I have converted as .war ,now i need to deploy it in apache-tomcat-7.0.16, Have pasted that war file in apache-tomcat-7.0.16\webapps but I cant acces that file ,its shows resource not available(404 error ) Could some one help me thanks in advance

Member Avatar for anand01
0
111
Member Avatar for akuvidz

I need help on my update statement, the condition is , i have to update the status . the table name is leave_request , it contain leave_req_id, date_applied,emp_id,leave_type_id,leave_period_id,leave_status and the default for leave_status is 'Pending' the problem is, choose approve, and on the database should change the leave_status into 'Approve' …

Member Avatar for BitBlt
0
170
Member Avatar for PhilEaton

How can I execute a function that will run while the client is waiting for the server response? Here is my code. I looked up and found a .load() function, but how does that fit into this? Any help would be great! Thanks $.ajax({ type: "POST", url: "mail.php", data: {name: …

Member Avatar for JorgeM
0
219
Member Avatar for Nutster

I am pretty new to programming in VB.Net, but I have been programming in other languages for a couple of decades now, including VB5/6 and C++. When I am using a **Try** - **Catch** block to handle exceptions, what is the point of a **Finally** section? Wouldn't it be just …

Member Avatar for Reverend Jim
0
298
Member Avatar for vinnitro

This is my program: using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; namespace CountryCurrency { public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void rdbRupees_Click(object sender, EventArgs e) { if (rdbIndia.Checked == true) MessageBox.Show("You are right"); else …

Member Avatar for vinnitro
0
212
Member Avatar for Riu 2009

this is how is inserted link on line 53.but its giving syntax error.i could not find any mistake as i already put ; at the end of the line but still it is saying missing ; or , please help. <?php include("../includes/config.php"); ?> <!DOCTYPE HTML> <html> <head> <title>Admdin Home</title> <link …

Member Avatar for Riu 2009
0
4K
Member Avatar for ali3011

hi i'm still learning some basics of php, and now i'm trying to modify codes.. and follow tutorials after following a tutorial i made this multi-uploader which uploads images and thumbnails but there's a little thing with it, it changes the image name to random name, and i want it …

Member Avatar for ali3011
0
200
Member Avatar for mr3army

Hey guys tried a few things but Im clueless to stuff like regex and I really need this compontent to my project :( THIS NEEDS TO BE EXTRACTED - this changes on each refresh I need that part of the data to be added to a list view Please help …

Member Avatar for mr3army
0
2K
Member Avatar for Yarra

Hi I programmed a tower defence game through java as a simple java application. I was wondering what steps do I have to take to convert it into a fully functional java applet to be uploaded onto the internet.

Member Avatar for Justinvzepeda
0
293
Member Avatar for HibaPro

i have binding datagridview with 27 rows , i need to add these row to sqlserver table with other field how i can do that by insert statment???

Member Avatar for HibaPro
0
220
Member Avatar for aero31aero

I want to make a program that analysises which key has been pressed the most as a part of my school assignment. I want that the key input be recieved by my program and later by the program it was intended for. Is there a way to do this? Please …

Member Avatar for aero31aero
0
207
Member Avatar for printman55

I need help in using a variable passed in a hyperlink query string to do PHP query of a MySQL database. I want use the variable to query the database and return the unique row field data to display in a table The hyperlink is: [CODE]http://www.site.com/bios.php?pc=ab [/CODE] After connecting to …

Member Avatar for phpkiller123
0
558
Member Avatar for grant.baker

Hi I'm working on a form validation script. Up to this point, I've only written very basic regex validations. The input that I'm trying to validate should have entries in the following format AAA111 separated by comma space. So some sample entries are : `ABC111` or `ABC111, ABC112, ABC113`. Here's …

Member Avatar for grant.baker
0
291
Member Avatar for HunainHafeez

what is basically a QUERY STRING ? how its beneficial and what is its scope ?

Member Avatar for HunainHafeez
0
125
Member Avatar for akkbkht

how to assign roles to users in Database ? mean i have admin, applicant ? so how could i differentiate bw them ? HELP !!!

Member Avatar for HunainHafeez
0
324
Member Avatar for semicolon

Hello, I have a Form A, Form B, Form C. . . and FormSearch. FormSearch can be use by A,B,C... The purpose of FormSearch is to display data in search for the data you want depending on the query that have been pass on it example FormSearch has a method …

Member Avatar for hericles
0
161
Member Avatar for bigzos
Member Avatar for trishtren

Hey, Iv been looking around for a simple way (meaning less than 10 lines) to reverse the order of my bytes in a byte array. At the moment my code is: public byte[] outputarray() { byte b[] = new byte[10]; ByteBuffer buf = ByteBuffer.wrap(b); buf.putLong(output); } The problem is that …

Member Avatar for trishtren
0
3K
Member Avatar for Nutster

I have recently started coding in VB.Net and started using the Try-Catch style of exception handling available in .Net, which I admit is very similar to the exception handling of C++, so it is not all that unfamiliar. In my VB6 code, which I have been using up till now …

Member Avatar for Maligui
0
3K
Member Avatar for Sahil89

Hi, Recently I was working in photoshop, And photoshop is really great application. After using it for weeks, I am thinking about learning the logic behind the way it works. I tried few articles which was just about converting image to black n white, matching two exactly same images etc. …

Member Avatar for Maligui
0
152
Member Avatar for vinnitro

This is my program TimeCheck.java i am developing using NetBeans IDE 6.8 When i run it gives me following error: Class "TimeCheck" neither has a main method nor it is a servletspecified in web.xml I didnt find anything specifying Servlet to add so added it here. following is my TimeCheck.java …

Member Avatar for vinnitro
0
946
Member Avatar for rahul.ch

First statement: int[] it = new int[][]{{1}}[0]; //Valid Statement Second statement: int[][]it2 = new int[]{0}[0][0]; //Invalid Statement First one no explanation given. Second one is invalid because it attempts to access a two-dimensional object from a single dimension array. My query: 1. First of all can someone please interpret those …

Member Avatar for rahul.ch
0
161
Member Avatar for napninjanx

I keep taking the test over and over I get 2 out of 10 correct. I think something is wrong with the test can you list me the answers so I could take it if it's wrong then i can contact the admin and tell him his test is not …

Member Avatar for Momerath
0
259
Member Avatar for Szabi Zsoldos

Hi everyone, Trying to do a subquery to select the minimum price from table1, table what holds 15 million rows. I think that my approach is not the most suitable way of doing this. I want to select after oen_norm because oen_norm may have 1-10 rows per entry, but I …

Member Avatar for Szabi Zsoldos
0
149
Member Avatar for PinoyDev

Good day! I have this code that is assume to get the difference in time. Is it possible to get the difference of from a string time variable? Or, whats the best way to implement this? #include<iostream> using namespace std; int main() string timediff, timein, timeout; cout<<"Enter player time-in between …

Member Avatar for deceptikon
0
437
Member Avatar for sandipan.rcciit

hi, i want to make a program where the csv file directly insert into the mysql database table. i found the code: [CODE]<?php include 'mysql-connect.php'; $rec=0; $handle = fopen ('datafile1.csv', 'r'); while (($data = fgetcsv($handle, 1000, ',', '"')) !== FALSE) { $rec++; if($rec==1) { continue; } else { $query = …

Member Avatar for sujitri
0
300
Member Avatar for smarty470

Dear all, I have a website in which I am using the following htaccess code to hide the file extension RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME}\.php -f RewriteRule ^(.*)$ $1.php I then manually removed the .php extension from the entire website. Now when I am generating a site map …

Member Avatar for smarty470
0
189
Member Avatar for Bile

Hi,everyone I am trying to develop a simple program that will register Users with the following requirements as reflected with the fields on the interface: imgPassport.Picture ‘This is the Image for accepting Passport Size provided by the user lblPicture_Name.Caption = "User's Passport Size" ‘This is the Label to display the …

Member Avatar for AndreRet
0
311
Member Avatar for kaito-poland

Hi every one. I have a problem with combinning two scripts. Fisrt script is working perfectly and taking stuf from mysql: function showUser(str) { if (str=="") { document.getElementById("txtHint").innerHTML=""; return; } if (window.XMLHttpRequest) {// code for IE7+, Firefox, Chrome, Opera, Safari xmlhttp=new XMLHttpRequest(); } else {// code for IE6, IE5 xmlhttp=new …

Member Avatar for kaito-poland
0
143
Member Avatar for Riu 2009

hi everyone :) i know how to show all the records from database in an html table but how would i show specific category.for example i want to show records only with type T (type T is in database).im new with php and i dont know how to do it …

Member Avatar for Riu 2009
0
2K
Member Avatar for bLuEmEzzy

I'm doing a verify login in php and when i put my username and password correctly. It prompts 'Incorrect UserName Password' ?php $user = $_POST ['txtuname']; $pass = $_POST ['txtpass']; $encryptpass=md5($pass); // used mysql_connect_db instead of mysql_connect mysql_connect("localhost", "root", "") or die(mysql_error()); // This line is missing mysql_select_db("intranet") or die(mysql_error()); …

Member Avatar for bLuEmEzzy
0
3K
Member Avatar for Gé48

Hi all, I build a scrolling text that starts running when I start up my Computer. I can stop it by clicking on it, no problem. Is it also possible to stop it when I start up another programm ?

Member Avatar for Gé48
0
200
Member Avatar for AngelOfRock

Hi, To program does anyone has a good guid to learn C + +, especially to be able to programm games later (AI). I already know the basics of Java is that usefull or have I to start from beginning? best regards

Member Avatar for np complete
-1
119
Member Avatar for PhilEaton

Here is my code for this page: phileaton.est-a-la-masion.com/Day Care/contact.htm <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <META NAME="description" CONTENT="Looking for an affordable daycare for your child? Are you worried that your precious one is not learning basic skills? If so, this …

Member Avatar for PhilEaton
0
207
Member Avatar for mrclark

I am working on sessioning scripts however my cookies are not carrying over from page to page. I include the session script on every page which checks the $_COOKIE['session'] cookie, and if set, keeps the session data, if not, creates a guest session and sets a cookie with a new …

Member Avatar for mrclark
0
104
Member Avatar for PinoyDev

Good day. I have this running query that I want to pivot the sum of CurrentBalance where in Monthdate =[2011-11-30],[2012-12-31]...etc. But everytime I try to put the Pivot, it cannot detect the CurrentBalance column alias. Here is my query so far. use MFR_Merchandise go declare @MonthColumns as nvarchar(max) declare @SQLtext …

Member Avatar for BitBlt
0
201
Member Avatar for coolikedat99

I decided to get rid of windows xp and switch over to Ubuntu entirely. In order to do so I had to uninstall XP and Ubuntu so I could start over on my computer. I did this, and everything has been working better. Except for the most important part: my …

Member Avatar for np complete
0
233
Member Avatar for I_m_rude

hi.. can anybody please tell me that how can i print the execution time for my code ? Actually, what exaclty i want is that my program should also print the time which is elapsed while executing it or for maupulating any i/p. any pre-defined or user-defind function which can …

Member Avatar for I_m_rude
0
107
Member Avatar for swathys

Hi. i have an application which send email upon submission of the loan application. if the recepient email ID is yahoo or hotmail i dont have any problem but when the email ID is **gmail. it treated it as spam.** How do i get rid of this. Please help me …

Member Avatar for Reverend Jim
0
153
Member Avatar for extjac

Hello, i wanted to know what you guys use with PDO. Do you use ->fetchAll() or ->fetch() + while based on some reading i have done, it seems that PDO->fetchAll() is faster but uses more momory...

Member Avatar for pritaeas
0
252
Member Avatar for DaveTran

I have two classes. One main Game class and an Entity class that needs to point to the Game class so it can call its various functions # Entity.h # class Game; class Entity { public: Entity(Game *game); ~Entity(void); void Draw(float dt); void Update(float dt); protected: Game *m_game; // Missing …

Member Avatar for JasonHippy
0
409
Member Avatar for sathya88

1.in my project...if user want to exit from the application... it first check yes no cancel option,if the user want to choose ,no or cancel button .. the application is not closed..but my problem is what code placed for no or cancel button...to prevent closing window... code is...[CODE] class wl …

Member Avatar for hoon85
0
3K
Member Avatar for Utharan

Hi, I have 6 radio buttons. When I select the radiobutton I need to get the value of the radiobuttons to a php variable. Please help me. I'm new to php. Thank you in advance

Member Avatar for Utharan
0
99
Member Avatar for bLuEmEzzy
Member Avatar for willjohn.wrar393

Hi I want to Clarify what is the Problem of this code? if you feel free to answer Thanks alot... Private Sub addakoordr_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles addakoordr.Click Dim tr As String = tID.Text Dim qo As String = tquanOrder.Text Dim arw As String = cdateselec.Text …

Member Avatar for daniel955
0
106
Member Avatar for akuvidz

as the thread name $query2= "alter table employee_leave_quota auto_increment= LAST_INSERT_ID()"; That is my query to reset auto_increment in my table, but it show error.. anybody know how to do it?

Member Avatar for pritaeas
0
170
Member Avatar for khair.ullah

ASALAM ALIKUM Dear !... I'm doing INVENTORY PROJECT... I'm using Ms sql 2005 as BACK-END... My tables are PURCHASE and SALES... In PURCHASE table, fields are CODE(primary key), PRICE, DATE, TOTAL, QTY... when I'm entering datas in form and when i click submit, the data stored on database... but when …

Member Avatar for daniel955
0
232

The End.