199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for heshanm

Hi, I want to validate phone number in my project. I include some validations. Furthermore i want to check whether it exactly contains ONLY 10 digits.nothing more and nothing less.How should i include that? [CODE] if (document.form1.phone_number.value == '') { alert('Please fill in phone number!'); return false; } if(!document.form1.phone_number.value.match(/^[0-9]+$/)){ alert('Please …

Member Avatar for heshanm
0
335
Member Avatar for dhija22

HI everyone!I am a beginner in java and i need your help,please if u can help me i have write this code : [CODE]package person; public class person { private String Name; private String Birthday; public person (String name,String birthday) { super (); Name=name; Birthday=birthday; } public String getName() { …

Member Avatar for NormR1
0
121
Member Avatar for whiteyoh

Hi all, I have a 2 dimentional array. What im trying to do is pull out the relevant bits and slot them under their correct segment, which works for tier one. If totally forgotten how to loop through the 2nd tier of the array. i know it needs to go …

Member Avatar for ddsuresh
0
95
Member Avatar for bin2207

i am doing a C++ program that gets number of vectors, so user can input magnitude of each vector. using 3 functions 1.main function, 2.function that get the number of vectors(looping-number of vector must be positive) and 3.last function get the magnitude of vectors (looping - must be positive) and …

Member Avatar for xsnake7
0
2K
Member Avatar for Daniel Liwonde

I am looking for a code(php or javascript) that can enable me to upload files to my site eg images and when i vist my site at that particular posted page i should see the image not a link but the thumb nail like what happens with gmail or face …

Member Avatar for leest35
0
142
Member Avatar for sirin_adam

Hello! I have write a program on Java. This Java program creates a file which have C code for Windows. I need to compile everytime this C code by copying it to another IDE. Can i do this compile process from java program? (C code is very simple and it …

Member Avatar for sirin_adam
0
218
Member Avatar for thompsonSensibl

Hello there. Could you give some insightful input into my problem: My program is fed multiple lines of input. The input is composed of a name and two values of that person. Each line is of a new 'person' e.g. "James 23 15.05 Lucy 51 25.523 Kam 42.4 21.54 Jak …

Member Avatar for JamesCherrill
0
135
Member Avatar for thompsonSensibl

Hi there, I am not good with Java. Can someone explain this for loop for me please. For a for loop, to my understanding the syntax goes something like, [CODE]for(int i = 0; i < someNumber; i++) { //...some code... }[/CODE] but in this one I have seen, the for …

Member Avatar for peter_budo
0
145
Member Avatar for HASHMI007

[CODE]// bakers.cpp : Defines the entry point for the console application. // /* HEADER USED IN THIS PROJECT*/ #include "stdafx.h" #include<iostream> #include<conio.h> #include<stdlib.h> #include<string.h> #include<string> #include<stdio.h> #include<process.h> #include<fstream> #include<ctype.h> using namespace std; //Classes in this program class Bank { private : long Ac_no; string f_name , l_name ,City; char Ac_type; …

Member Avatar for Süspeñce
0
450
Member Avatar for marsangel

HI! Can someone help me regarding my USB and a Java program. So I have created a Jar file where there is a login form. I have my USB that is partitioned in two. What I want to happen is before I open one of the partitions, my Login form …

Member Avatar for marsangel
0
104
Member Avatar for Daniel Liwonde

I want to be helped with a php code that can be used to do things automatically when a certain time reaches eg sending an email automatically to all members in my database at 12 pm every day or on monday or locking someones acount when they do not pay …

Member Avatar for IIM
0
196
Member Avatar for AnkitGuru

Can anyone tell me how to auto load data content from a file (primarily containing rtf) when the file is opened. I want to create a system like Microsoft word where you create docx/doc files and double clicking them opens word software and loads the files. I know file associations …

Member Avatar for adam_k
0
145
Member Avatar for skald89

When you look at the Photo album the thumbnails line up and scroll horizontally in every browser. However when I click on Paintings the thumbnails go out of wack and different things on each browser, basically does not line up horizontally like it should. I know .hide is what causes …

Member Avatar for Airshow
0
159
Member Avatar for spawn2004

Hi , everyone, i am new in web design and i have a liitle problem with my registration form.I have one php file which have the html code and the php and anothe with jquery. PHP code is for checking and enter the data in mysql table. The jquery code …

Member Avatar for ddsuresh
0
174
Member Avatar for miss_indie

Sorry for posting again. :| I'm working on this simple evaluation system for our final requirement in this subject. it's working now. my problem is I want to have an error checking ([I]if it's the right term for that[/I]). if they leave one textbox blank? the flow will be, if …

Member Avatar for rajeevbu
0
2K
Member Avatar for naffan

Hi all, Wonder if someone could please lend a hand, I have a courses.txt file which is read into a Course String array I also have a program.txt (A list of 8 courses required to pass the program) There's a menu option to change the Program, however a condition of …

Member Avatar for JamesCherrill
0
216
Member Avatar for leakbali

I have more than 420,000 rows articles in my table. I just want to query a data which is has only one row, but it takes too long.. any suggestion? database : mysql, Storage engine : MyISAM mysql_query("SELECT id, title, ... ,postdate FROM table_name WHERE id = 1 the result …

Member Avatar for mwasif
0
173
Member Avatar for dahaka

Hi I'm new to GWT and I am learning using the GWT plugin for eclispe and also have smartGWT. I have found afew tutorials online which have been very helpful but havent found one that explains how I can connect, send, recieve and display database information in the different widgets. …

Member Avatar for peter_budo
0
480
Member Avatar for markdean.expres

Hi eveyone, I want to create applications for my N81 phone. I am currently downloading Symbian^3 SDK, will this lead me to what I want or nowhere? Please reply on this thread if you have anything to say,...

Member Avatar for peter_budo
0
73
Member Avatar for coroll

Hi all, I want to call a button1 click method inside a close button(which is provided by a form) click of a form. But there is no close button click event of a form. There is only From_closing event and Form_closed events.

Member Avatar for Momerath
0
252
Member Avatar for mikejz88

I can't seem to get this to compile for nothing; I'm new to this c++ any help out there? [CODE]#include <iostream> int main() { //declare variables double average = 0; double sum = 0; double array[10]; int k; // User Input and Total of number input for (k =0; k …

Member Avatar for jonsca
0
184
Member Avatar for eltonpiko

hi i have a project that will send sms to its subscriber but ive look everywhere and could no get a good answer. my project will be in php and im just wondering is there a software that i can install on a pc and hook a gms modem with …

Member Avatar for eltonpiko
0
310
Member Avatar for Majestics

Is there any method in java to know size of decimal?? I mean 14 has 2 digits , 100 has 3 etc....... I m going to implement auto generated number like A0001 , now i want to change it on each new entry , so Does any one has any …

Member Avatar for Majestics
0
119
Member Avatar for phorce

Hello When I normally write classes and then use them, I'd use this: [code] $site = new Site(); $site->load('header'); [/code] But I've seen people do this: [code] $site = new Site(); $site->load->header(); [/code] How do they do it? Confused

Member Avatar for kaisarkhan87
0
93
Member Avatar for jimobama_tech

I write an upload image script to my local server it works but when i upload online it did not but it display 0 as $_FILE['filenam']['error'] this is the code send me answer please to my email <<snip>> or reply here $target_path='../uploads/'; $_passport_path=$_FILES['passport_file']['name']; $_pp_type=&$_FILES['passport_file']['type']; $_pp_size=&$_FILES['passport_file']['size']; $_maxima_size=30000; if(($_pp_type=='image/jpeg') ||// ($_pp_type=='image/gif') || …

Member Avatar for kaisarkhan87
0
116
Member Avatar for chris_j_haines

Hello I am in a bit bother at the moment, I have an application where I add a contact and at the same time I upload an image to the images directory. Basically I have a feature where you can delete a contact and what I want to be able …

Member Avatar for kaisarkhan87
0
146
Member Avatar for abc88

i have a generic list of type datarow. i have to split this list at an index and then use both parts of the list. Eg: list = 1,2,3,4,5 i want to split it at index= 2 i.e at value =3 . then list1=1,2,3 and list2=4,5 how can i do …

Member Avatar for codeorder
0
179
Member Avatar for swathys

Hi i have problem with my timer. when application run it does not go to the timer at all.I have no idea where do i need to troubleshot anymore. Please help if anyone know ! [CODE] If CheckStatusStr = "0" Then Update_CurrBal() SuccessfullySave() ElseIf CheckStatusStr = "1" Then timercount = …

Member Avatar for swathys
0
135
Member Avatar for Fenerbahce

[COLOR=#008000]command.Parameters.AddWithValue("@number", TextBox1.Text) can i do this from another way? [/COLOR]

Member Avatar for yoteksin
0
594
Member Avatar for BeejCyr

MS strikes again. In my tiny little mind this should be a no brainer but I just don't see how to make this work. I have an unbound DataGridView control where I have defined the columns at design time. Currently to add a new row I use a like this: …

Member Avatar for Oxiegen
0
1K
Member Avatar for naffan

Hi All, I am trying to load from a .dat file a collection of student objects However on load it only loads the first student and then stops I've tried to put print messages in but with all the nulls I really can't seem to work out what is happening. …

Member Avatar for naffan
0
164
Member Avatar for kartikkp

I'm trying to make a rectangle object and just do some simple commands. It has been a while since I've coded in c++ so I'm not sure what syntax errors I have? Any help would be appreciated I'm getting the error: request for member 'area' in 'c', which is of …

Member Avatar for NathanOliver
0
159
Member Avatar for markdean.expres

Hello guys, I have been thinking if I can develop my personal application using my VB 2008 IDE. I have created different software but all of those are only for PCs. How about for phones, is it possible? If yes, how?

Member Avatar for markdean.expres
0
62
Member Avatar for kylelendo

Dear Friends How can i convert file into its hex in vb.net or any programming language???

Member Avatar for ShahanDev
0
223
Member Avatar for StevenSchaffner

Well my datagrid so far has the edit,update,cancel feature and it can get info back from database after entering a number into a textbox. All i need now is to get it to where I enter a number the data comes up which works and I want a blank row …

Member Avatar for ShahanDev
0
506
Member Avatar for harishbansal90

Hi I have [B]Windows 7 Home Premium SP-1, 64-bit[/B] version on my PC. I want to install SQL Server either 2oo5 or 2008. but i am unable to install this. Error: [I]OS Incompatibility[/I] Pls Reply: Thank U

Member Avatar for sknake
0
455
Member Avatar for PratikM

Hey guys, I just wanted to ask why this error kept on showing up, i looked at everything, but i couldn't find anything, so maybe one of your eyes will catch something. Here's my code: [CODE]#include <iostream> #include <time.h> #include <string> using namespace std; float FarenheitToCelsius (float); int main() { …

Member Avatar for pseudorandom21
0
401
Member Avatar for jhopwood

Having some issues figuring out how to code my add, modify, search, delete, and save buttons in my program. The buttons need to also adjust the size of the array once I add or delete the an item. Any help would be great. I may be going about this the …

Member Avatar for NormR1
0
329
Member Avatar for kkanedaa

Hello, I want to know how to compare a string value which is input by the user. The following code gives an error saying "Result of comparison against string literal is unspecified (use strncmp instead)". [CODE] while(valid == 0) { printf("Yes-No-Question\n"); scanf("%s", &yesno); valid = 1; if(yesno != "yes" || …

Member Avatar for kkanedaa
0
429
Member Avatar for PM312

I have made a programme to print chaques through excel report. i have network printer “Xerox Phaser 3435 PCL 6” (inkjet) which is my default printer I have local printer is “Epson LQ-300 ESC/P 2” (dot-matrix) and used only to print chaques. every time when i want to print chq. …

Member Avatar for hkdani
0
275
Member Avatar for DestinyChanger

Hi everyone I'm working on a remote controled robot which have four cams & one sound recorder. the robot encode the data send it to a computer, an application decode data and view 4 cams & play sound. Here is my question is there any function or library than can …

Member Avatar for DestinyChanger
0
170
Member Avatar for aman rathi

In my program i want to execute same statement on case 3 and 5 in switch() i searched lot on google about this but get nothing please help me [CODE] case 3,5: [/CODE] I know it is wrong but if you have any idea about this than please help me.

Member Avatar for aman rathi
0
101
Member Avatar for Farhad.idrees

Hi i want to echo session but it gives error...code is [CODE] session_start(); if(isset($_GET['P_Price'])) { $_SESSION['Price'] = $_SESSION['Price']+ $_GET['P_Price']; $_SESSION['Items']++; " <div class=\"shopping_cart\"> <div class=\"cart_title\">Shopping cart</div> <div class=\"cart_details\">Items echo $_SESSION['Items']; <br /> /// this line has error <span class=\"border_cart\"></span> Total: <span class=\"price\">echo $_SESSION['Price']; </span> ////this line has error also </div> …

Member Avatar for mamdouh ramadan
0
114
Member Avatar for nuclear

Hello. First of all i know that this was asked like a million times, but i just cant get the right answer anywhere, yes, even on google. So the thing is that i learned the C++ basics and my learning process was only in a Console Application. And now for …

Member Avatar for nuclear
0
119
Member Avatar for Farhad.idrees

hi i have one page where i will get Categories of Products and i want to make session of those Categories..But when i referesh page session break...my code is.. [CODE] session_start(); $_Session['P_Category'] = $_GET['P_Category']; ////line 8 $P_Category =$_Session['P_Category']; $query = "select * from tblProducts_info where P_Category = '$P_Category'"; $result = …

Member Avatar for mamdouh ramadan
0
100
Member Avatar for Punkis448

Hi again. I have a project that gets from mysql the data that i search. Until 10 minutes ago, the results could not display me correctly the Greek characters from mysql. The search system searches the title of the item which contains English and Greek characters. I solve this problem …

Member Avatar for mamdouh ramadan
0
145
Member Avatar for rina khatkar
Member Avatar for bettybarnes

hi guys i have problem with my code here is my code [CODE] Public Sub increment() Dim dr As SqlDataReader If con.State = ConnectionState.Closed Then con.ConnectionString = (strconnection) con.Open() End If Dim str As String = "Select CUSTOMERID from tbl_Customer" cmd = New SqlCommand(str, objconnection) dr = cmd.ExecuteReader While (dr.Read()) …

Member Avatar for MUDASSAR SIEMAB
0
1K
Member Avatar for rahulvramesh
Member Avatar for cipcip

Hi, I have an odd error in my logout.php file maybe you can help me. I have this in the start of my file: [CODE]<?php include('../config.php'); session_destroy(); session_unset(); ?> [/CODE] In config.php I have session_start(); A little down in the page I have this: [code]<?php echo 'Logged out...'; echo '<meta …

Member Avatar for ko ko
0
136

The End.