How to find this new  error ?

<?php
$connection = oci_connect("apps", "apps","prod");
$query = "select h.Order_Number,L.ORDERED_QUANTITY,L.UNIT_SELLING_PRICE*L.ORDERED_QUANTITY,L.UNIT_SELLING_PRICE*L.ORDERED_QUANTITY
from oe_order_headers_all h,
oe_order_lines_all l
where h.org_id = 82
and h.header_id = l.header_id
and h.org_id = 82
and l.org_id = 82
and to_char(h.ordered_date,'YYYYMMDD') = '20060426'
$statement = oci_parse ($connection, $query);
oci_execute ($statement);
?>
<html>
<head><title>My website</title></head>
<body>
<table border =1>
<tr>
<td >name</td>
<td>quantity</td>
<td>money</td>
<td>rowsum</td>
</tr>
<?
$totalsum1 = 0;
$totalsum2 = 0;
$totalsum3 = 0;
$ordersum1 = 0;
$ordersum2 = 0;
$ordersum3 = 0;
// Just pull the data & print..
while($row = oci_fetch_array ($statement, OCI_BOTH))
$rowsum = $row[1] + $row[2];
$ordersum1 = $$ordersum1 +$row[1];
$ordersum2 = $$ordersum2 +$row[2];
$ordersum3 = $$ordersum3 +$row[3];
$totalsum1 = $totalsum1 + $row[1];
$totalsum2 = $totalsum2 + $row[2];
$totalsum3 = $totalsum3 + $row[3];
if ($name is not null and $name <> $row[0] ){
print("<tr>");
print("<td>&#23567;&#35745;</td>");
print("<td>$ordersum1</td>");
print("<td>$ordersum2</td>");
print("<td>$ordersum3</td>");
print("</tr>");
else {
print("<tr>");
print("<td>$row[0]</td>");
print("<td>$row[1]</td>");
print("<td>$row[2]</td>");
print("<td>$rowsum</td>");
print("</tr>");
$name = $row[0];
print("<tr>");
print("<td>&#21512;&#35745;</td>");
print("<td>$totalsum1</td>");
print("<td>$totalsum2</td>");
print("<td>$totalsum3</td>");
print("</tr>");
?>
</table>
</body>
</html>

I think the problem is with the below line...
if ($name is not null and $name <> $row[0] )
Try with this..(also check for is_null() function..)
// try this..no need to initialize..
if (isset($name) and $name != $row[0] )
// or try this..no need to initialize..
if (!empty($name) and $name != $row[0] )

Similar Messages

  • Trying to figure out how to find this error?

    Hi,
    I have a project that keeps throwing this error, but I can't see, to figure out how to find it:
    TypeError: Error #1009: Cannot access a property or method of a null object reference.
    It's a very large project. How can I search for this?
    thanks,
    Dave

    ok, so it showed me a few things... THANKS, but none of which were exactly a problem:
    at ALeCard_CBP_0101_fla::MainTimeline/frame23()[ALeCard_CBP_0101_fla.MainTimeline::frame23:4 3]
    at flash.display::MovieClip/gotoAndPlay()
    at ALeCard_CBP_0101_fla::MainTimeline/fl_ClickToGoToScene2523()[ALeCard_CBP_0101_fla.MainTim eline::frame25:302]
    so the top one is just a part of a button
    downloadButton.buttonMode = true;
    which is fine.
    then, the other one points to a part of a function that I've used in a dozen other places and it works fine:
    MovieClip(this.root).gotoAndPlay(23);
    something I did find-and I still can't figure out why-is that download button was causing issues. I have NO idea why since it's an exact duplicate from another file.
    but this is cool to have this information-thanks!
    Dave

  • How to find trace file error in form

    hai all,
    i have big problem in my form in apps i open the form one error is ocuured,
    i got the trace file and check the error,
    PARSE ERROR #82:len=2903 dep=0 uid=173 oct=3 lid=173 tim=4265689973879 err=904 this is the trace file error meassage,
    how to find this error in form and also this is occured one select statement,how to find this select statement where can be used in form,
    i have one button ,when ever i press the button this error is ocuured,i check this button pl/sql procedure code but in this code not using that sql statement,
    if any one know to find the sql statement through trace file.
    plz give the replay as soon as possible.
    thank's

    The newest SQL Developer can converts the trace to readable format too, I'm not shure if you see the sql statement related to the error then.
    It seems you get ORA-00904 which says you use an invalid coumn in a dml statement.
    Normally such error should pop up in message - do you overwrite the message handling or use exception handling in you form which block this message?
    Easiest way to find this is to compile the form against the target database.
    If this does not give an error, you should check, if you use dynamic sql statements which are wrong.
    If you call database routines from your form, than this could be the errro cause too.

  • I cant find my purchased ringtones on my itunes account? Anybody know how to find this? It's not popping up under Music in my purchased history. It is soooo frustrating because they make it so hard to find anything ringtone related on the itunes store!!!

    I cant find my purchased ringtones on my itunes account? Anybody know how to find this? It's not popping up under Music in my purchased history. It is soooo frustrating because they make it so hard to find anything ringtone related on the itunes store!!!

    They will be wherever you put them.
    You only get one download.

  • HT4061 Need to find MEID # on my ipad 2 (non-cellular) to use Verizon's wi-fi while on vacation.Can anyone explain to me how to find this number?   Thanks in advance .  Scott

    Need to find MEID # on my ipad 2 (non-cellular) to use Verizon's wi-fi while on vacation.Can anyone explain to me how to find this number?   Thanks in advance .  Scott

    iOS: How to find the serial number, IMEI, MEID, CDN, and ICCID number
    http://support.apple.com/kb/HT4061
     Cheers, Tom

  • My iPod was stolen and insurance company want it's serial number before replacing it. They have advised iTunes stores this information as a device connected to iTunes. Can anyone advise how I find this information?

    IiPod serial number stored in iTunes, can anyone advise how I find this information for my insurance company?

    Juliebathgate wrote:
    IiPod serial number stored in iTunes, can anyone advise how I find this information for my insurance company?
    Hi,
    If you have made a backup at any time of your iPod in iTunes, it should be in Preferences, under Devices tab.
    In iTunes
    Open iTunes Preferences.
    From the Preferences window click on the Devices.
    Once you are there you should see a list under "Device Backups:".
    Hover your mouse pointer to the device and in a little while it should display the serial number of the device (with an iPhone it will also display a phone number used with it and the IMEI code and with an iPad it will display the IMEI in addition to the serial number).
    A pircture of where it can be found: http://km.support.apple.com/library/APPLE/APPLECARE_ALLGEOS/HT4946/en_US/HT4946- devices-iphone-001-en.png

  • TS3694 how to find this solution?

    how i find this solution in iphone 3g .. i need help to recover this.

    The first step in finding a solution is to state the problem.

  • How to find this link

    Library -> Logistics -> Logistics Execution (LE) -> Transport (LE-TRA) -> Shipment Cost Processing -> Shipment Cost Processing with Service Providers -> Shipment Costs as Delivery Costs).
    How to find this above link.
    Please help me?
    How to connect to sap library
    With regards
    lakki

    Hi Lakki,
    Please go through this link it will help you,
    http://help.sap.com/saphelp_47x200/helpdata/en/93/74413b546011d1a7020000e829fd11/frameset.htm
    I hope it will help you,
    Regards,
    Murali.

  • How to find this Search object relavant to which root object?

    Hi All,
      how to find this Search object relavant to which root object?
      As I am having search object 'BTQuery1O', so which is root object for this?
      how to find this?

    Hi Carl,
               Search object BTQuery1O and the attribute structure associated with it is CRMST_QUERY1O_BTIL,
               even if we enhance this structure with zfield, as it is search object, then it should queried on some main database
               table, so it is 'CRMD_ORDERADM_H', here we need to add our zfield first to it, so that after added to search object then
               only search query work, so that's the reason I am asking is it possible to find 'CRMD_ORDERADM_H' relevant from
               GENIL_MODEL_BROWSER, or any way also?

  • HT1551 Want to play tv shows purchased on iPad on Apple tv. When I touch icon for apple tv and choose "apple tv" it asks for an apple tv password. We have never set up any password and can't get past this screen. Does anyone know how to find this password

    Want to play tv shows purchased on iPad on Apple tv. When I touch icon for apple tv and choose "apple tv" it asks for an apple tv password. We have never set up any password and can't get past this screen. Does anyone know how to find this password?

    You can remove the Airplay password from the Settings menu on your AppleTV.

  • I need a domain key for the icrop app. Any ideas on how to find this?

    I need a domain key for the icrop app. Any ideas on how to find this?

    Can you open the Preview program without loading a file, like by itself?
    If it doesn't load then I suspect a corrupt Preview preference file.
    Deleting the System Preference or other .plist file
    Can you open other files with Preview, like jpg's and images?
    How about other PDFs? or is it just that one you have downloaded?
    Run through this list of fixes
    Step by Step to fix your Mac

  • HT1386 with the new itunes look. i just purchased an audio book. and now with the new version of itunes..i see it but i am not sure how to put it on my ipod?  it find this new version very confusing..i have a few questions but cannot talk to anyone from i

    how do i sync my audible book to my ipod touch. i see it in my itunes library but with the new itunes look..it is not allowing me to drag it to my ipod?
    i find the new look quite un-user friendly. also cannot see my summary tab anymore.

    You have to update to 10.6.8 first.
    Then, if your machine qualifies, this explains how to get Mavericks:
    http://www.apple.com/osx/
    This explains whether your machine is capable of Mavericks installation:
    http://support.apple.com/kb/HT5842

  • How to create a new error log in VF01

    How would I create a new error log upon creation of invoice in VF01 based on the billing block of order.
    Here is the scenario:
    In VFO1 -->> enter delivery no. then create, but upon creation, an error message appeared incorrect.
    In EDIT -->> LOG, this will appear:
    Error Log
      |
      |_____ 4981173515  000010 Document 4946087103 is blocked for billing.
    The message blocked for billing is what I want to change based on what billing block in order was triggered.
    Tnx in advance!

    This is controlled by your delivery to billing copy control requirement (header).  You would change the copy control config to use a new requirement and then config that requirement at the header level.  (IMG->S&D->Billing->Billing Docs->Maintain Copying Control...).  Make a copy of the existing copy requirement (in txn VOFM) and then add your code to check the block type and change the message.

  • How to find the new tables and columns in a schema

    hi..good morning to all...
    I have a schema ABC which owns some objects.
    Now some days before I have made another schema XYZ which was a replica of ABC schema.
    between these days some new tables, new columns in the existing tables(with or without default value), comments on the columns are being added in the new schema i.e XYZ schema.
    Now I have to find the extra things which are present in the new schema. I need to find the new tables, new columns in hte existing tables, their default values and descriptions of those.
    Can u plss help me how can I find it?
    I am guessing that I have to write a SQL query with a minus clause but I am not able to write it and also dont know where should I execute it.
    plss help. thanks in advance.

    And moreover, when I am executing the query to get the desired result, then it is throwing "illegal use of long datatype" error and pointing to the b.data_default area of my query..
    select a.table_name, a.column_name, b.data_default, a.comments from all_col_comments a, dba_tab_columns b
    where a.TABLE_NAME=b.TABLE_NAME
    and a.OWNER=b.OWNER
    and a.OWNER=XYZ
    minus
    select c.table_name, c.column_name, d.data_default, c.comments from all_col_comments c, dba_tab_columns d
    where c.TABLE_NAME=d.TABLE_NAME
    and c.OWNER=d.OWNER
    and c.OWNER='ABC'
    order by 1, 2;
    plss help...

  • How to find if an error log table is related to a table....???

    Hi,
    In Oracle 10g , maybe in older version too, there is the capability to create an error log table using the dbms_errlog package and create_error_log procedure...
    For exaample:
    exec dbms_errlog.create_error_log('EMP','EMP_ERROR')
    How to find afterwards that the table EMP has a related table EMP_ERROR where errors during the inserts/updates on table EMP are registered...?????
    Of course the column names in EMP_ERROR table are the same as in EMP .... but it's time consuming method to search like this way...!!!!!
    SQL> exec dbms_errlog.create_error_log('EMP','EMP_ERROR');
    PL/SQL procedure successfully completed
    SQL> DESC EMP_ERROR;
    Name            Type           Nullable Default Comments
    ORA_ERR_NUMBER$ NUMBER         Y                        
    ORA_ERR_MESG$   VARCHAR2(2000) Y                        
    ORA_ERR_ROWID$  UROWID(4000)   Y                        
    ORA_ERR_OPTYP$  VARCHAR2(2)    Y                        
    ORA_ERR_TAG$    VARCHAR2(2000) Y                        
    EMPNO VARCHAR2(4000) Y
    ENAME VARCHAR2(4000) Y
    JOB VARCHAR2(4000) Y
    MGR VARCHAR2(4000) Y
    HIREDATE VARCHAR2(4000) Y
    SAL VARCHAR2(4000) Y
    COMM VARCHAR2(4000) Y
    DEPTNO VARCHAR2(4000) Y                        
    SQL> DESC EMP;
    Name     Type         Nullable Default Comments
    EMPNO    NUMBER(4)                             
    ENAME    VARCHAR2(10) Y                        
    JOB      VARCHAR2(9)  Y                        
    MGR      NUMBER(4)    Y                        
    HIREDATE DATE         Y                        
    SAL      NUMBER(7,2)  Y                        
    COMM     NUMBER(7,2)  Y                        
    DEPTNO   NUMBER(2)    Y          Thanks...
    Sim

    exec dbms_errlog.create_error_log('EMP','EMP_ERROR')
    How to find afterwards that the table EMP has a related table EMP_ERROR
    System@Elic10> create table bla_bla (i int);
    Table created.
    System@Elic10> exec dbms_errlog.create_error_log('BLA_BLA', 'BLA_BLA_ERRS')
    PL/SQL procedure successfully completed.
    System@Elic10> select * from user_tab_comments where table_name = 'BLA_BLA_ERRS';
    TABLE_NAME                     TABLE_TYPE  COMMENTS
    BLA_BLA_ERRS                   TABLE       DML Error Logging table for "BLA_BLA"

Maybe you are looking for

  • Windows xp extended desktop not showing up on 2nd monitor all of a sudden

    I've used a 2nd monitor as my main monitor for my T61.  I powered down today to move to another location, when I reconnected to my usual 2nd monitor, the screen just comes up blue, the cursor jumps between my 2 monitors, but there is no Windows comin

  • How do I get the serial number from the redemption number?

    I have a redemption number, connected with Adobe website, (several pages worth) and eventrually found SOME page related to the "www.adobe.com/go/serial" you suggested. BUT there is NO link to exchange the numbers! I just wasted $116 at Best Buy for s

  • Calculation of Percentage in Report CN41

    Hi Sir, How is Processing % of work & Processing % of duration  is Calculated in Report CN41 Regards, Gagan

  • Sort two one dimensional arrays

    I am having trouble sorting two one dimensional arrays. The first array is int type with ID numbers. I use a bubble sort to sort those. The other array is a string array of video titles. When the first int type array of ID numbers sort, I want the se

  • Getting a deleted record IT2001

    hi guys, when u delete an absence record (pa2001) the record is actually erased from the table, but i wonder if is inserted in another table, or the record is lost forever? im asking that because i need to do a log report for all the changes absences