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 :(
Help with php code
Hello, can anyone tell me why this php word trap fails to work, and the trigger words get blow right past, and the comments get posted anyway?heres the php code im testing on a
Execure stored procedure on a timer
Can someone tell me an easier way to execute a stored procedure on a timer? I am using Oracle 10g R2 DB on windows 2003 server. I have a batch file that calls an SQL file, which runs fine when I
Undefined variable: adHTML
Hello:While checking my site error logs, I've noticed one repetitive error that fills the log file. The error is "PHP Notice: Undefined variable: adHTML in /.../bot_jrheader.php on line
MASS PM
Hello all, I'm trying to send mass private messages to users in my database but keep getting an error... and was hoping someone could help me out.You have an error in your SQL syntax; check the manual
Deleting Partners on the Customer Master.
Does SAP handle removing the Partner from Open Sales Orders when a Partner is deleted in the Customer Master. For us, this is not happening, this there some config that must be turned on for this to
Really need helps regarding Pagination with Sort
I need someone helps regarding pagination problem...i actually want to make my page limited to let say 50 so it will look like this page1=0-50page2=51-100Then i want to sort let say based on the name
help with variable
I've got a problem, i want to echo some images depending on the $id, however for me to get that id i have to extract it from a query. So i've done that, but i want to extract all id's (not just 1), so
Database connection failure
Hello All,
php - xml what is the best way to do this.
IN essence I want to have a script calling the info from the database.. I have no problem thus far, next I want to take said data and write it to an xml file. no problem here either. I think I have
ME54/ME54N Conditional check for Release of PR
Hi Gurus,