What could have gone wrong?
I installed PHP 4.4.6 + Oracle instant client 10g(win32) + Apache 2.0.59 (Win32) on my Windows XP Professional Version 2002 SP2.
I enabled php_oci8.dll in my php.ini. Also put tnsname.ora under C:\instantclient_10_2.
I loaded phpinfo.php and it shows "OCI8 Support enabled"
However when I use below script to test:
<?php
if ($c=OCILogon("user", "pw", "db")) {
echo "Successfully connected to Oracle.\n";
OCILogoff($c);
} else {
$err = OCIError();
var_dump($err);
print "\nError code = " . $err;
print "\nError message = " . $err[message];
print "\nError position = " . $err[offset];
print "\nSQL Statement = " . $err[sqltext];
echo "\nOracle Connect Error " . var_dump( OCIError() );
?>
The output is:
Interactive mode enabled
bool(false)
Error code =
Error message =
Error position =
SQL Statement = bool(false)
Oracle Connect Error
Please help enlighten what I should do to move on.
Many thanks,
PHPNewbie
Thanks cj. I think I'm getting closer.
After replaced php_oci8.dll, I retested a simplified script:
if ($c=OCILogon("user", "pw", "kirin"))
{ echo "Successfully connected to Oracle.\n";
OCILogoff($c); }
else { $err = OCIError();
var_dump($err);
#echo "\nOracle Connect Error " . var_dump( OCIError() );
?>
The the output is:
Warning: ocilogon() [function.ocilogon]: OCIEnvInit() failed. There is something wrong with your system - please check that ORACLE_HOME is set and points to the right directory in C:\work\test.php on line 3
Warning: ocierror() [function.ocierror]: OCIError: unable to find error handle in C:\work\test.php on line 6
bool(false)
I can't understand both warnings, isn't that ORACLE_HOME is not needed for instant client, For the second warning, isn't that OCIError does not need to pass any handle?
Similar Messages
-
ALV list with empty data - What could have gone wrong?
Dear experts,
I'm currently working on some codes to display data (the tables involved really do contain data), but when the codes are executed, the ALV list does not contain any data in it (only the column headers are fine).
What could have gone wrong? I've been staring at the codes for hours now. Please help. Appreciate any help at all.
Displaying ALV data with REUSE_ALV_LIST_DISPLAY:
form display_alv_data .
CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
EXPORTING
* I_INTERFACE_CHECK = ' '
* I_BYPASSING_BUFFER =
* I_BUFFER_ACTIVE = ' '
I_CALLBACK_PROGRAM = w_prog
* I_CALLBACK_PF_STATUS_SET = ' '
* I_CALLBACK_USER_COMMAND = ' '
* I_STRUCTURE_NAME =
* IS_LAYOUT =
IT_FIELDCAT = gt_field_cat[]
* IT_EXCLUDING =
* IT_SPECIAL_GROUPS =
* IT_SORT =
* IT_FILTER =
* IS_SEL_HIDE =
* I_DEFAULT = 'X'
* I_SAVE = ' '
* IS_VARIANT =
* IT_EVENTS =
* IT_EVENT_EXIT =
* IS_PRINT =
* IS_REPREP_ID =
* I_SCREEN_START_COLUMN = 0
* I_SCREEN_START_LINE = 0
* I_SCREEN_END_COLUMN = 0
* I_SCREEN_END_LINE = 0
* IR_SALV_LIST_ADAPTER =
* IT_EXCEPT_QINFO =
* I_SUPPRESS_EMPTY_DATA = ABAP_FALSE
* IMPORTING
* E_EXIT_CAUSED_BY_CALLER =
* ES_EXIT_CAUSED_BY_USER =
TABLES
T_OUTTAB = gt_final
EXCEPTIONS
PROGRAM_ERROR = 1
OTHERS = 2.
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
endform. " display_alv_data
Retrieving data from the database tables into the internal table:
form retrieve_data .
" For internal table 1
SELECT ekbe~ebeln
mseg~mblnr
ekbe~belnr
ekbe~ebelp
ekbe~matnr
ekbe~menge
ekbe~dmbtr
ekbe~werks
mseg~lgort
mseg~lifnr
lfa1~name1
FROM ekbe INNER JOIN mseg ON ekbe~ebeln = mseg~ebeln
INNER JOIN lfa1 ON mseg~lifnr = lfa1~lifnr
INTO CORRESPONDING FIELDS OF TABLE gt_1
WHERE mseg~bwart = '101' AND " Movement type: Goods Receipt
ekbe~vgabe = '2' AND " Transaction / event type for Invoice Verification Number
ekbe~matnr IN s_m_num AND
mseg~lifnr IN s_v_num.
" For internal table 2
SELECT ekbe~ebeln
makt~maktx
eket~eindt
FROM ekbe INNER JOIN makt ON ekbe~matnr = makt~matnr
INNER JOIN eket ON ekbe~ebeln = eket~ebeln
INTO CORRESPONDING FIELDS OF TABLE gt_2
WHERE eket~eindt IN s_d_date.
" For internal table 3
SELECT ekbe~ebeln
ekko~bedat
ekko~ekorg
ekko~ekgrp
ekko~bukrs
FROM ekbe INNER JOIN ekko ON ekbe~ebeln = ekko~ebeln
INTO CORRESPONDING FIELDS OF TABLE gt_3
WHERE ekko~bedat IN s_p_date AND
ekko~ekorg IN s_p_org AND
ekko~ekgrp IN s_p_grp.
" For the final internal table
SORT: gt_1, gt_2, gt_3.
LOOP AT gt_1.
MOVE-CORRESPONDING gt_1 TO gt_final.
READ TABLE gt_2 WITH KEY gfs_ebeln = gt_1-gfs_ebeln BINARY SEARCH.
MOVE-CORRESPONDING gt_2 TO gt_final.
READ TABLE gt_3 WITH KEY gfs_ebeln = gt_1-gfs_ebeln BINARY SEARCH.
MOVE-CORRESPONDING gt_3 TO gt_final.
APPEND gt_final.
ENDLOOP.
endform. " retrieve_dataDear forumers,
I apologize for the rather late reply. The SAP server that I've been working on was down since Thursday evening and I wasn't able to debug much into the codes. Nevertheless, I really do appreciate all of your inputs and help here.
Rob,
I've just debugged my codes again and found out that in the first place, there is no data contained in the internal table gt_1 at all. My rough guess is because I've misused the INNER JOIN wrongly here (see code comments below):-
SELECT ekbe~ebeln
mseg~mblnr
ekbe~belnr
ekbe~ebelp
ekbe~matnr
ekbe~menge
ekbe~dmbtr
ekbe~werks
mseg~lgort
mseg~lifnr
lfa1~name1 " this line should probably be commented out
FROM ekbe INNER JOIN mseg ON mseg~ebeln = ekbe~ebeln
INNER JOIN lfa1 ON lfa1~lifnr = mseg~lifnr " this line should probably be commented out - the table join here is not based on table ekbe at all
INTO CORRESPONDING FIELDS OF TABLE gt_1
WHERE mseg~bwart = '101' AND
ekbe~vgabe = '2' AND
ekbe~matnr IN s_m_num AND
mseg~lifnr IN s_v_num.
Next, I commented out certain lines further and found that there is still no data contained in the internal table gt_1 again, as follows:-
SELECT ekbe~ebeln
mseg~mblnr
ekbe~belnr
ekbe~ebelp
ekbe~matnr
ekbe~menge
ekbe~dmbtr
ekbe~werks
mseg~lgort
mseg~lifnr
" lfa1~name1
FROM ekbe INNER JOIN mseg ON mseg~ebeln = ekbe~ebeln
" INNER JOIN lfa1 ON lfa1~lifnr = mseg~lifnr
INTO CORRESPONDING FIELDS OF TABLE gt_1.
" WHERE mseg~bwart = '101' AND
" ekbe~vgabe = '2' AND
" ekbe~matnr IN s_m_num AND
" mseg~lifnr IN s_v_num.
There should be data contained in table ekbe here. What could have really gone wrong now? -
Before you ask, i tried going through the third-party add-on document and opening it up in safemode did not fix it. Also, I am running it as administrator and that is not helping either.
I DID IT! I FIXED IT, FINALLY!!! At least it worked for me. Here's what I did: from Control Panel/Programs/Programs and Features/Uninstall or Change Program, I right-clicked on iTunes and selected Repair. After that ran and completed, I went to Computer/Local Disk (C:)/Program Files. From the list, I right-clicked on iTunes and selected “Run as Administrator.” After that I tried to purchase music from iTunes, and it worked! I hope this makes sense and works for you. Good luck!
-
Where it could have gone wrong ?
Hi ,
i got the error :
ORA-06550: line 4, column 1:
PLS-00428: an INTO clause is expected in this SELECT statement
when executing :
declare
begin
select * from testing_timelogging where DESCRIPTION_LEVEL1 = 'ttttt' ;
exception
when no_data_found then
dbms_output.put_line('No DATA');
when others then
dbms_output.put_line('OTHERS');
end ;
must i really declare a variable ?
tks & rdgsWhat you are executing is a PL/SQL, and not just SQL. In PL/SQL (like any other language accessing database), you need to declare variable(s) to capture value(s) returned by a SELECT.
-
I cannot get Numbers to update on my iPad. Have deleted and reinstalled it and still get old information when I drag from my Excel program. Any ideas on what could be going wrong would be most welcome.
Bryce,
Did you try disabling ActiveX Filtering?
You have more details in the following link:
http://helpx.adobe.com/flash-player/kb/flash-player-games-video-or.html#main_2__Disable_Ac tiveX_Filtering__if_you_are_using_Internet_Explorer_9__
Thanks,
Sunil -
RE: (forte-users) What could have caused the StopWatch classto r eturn
Attila
1. Ops - I DO instantiate it as follows:
[snip]
sw : StopWatch = new;
[snip]
I missed the "= new" in the orig mail message (cut/past from wrong
workspace).
2. LogWriter(deltaT:integer, t1:DateTimeData, t2:DateTimeData)
[snip]
task.part.logmgr.put('| ');
task.part.logmgr.put(deltaT);
task.part.logmgr.put(' | ');
task.part.logmgr.put(t1);
task.part.logmgr.put(' | ');
task.part.logmgr.put(t2);
task.part.logmgr.putline(' |');
[snip]
OK, it's just a quick 'n dirty but it does the job for testing.
Regards,
Dirk
-----Original Message-----
From: Attila Rácz [mailto:[email protected]]
Sent: Thursday, 7 October 1999 14:35
To: Haben, Dirk
Subject: Re: (forte-users) What could have caused the
StopWatch class to
return a negative v alue?
Hi Dirk,
1. You don't instantiate the StopWatch object!!! So the
attached code have to
throw a NIL exception. On my PC it does:
"Trying to invoke a method on a NIL object (qqos_StopWatch, 1)."
2. Send the whole LogWriter method for analyzing.
Attila
"Haben, Dirk" wrote:
G'day
Suppose the following output is produced:
Loaded Forte Message Catalog 'fortemsg/en_us.cat'
NLM Startup is Complete - Partition's Locale is 'c'
Loading partition CollectResponseStatistics_cl0_Client built on 30-Sep-1999
09:12:28.
Attached to manager for node BLAH.
%DiH-I-VERID: CollectResponseStatistics_v371.002
%DiH-I-BGP, BGP Started...
%DiH-I, Repeat Interval (in milliseconds) 300000
%DiH-I, Sample Account Number: 123456
%DiH-I-BGPSTART, BackgroundProcessing started at: 07-Oct-1999 08:54:16
| Total Time | Account Fetch | Account Fetch |
| in milliSeconds | Start Time | Completion Time |
|-----------------|----------------------|----------------------|
| -194 | 07-Oct-1999 08:54:16 | 07-Oct-1999 08:54:17 |
What could cause the stopwatch class to return this negative value? Here is
the code that is run:
sw : StopWatch;
//that line is actual as follows:
sw : StopWatch = new;
//*****[Dirk]
>>
BP_t1 : DateTimeData = new;
BP_t2 : DateTimeData = new;
BP_t1.SetCurrent();
self.LogWriter('%DiH-I-BGPSTART, BackgroundProcessing started at: ',BP_t1);
self.LogWriterHeading();
tmpAcc : account = new;
sw.fire();
BP_t1.SetCurrent();
tmpAcc = self.AccountFetch(aAccountNumber);
BP_t2.SetCurrent();
deltaT : Integer = sw.split();
self.LogWriter(deltaT,BP_t1,BP_t2);
Oh, and the logwriter is just a formatted logmgr.put(deltaT) ,
logmgr.put(t1) etc
Any light on this one much appreciated.
Thanks,
Dirk
For the archives, go to: http://lists.sageit.com/forte-users and use
the login: forte and the password: archive. To unsubscribe, send in a new
email the word: 'Unsubscribe' to:
[email protected]
Attila Racz Lufthansa
Systems Hungary
BUD LSYH
E-mail: [email protected] .-``'.
Tel.: (36 1) 431-2910 .` .' Mazsa ter 2-6.
Fax : (36 1) 431-2977 _.-' '._ H-1107
Budapest, HungaryAttila
1. Ops - I DO instantiate it as follows:
[snip]
sw : StopWatch = new;
[snip]
I missed the "= new" in the orig mail message (cut/past from wrong
workspace).
2. LogWriter(deltaT:integer, t1:DateTimeData, t2:DateTimeData)
[snip]
task.part.logmgr.put('| ');
task.part.logmgr.put(deltaT);
task.part.logmgr.put(' | ');
task.part.logmgr.put(t1);
task.part.logmgr.put(' | ');
task.part.logmgr.put(t2);
task.part.logmgr.putline(' |');
[snip]
OK, it's just a quick 'n dirty but it does the job for testing.
Regards,
Dirk
-----Original Message-----
From: Attila Rácz [mailto:[email protected]]
Sent: Thursday, 7 October 1999 14:35
To: Haben, Dirk
Subject: Re: (forte-users) What could have caused the
StopWatch class to
return a negative v alue?
Hi Dirk,
1. You don't instantiate the StopWatch object!!! So the
attached code have to
throw a NIL exception. On my PC it does:
"Trying to invoke a method on a NIL object (qqos_StopWatch, 1)."
2. Send the whole LogWriter method for analyzing.
Attila
"Haben, Dirk" wrote:
G'day
Suppose the following output is produced:
Loaded Forte Message Catalog 'fortemsg/en_us.cat'
NLM Startup is Complete - Partition's Locale is 'c'
Loading partition CollectResponseStatistics_cl0_Client built on 30-Sep-1999
09:12:28.
Attached to manager for node BLAH.
%DiH-I-VERID: CollectResponseStatistics_v371.002
%DiH-I-BGP, BGP Started...
%DiH-I, Repeat Interval (in milliseconds) 300000
%DiH-I, Sample Account Number: 123456
%DiH-I-BGPSTART, BackgroundProcessing started at: 07-Oct-1999 08:54:16
| Total Time | Account Fetch | Account Fetch |
| in milliSeconds | Start Time | Completion Time |
|-----------------|----------------------|----------------------|
| -194 | 07-Oct-1999 08:54:16 | 07-Oct-1999 08:54:17 |
What could cause the stopwatch class to return this negative value? Here is
the code that is run:
sw : StopWatch;
//that line is actual as follows:
sw : StopWatch = new;
//*****[Dirk]
>>
BP_t1 : DateTimeData = new;
BP_t2 : DateTimeData = new;
BP_t1.SetCurrent();
self.LogWriter('%DiH-I-BGPSTART, BackgroundProcessing started at: ',BP_t1);
self.LogWriterHeading();
tmpAcc : account = new;
sw.fire();
BP_t1.SetCurrent();
tmpAcc = self.AccountFetch(aAccountNumber);
BP_t2.SetCurrent();
deltaT : Integer = sw.split();
self.LogWriter(deltaT,BP_t1,BP_t2);
Oh, and the logwriter is just a formatted logmgr.put(deltaT) ,
logmgr.put(t1) etc
Any light on this one much appreciated.
Thanks,
Dirk
For the archives, go to: http://lists.sageit.com/forte-users and use
the login: forte and the password: archive. To unsubscribe, send in a new
email the word: 'Unsubscribe' to:
[email protected]
Attila Racz Lufthansa
Systems Hungary
BUD LSYH
E-mail: [email protected] .-``'.
Tel.: (36 1) 431-2910 .` .' Mazsa ter 2-6.
Fax : (36 1) 431-2977 _.-' '._ H-1107
Budapest, Hungary -
What has suddenly gone wrong with Facetime? I'm using OSX Snow Leopard 10.6.3
What has suddenly gone wrong with Facetime? I'm using OSX Snow Leopard 10.6.3
No, cannot revert to the original. Suddenly this new Facetime was imposed on me and it doesn't work. It's okay on a year old MacBook Pro, and it's ok in the iPhone 4S. Just not ok on the imac running on 10.6.3. Cannot try OS update suggested because I am currently 300 miles from the Mac and travelling so will have to wait until I get back. Reluctant to install mavericks because of all the complaints I have seen about incompatibilities. Appreciate the business reasons for constant OS updates, but businesses themselved would always rather remain with tried ant trusted software. I stopped using iMovie entirely because suddenly a new version was imposed that required re-leaening the whole process.
-
When I went to bed I had 3,000 song and multiple playlists. This morning I have ~30 songs and no playlists. What could have happened to my songs playlists? I run iTunes on a Windows 7 64-bit machine. HELP! (oh, and the Songs are not in recycle bin)
My wife's ipod nano was plugged into the machine overnight.
When she went running with it, there were no songs on it. She checked the computer and was horrified to see that the playlists had disappeared and most of the songs had disappeared.
QUESTIONS:
1. What could it be?
2. How can I fix it?Hi, there alot of us suffering from this phernomonon but there is a forum topic about is already.
https://discussions.apple.com/message/16767377#16767377
Come check it out.
Hope this works out for all of us. -
Can someone please tell me what I have done wrong>? Obviously I am new to iweb, and need help. I recently built a website in iweb with only 5 pages, and I made the height, width, & all of the specs regarding the page size exactly the same, but they all load as different sizes on the website. Also the text i typed loads right away, and the images take forever to load with each page when i look at it on a pc, and not mac. Can someone please help me!!
Obviously I am new to iweb, and need help.
And one of your Services is Webdesign?
Small consolation : iWeb is a very advanced piece of software. So advanced that even highly skilled professionals have difficulty understanding and using it.
Anyway, your pages are NOT the same size by design. Which can clearly be seen. But also by checking the source of the pages.
The Home page is 665px wide and the Contact page is 820px wide. That doesn't happen by magic. It's user induced.
So do what I do : pay attention to every tiny detail. Especially when it's your business. No excuse.
Here are some sample Sites :
http://www.wyodor.net/mfi/
You can download Domain files for your pleasure to study and use here :
http://www.wyodor.net/mfi/Maaskant/How_To.html
http://www.wyodor.net/mfi/size/768-946.html -
Working alternating with iPhoto and FCE tgrying to import pictures from iPhoto into FCE suddenly all my 22300 pictures disappeared leaving empty frames. Does somebody know where the pictures could have gone and how can I get them back into iPhoto? Lothar
The ! turns up when iPhoto loses the connection between the thumbnail in the iPhoto Window and the file it represents.
Option 1
Back Up and try rebuild the library: hold down the command and option (or alt) keys while launching iPhoto. Use the resulting dialogue to rebuild. Choose to Rebuild iPhoto Library Database from automatic backup.
If that fails:
Option 2
Download iPhoto Library Manager and use its rebuild function. This will create a new library based on data in the albumdata.xml file. Not everything will be brought over - no slideshows, books or calendars, for instance - but it should get all your albums and keywords back.
Because this process creates an entirely new library and leaves your old one untouched, it is non-destructive, and if you're not happy with the results you can simply return to your old one. .
Regards
TD -
I used my photo shop elements just a day ago and now it is no longer available. It is not a trial version, so what could have happened and how do I get another one without paying a fortune?
Photo Photoshop Elements you can download the retail installation files for Photoshop Elements 9 at Download Photoshop Elements products | 9, 8, 7.
-
I am in the middle of preparing a ppt presentation for my business. All of a sudden, the ppt crashed - then followed by word, excel, outlook.
What could have happened?Try:
- Reset the iOS device. Nothing will be lost
Reset iOS device: Hold down the On/Off button and the Home button at the same time for at
least ten seconds, until the Apple logo appears.
- Reset all settings
Go to Settings > General > Reset and tap Reset All Settings.
All your preferences and settings are reset. Information (such as contacts and calendars) and media (such as songs and videos) aren’t affected.
- Restore from backup. See:
iOS: Back up and restore your iOS device with iCloud or iTunes
- Restore to factory settings/new iOS device.
If still problem, make an appointment at the Genius Bar of an Apple store since it appears you have a hardware problem.
Apple Retail Store - Genius Bar -
Can someone tell what I have done wrong here trying to pass strings to a
I have just started programming in java I can't see what I have done wrong here in my code can someone please help me?
// Thomas Klooz
// October 10, 2008
/** A class that enters
* DVD Info pass the arrays
* DvdInventory Class and then manipulates the data from there*/
import java.util.Scanner;// imports a scanner for use by the class
public class DVDInfo
public static void main(String args[])
String theTitle[] = new String[10];// array of titles
int inventory [] = new int[10];// array of ten for inventory
int quantity []= new int[10];// array of ten for quantity
double price []= new double[10];// array for the price of each double
int count = 0;// variable to track what information is suppose to be passed to class
System.out.println(" Welcome to DVD Inventory Program!");//Welcome message for the user
System.out.println();//returns a blank line
boolean stop = false;// boolean charcter to make program stop
while(! stop)
Scanner input = new Scanner( System.in );// creates scanner to use
System.out.println(" Enter an item name or stop to Quit: ");// prompt user for input
theTitle[count] = input.nextLine();// assigns the value to Title
if (theTitle[count].equals("stop"))
System.out.println();//returns a blank line
System.out.println(" The DVD Inventory has been entered!");// diplay exit message to
stop = true;
} // end if
else // continue to get data
System.out.println();//returns a blank line
System.out.println(" Enter the item number must be greater equal or greater than zero: ");// prompt user for input
inventory[count] = input.nextInt();// assigns value to inventory
if (inventory[count] < 0)// continue until proper value has been entered
System.out.println( " Error no numbers can be below zero!");
System.out.println(" Enter the item number must be greater equal or greater than zero: ");// prompt user for input
inventory[count] = input.nextInt();// assigns value to inventory
}// end if
System.out.println();//returns a blank line
System.out.println(" Enter the amount of DVDs you have must be greater than zero: ");// prompt user for input
quantity[count]= input.nextInt();// assigns value to inventory
if( quantity[count] <= 0)// continue to proper data is entered
System.out.println( " Error: you have no inventory for this item ");// error message sent to user
System.out.println(" Enter the amount of DVDs you have must be greater than zero: ");// prompt user for input
quantity[count]= input.nextInt();// assigns value to inventory
}//end if
System.out.println();//returns a blank line
System.out.println( " Enter the cost per DVD: ");// prompt user for input
price[count] = input.nextDouble();// assigns the value to price
count++;//increaments count 1
}// end else
}// end while
DVDInventory myDVDInventory = new DVDInventory(theTitle,inventory,quantity,price,count); the problem seems to be here because this is where I get error message when I'm trying to pass to class named DVD
}// end main
}// end classthis is the code that is important
import java.util.Scanner;// imports a scanner for use by the class
public class DVDInfo
public static void main(String args[])
String theTitle[] = new String[10];// array of titles
int inventory [] = new int[10];// array of ten for inventory
int quantity []= new int[10];// array of ten for quantity
double price []= new double[10];// array for the price of each double
int count = 0;// variable to track what information is suppose to be passed to class
System.out.println(" Welcome to DVD Inventory Program!");//Welcome message for the user
System.out.println();//returns a blank line
boolean stop = false;// boolean charcter to make program stop
while(! stop)
Scanner input = new Scanner( System.in );// creates scanner to use
System.out.println(" Enter an item name or stop to Quit: ");// prompt user for input
theTitle[count] = input.nextLine();// assigns the value to Title
if (theTitle[count].equals("stop"))
System.out.println();//returns a blank line
System.out.println(" The DVD Inventory has been entered!");// diplay exit message to
stop = true;
} // end if
else // continue to get data
System.out.println();//returns a blank line
System.out.println(" Enter the item number must be greater equal or greater than zero: ");// prompt user for input
inventory[count] = input.nextInt();// assigns value to inventory
if (inventory[count] < 0)// continue until proper value has been entered
System.out.println( " Error no numbers can be below zero!");
System.out.println(" Enter the item number must be greater equal or greater than zero: ");// prompt user for input
inventory[count] = input.nextInt();// assigns value to inventory
}// end if
System.out.println();//returns a blank line
System.out.println(" Enter the amount of DVDs you have must be greater than zero: ");// prompt user for input
quantity[count]= input.nextInt();// assigns value to inventory
if( quantity[count] <= 0)// continue to proper data is entered
System.out.println( " Error: you have no inventory for this item ");// error message sent to user
System.out.println(" Enter the amount of DVDs you have must be greater than zero: ");// prompt user for input
quantity[count]= input.nextInt();// assigns value to inventory
}//end if
System.out.println();//returns a blank line
System.out.println( " Enter the cost per DVD: ");// prompt user for input
price[count] = input.nextDouble();// assigns the value to price
count++;//increaments count 1
}// end else
}// end while
DVDInventory myDVDInventory = new DVDInventory(theTitle,inventory,quantity,price,count);
}// end main
}// end class The problem seems to be when I try to pass all the variables to the class DVDInventory the first statement after all. I get message that say can't find java. String
Edited by: beatlefla on Oct 10, 2008 8:20 PM -
Suddenly I can't record after the cat walked across the keyboard. What could have happened? Teeny bit of signal to the meter.
Mate ignore these Pet Detectives
This is NOTHING to do with your mac
Your Cat5 Ethernet cable prObably got knocked -
There were two emails that did appear in my Mac computer and not in the iPhone. What could have happened? Thanks
AnaOn which device do you normally check mail?
I assume you must normally check on the phone and that is why you don't see it often. If you checked a POP account on your phone and hten tried to check the POP email account on your computer you would find that amy POP emails you accessed on your phone would not appear on the computer and that is because you have already downloaded them on the phone and they are no longer on the server so when your computer checks for mail the server responds to the computer and says there are no recent messages. The reverse of this would occur ifyou found new mail on your computer from the POP account. That new mail would not be found on the phone mail app
Maybe you are looking for
-
Get all addresses from Partner in a Delivery
Hi I need to find the address numbers ADRC for all the Partners in a delivery and i do not know in what table to search for them. So i need the address number for Ship-to-party Sold-to-party Payer Bill-to-party You can see them in Delivery->Header De
-
Switching Audio-Out to internal speaker with Audio still plugged in?
Hello, unfortunately I snapped my optical audio plug in my iMac and now it's stuck in the jack. What a mess. Until I take it to the service, I would like to use my internal speakers. Most unfortunately, as the part of the plug is still stuck in the j
-
I really would like to know: why the video call option was not introduce to your Smart phones in the call log , you have guided the customers to use '' hangouts '' Application, I just tried that and most of peoples don't use that Application , '' Cau
-
How Do I Reset My i Connect password?
I am locked out of my i tunes connect account because I forgot the password. So I am unable to upload a new epub book to ibookstore. I entered my Apple ID and password. Then when I try to enter the itunes connect, I am told that apple ID does not
-
Hi All, Of late, I heard a term "Third party plant". What is meant by "Third party plant"? Is it a word to refer our consignment vendor? Kindly clarify. Regards, Raja Durai