64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for weeraa

Here is a example for my work. if a date ---> 20/03/2012 should be shown as 01/04/2012 16/12/2011 Should be shown as 01/01/2012 02/05/2008 Should be shown as 01/06/2012 My requirement is to get a given date as 1st of next month. I know to do this with IF conditions. …

Member Avatar for poojavb
0
156
Member Avatar for anand01

hi All, I have two tables table-1:customeramount table-2:customerpurchaseamount table1 have customers bonus amount and table 2 i have customers purchase amount now i need to calculate balance bonus amount i tried with following query but It shows unexpected result , could any one guide me.. SELECT CM.`custid`, SUM(CM.`amount`) - SUM(CP.`Amount`) …

Member Avatar for anand01
0
146
Member Avatar for jrosh

I have a project named project1 in VS in a solution called Solution 'ShopEntry'. I want to have a copy of the project1 as project2 within the same solution. How can I do it without having errors. thankx in advance

Member Avatar for bleedi
0
99
Member Avatar for vindom

Hi! I have iframe with multiple images retrieved from DB. Each img have "comment" button underneath it. I need this button to redirect to the comment page where user can leave comment . Redirection function works. But at the same time I need this button to send img ID to …

Member Avatar for vindom
0
402
Member Avatar for mani508

hello i want to file attach only specific format and restrict size on file and also remove file option. how its possible.? i used uploadfile control of asp.net but remove file option and size of file not there.. kindly tell me how can do this. advance thanks...

Member Avatar for mani508
0
266
Member Avatar for lewashby

#include <Stdafx.h> #include <iostream> #include <math.h> #include <stdlib.h> #include <time.h> using namespace std; int rand_0toN1(int n); int main() { int n, i; int r; srand(time(NULL)); // set a seed for random-number generation. cout<< "Enter number of dice to roll: "; cin>> n; for(i = 1; i <= n; i++) { …

Member Avatar for ravenous
0
153
Member Avatar for gopi17

I'm having trouble deleting this file... keep getting this error : Warning: unlink(Gate_pass.csv) [function.unlink]: Permission denied in C:\wamp\www\SVS\copydata.php on line 31 i search trough some sites, they said replace the $myFile with the orginal name Gate_pass.csv, but still getting the same error...can someone guide me on this matter. thank you …

Member Avatar for gopi17
0
140
Member Avatar for hwoarang69

Deprecated: Function split() is deprecated in C:\xampp\htdocs\login_test\class.phpmailer.php on line 470 this error is coming from $mail->AddAddress(tester@hotmail.com); //is this same as To: require_once('class.phpmailer.php'); $mail = new PHPMailer(); $mail->AddAddress("test@hotmail.com"); //To: $mail->Subject = "test1"; //html body $body = "HEllow ikhlas"; $body .= "rest of boey"; $body .= "Sincerely,<br/>"; $body .= "test"; $mail->From = …

Member Avatar for hwoarang69
0
683
Member Avatar for hwoarang69

les a user come on index.php page. he sees login form. but he forgot his password. so he click forgot password. on forgotpassword.php page he fills a form. <form action = 'forgotpassword.php' method = 'post'> Username: <input type='username' name='username'><br/> E-Mail: <input type='email' name = 'email'><br/> <input type='submit' value='get password'> <a …

Member Avatar for vibhaJ
0
127
Member Avatar for mehnihma

I am trying to cast vector to a string players = (Vector<Player>) inStream.readObject(); And I get error: java.lang.ClassCastException: java.util.Vector cannot be cast to java.lang.String Can someone tell me is there a way to do it? Thanks

Member Avatar for mehnihma
0
533
Member Avatar for hwoarang69

so i tried this first. every thing works and get a message echo"message successfully, sent". but when i check my email nothing comes. //$email is the user email $to = $email; $subject = "Forgot password"; $message = "Hi $firstname_db,\n Your password is $password_db"; $headers = "from: text@hotmail.com"; if(mail($to, $subject, $message, …

Member Avatar for hwoarang69
0
365
Member Avatar for shean1488

Hi everybody, I just start learning python, and beacuse of that I don't really know all usefull packages and methods, that this language has. But I would like to know how would you write this program, or how would you change it (or may be some part of it) to …

Member Avatar for shean1488
0
133
Member Avatar for vinnitro

I want to create a game on my own. But I dont know which products I should use I have downloaded Engine001. But are they great enough. I dont have any knowledge about game creation & just need to make an easy game on my story just thought that what …

Member Avatar for Dasttann777
0
167
Member Avatar for sciwizeh

So this is mainly a Design/Clean Coding sort of question, I know I've read something about this previously but I can't find it, I believe it's in one of my reference books on C/C++ so it wouldn't likely be useful to my predicament. This question includes a lot of Java …

Member Avatar for sciwizeh
0
253
Member Avatar for mie.ilani

i have problem with query the database. i want to add data into two table that share same Primary key. here my code error message :The changes you requested to the table were not successful because they would create duplicate values in the index, primary key, or relationship. Change the …

Member Avatar for Reverend Jim
0
347
Member Avatar for kimmi_baby

Hi, I've created a template in wordpress where the child pages of one page are displayed on the page. What is displayed is the thumbnail (feature item) of each page and the content of each page. The problem I'm having is that in Safari, the third (last page) is not …

Member Avatar for diafol
0
194
Member Avatar for stephen_UK

I have 2 versions of the same database. One uses M/S Access and is installed on stand alone laptops, the second is web based MySQL/HTML/PHP. The database is simple ie a single table with cuirrent 8000 records with 32 fields/record which is expanding at around 1000 records per year. What …

Member Avatar for stephen_UK
0
170
Member Avatar for speakon

Hello, I need to create a JDBC that connects to a mySQL database, retrieves the data from a table and displays it into a JTable. I have done this successfully, but have ran into a problem. The initial values I entered into the database (for testing) are permament. If I …

Member Avatar for speakon
0
377
Member Avatar for BoB3R

Hello, I want to edit record in mysql and ive got problem with UPDATE command its giving me syntex problem here is the code: <?php $con = mysql_connect("localhost","root",""); if (!$con) { die('Could not connect: ' . mysql_error()); } mysql_select_db("dbname", $con); $sql="UPDATE users SET (userid, firstname, lastname, email, username, password, role) …

Member Avatar for BoB3R
0
173
Member Avatar for chromatinpt

Hi, I have a List containing double values and a double mean. I need to check and store all 5 consecutive values (in indivuals lists) that are higher that mean value. At this moment my solution always clear my aux List :( any ideas? double media = 1.8815; List<double> lista …

Member Avatar for Mitja Bonca
0
159
Member Avatar for BigEEter

Hi. I am wondering if a log file can be created in a header which is associated with a try-catch block. Below is my stripped down code for the log_header.h and log_test.cpp Here is log_header.h #include<fstream> #include<iostream> using namespace std; class thrower{ //fstream myfile2; public: void errormessage(); }; void thrower::errormessage(){ …

Member Avatar for BigEEter
0
394
Member Avatar for vammy

Guys, Need your help here please.. I have a windows form where i have a requirement to convert money entered as integer into string format.. like : if amt entered was 5000,it shld be converted to five thousand rupees only.. please help..

Member Avatar for salman_hundekar
0
142
Member Avatar for ak47carbon

diffrentialte btween function, variavble,constant and string in php tell me $_file[] is function or variable

Member Avatar for cereal
0
148
Member Avatar for dre-logics

I use Visual Basic 2008 Database is Mysql Three tables: 1. table article fields: item number, item description, color number, month number 100 chair 2 3 2. table colors fields: color number, color description 1 red 2 blue 3. table months fields: month number, month description 1 January 2 February …

Member Avatar for dre-logics
0
192
Member Avatar for hwoarang69

for some reason when i hit submit button it doesnt go run php code. i have this form below. when i hit sumbit button it should start the php code. <form action="" method="post"> <?php //print errors if(array_key_exists('reg_error', $_SESSION) && !empty($_SESSION['reg_error'])) { echo $_SESSION['reg_error']; unset($_SESSION['reg_error']); } ?> Firstname: <input class = …

Member Avatar for |-|x
0
1K
Member Avatar for MasterHacker110

I am currently using code::blocks but i am experinsing trouble trying to link the ws2_32.lib and other libraries. I tried visual studio express but it doesnt work with me. What are some good FREE c++ compilers that have very easy library linking and are rather user-friendly and that i can …

Member Avatar for MasterHacker110
0
193
Member Avatar for BoB3R

Hello, I am new in all this and i was hoping you could help me with a little thing so here it is ive got 2 files one is for showing movies from database and there is "delete" button that is taking an a id and deleteing the raw display.php …

Member Avatar for BoB3R
0
120
Member Avatar for 330xi

Hi! Only two windows-dialogs in my programm. On button click I do this->EndDialog(0); MyWiew mw; mw.DoModal(); ShellExecute(0, NULL, fdlg.m_ofn.lpstrFile, NULL, NULL, SW_MINIMIZE); But MS WORD opens file and starts only when mw is closed. How to start it with the mw together? Thanks in advance.

Member Avatar for 330xi
0
93
Member Avatar for KushMishra

Hi all, I want to know the way of maintaining sessions in a WPF application. I did the same in ASP.Net but that was a web application. I'm not sure how to do the same task in WPF. Any help is appreciated. Thanks.

Member Avatar for pkumarSinha.399
1
2K
Member Avatar for Stefano Mtangoo

Hello all, I have been long using Tango Icons and are good, but some stuffs are lacking. Is there good freeware Icon designer or free Icon package? Thanks alot

Member Avatar for jsdevel
0
165
Member Avatar for |-|x

OK, let me preface this by stating that this is for an internal application only, so security is not a major concern and we can/do have a fair amount of control over the users browser, operating environment and configuration. I am currently generating some hyperlinks, like this: <a title="L7489" id="MainContent_GridView1_lnkFolderR_1" …

Member Avatar for |-|x
0
312
Member Avatar for codeorder

Being a vb.noob as basically most of the vb.net world, I use the `Try/Catch` statement quite a bit for when it comes to errors, as the following. With Me .Text = "a" Try .Text += 1 Catch ex As Exception MsgBox("error: " & ex.Message, MsgBoxStyle.Critical) End Try MsgBox("a") .Text = …

Member Avatar for codeorder
0
4K
Member Avatar for |-|x

Does anyone know a good way to force javascript to evaluate all operands in a boolean expression? In particular, what I am tring to do is essentially this: return isValid(a) && isValid(b) && isValid(c); while this technically does work, the function is responsible for highlighting invalid areas on the form …

Member Avatar for |-|x
0
430
Member Avatar for hwoarang69

i have this form. when user hit sumbit button i want to run changepassword.php <form action = 'changepassword.php' method = 'POST'> Old password: <input type='password' name='old_password'><br/> New password: <input type='password' name = 'new_password'><br/> Confirm password: <input type='password' name = 'confirm_new_password'><br/> <input type='submit' value='Change password'> </form> so when user hit submit …

Member Avatar for hwoarang69
0
213
Member Avatar for Erwin_Rosyid

I stuck against the wall again in implementing list of classes. In the nutshell: The idea is to put a LIST containing several CLASS, the Class content can only be manipulated and accessed with get and set method (which is already established). To add a value inside Job, Paycheck, and …

Member Avatar for Hi-Fi
0
126
Member Avatar for Maha Sh.

Hi all, I am using DataReader for the first time and i faced more than one error and this is the last one ((Index was outside the bounds of the array.)) and it's point to this line Dim result As Data.SqlClient.SqlDataReader = dr(Data.CommandBehavior.CloseConnection) I think I have problem with closing …

Member Avatar for Maha Sh.
0
263
Member Avatar for cocofly123

I am newbie in java. I am facing problem now. My purpose is to put the time in textfield. I need press "Start" button and then the time will start go. But after i compile this code. It got error. I have no idea to do it. Can anybody help …

Member Avatar for TrustyTony
0
274
Member Avatar for yuyuttiu

Hi, I'm new to this site, and I thought this place might help me with some of the problems I am hitting. I am currently in grade 12 Computer Science, and I am coding a third-dimensional snake game (isometric view, so can all be drawn in 2D) I have taken …

Member Avatar for yuyuttiu
0
652
Member Avatar for Kerrai

Greetings The quicksort i am building works for only aprox 50000 element in a list. If i go above that i will run out of memory and the program will crash. This is only when i use the median of three or left as my pivot element. When i use …

Member Avatar for Kerrai
0
458
Member Avatar for carsein

Hi guys, I have some problems regarding textbox and radiobutton. My GUI design is like this: I have a textbox, 3 radiobuttons and an enter button. My first question: how can I make the enter button only visible if the textbox is filled and the radiobutton is clicked? If not …

Member Avatar for carsein
0
252
Member Avatar for rogerg

Hello, I try to call a header A if a user is logged in, and a header B if a user is not logged in on some pages I haven't managed to do so, I've tried to create a php function, but didn't manage to make it work. Then, I …

Member Avatar for rogerg
0
260
Member Avatar for collin_ola

Hi, The code shown below sucessfully saves text onto a line in a txt document, but using the array, I want to be able to save each piece of text on a separate line. How would I do this? Thanks in advance :) Dim filePath As String Dim objectWriter As …

Member Avatar for collin_ola
0
182
Member Avatar for HTMLperson5

Hello all, I am trying to think of ideas for programming projects, Python is the language I know most about so I decided to post it here. I have made some random stuff, like a Python program which generates a specified amount of asterisks I have made a text based …

Member Avatar for HTMLperson5
0
218
Member Avatar for vinnitro

This is my program import java.util.*; class Triangle { public static void main(String Vinod[]) { int i,j,n; Scanner sc=new Scanner(System.in); System.out.print("Enter a height of triangle : "); n=sc.nextInt(); for(i=1;i<=n;i++) { for(j=1;j<=i;j++) { System.out.print("*"); } System.out.println(); } for(j=n;j<=1;j--) { for(i=j;i<=1;i--) { System.out.print("*"); } System.out.println(); } } } I dont know what …

Member Avatar for vinnitro
0
160
Member Avatar for ishlux

Hi all, i have installed jdk1.7 , now i want to set the class path.. because i am compiling my program its giving an error.....javac is not recognized as an internal or external commond. please help me to set the class path.......and how to able to run my program.

Member Avatar for ramguru
0
96
Member Avatar for GeekTool

>> I googled the dinference between bitwise and logical operators, but i could not understand exactl what it is. Can you simply explain ?

Member Avatar for NormR1
0
561
Member Avatar for mcjiwe

main.c #include <stdio.h> #include <stdlib.h> #define MAX_USERS 100 typedef struct Utilizadores{ char *login; char *pwd; } USERS; void ReadUsers(USERS user[]); int u = 0; int main(){ USERS user[MAX_USERS]; ReadUsers(user); return 0; } void ReadUsers(USERS user[]){ FILE *fp; fp = fopen("/home/Jiwe/Desktop/users.txt", "r"); while(fscanf(fp, "%s[^=]=%s\n", user[u].login, user[u].pwd) != EOF){ u++; } fclose(fp); …

Member Avatar for mcjiwe
0
8K
Member Avatar for GeekTool

can anybody explain with details how to calculate the factor of a number ? i m trying to do this with while statement. how can i do this ? please...

Member Avatar for TrustyTony
0
140
Member Avatar for TheGame1083

Hello everyone, I have 2 issues that I've been trying to solve for days now 1. I'm trying to display an error message if a user tries to purchase more quantities of an item than what are actually available 2. I can't figure out how to decrease the actual in …

Member Avatar for TheGame1083
0
153
Member Avatar for johndohmen1963

Who can help me with the following. a part of my code doesn't work and i do not know wy. <?php //from here it is working $con = mysql_connect("localhost", "bla", "bla"); if (!$con) { die('Could not connect: ' . mysql_error()); } mysql_select_db("wordpress", $con); $sql1 ="CREATE TABLE IF NOT EXISTS stamboom_landen …

Member Avatar for johndohmen1963
0
1K

The End.