I think I can figure out the code for this but I am having a very hard time getting past the first step. Any suggestions are greatly appreciated.
What I need to do is take a 9 digit account number (for an electrical bill) and 1) determine if it is a valid account using the check digit, and 2) determine the type of account it is (ie if the 2nd digit is a 4, its a residential account).
Suppose the account is 123456789 and I need to add the 3rd, 5th, 7th, and 9th digits, how to do I extact the digits so they can be worked with? All I can think of is to do something like this:
cout << "enter the third digit of your account"
cin >> digit3 >> endl;
cout << "enter the fifth digit..."
cin >> digit5 >> endl;
and so on...
total = digit3 + digit5 + digit7 + digit 9
Its obviously not practical to have the user enter their account number one digit per line as I am doing But how else do it make the account number into something I can manipulate?
I am a beginner. And not a very smart one, obviously :(
how can i make a .gif images for my site
Dear Friends ,Pls solve my problem , I am starting making new site but i dont know how can i make a .gif images for my site . Is there any editor to make my .gif images comfortably
is this the proper use of mysql_real_escape_string() to prevent sql injections?
i was wondering is this the proper use of mysql_real_escape_string() to prevent sql injections? any help greatly appreciated. thanks. derekCode:
A href problem under php
Hello...I tried to explain the issue in an earlier post.. but was not clear enough....So let me try again:I think that the problem happens in Loops (while).When I add a simple html a href (link)...
How to extract/download content from HTTPS page?
Hello to all the Members of this forum, Im Shoiab, A novice programmer in php.. for my first job I have been recently assigned a project, in which I have got to extract/download the contents of the
php sessions,logouts & the bloomin back button!
Hi All,I've got a cms that members can log into. When they logout, the session is destroyed, however, if you click the back button, you can get back into the CMS.How can I get around this?My logout
Spliting paragraph into sentences and attach in
Here is what I am trying to doexample: Para1[123.456.789!] 3 sentences Para2[abc?defghij.klmnop! etc] 3+ sentencesIt should split the paras into sentences based on delimiters (.?!), count
php ajax - two drop down list with a submit button
i have created a form with 2 drop-down list and a submit button. I would like to know how to pass the selected values from the two drop down list to external javascript file and only will pass it
registration form
first time posting. did some searches but didnt find exactly what i am looking for. dont flame cause i am posting in the wrong area. I am starting from scratch with a new registration form for a
Page Reload
I am having issues getting a page to reload after I submit data to a database. This form should input data to a DB and then I want it to reload and list what is in database. I have gotten it to
Structure Question - One Table or One Table Per Record Set?
I have a web app (mySQL and PHP) which allows people to create an item with up to 200 records which I store in a single table. Any user subscribing to that item will be pulling up to 4 records from