All rows have same result

hi,
I use iis on windows 2003, php 5.2.4 and istantclient 10g.
I want exec a select query on a oracle server view.
But , when i exec the php page , all the rows of the html table have the same result.
This is my code:
<?php
// Create a persistent connection to Oracle
// Connection will be reused over multiple scripts
$conn = oci_pconnect('tdb', 'tdb', '//1.1.1.1/A');
if (!$conn) {
$m = oci_error();
echo $m['message'], "\n";
exit;
else {
print "Connected to Oracle!";
$query = 'select tcpip from TDB';
$stid = oci_parse($conn, $query);
$r = oci_execute($stid);
// Fetch the results in an associative array
print '<table border="1">';
while ($row = oci_fetch_array($stid, OCI_RETURN_NULLS+OCI_ASSOC)) {
print '<tr>';
foreach ($row as $item) {
print '<td>'.($item?htmlentities($item):' ').'</td>';
print '</tr>';
print '</table>';
// Close the Oracle connection
oci_close($conn);
?>
any suggestion ...

thanks, i have resolved...
i have insert "DISTINCT" in my query and all is ok...
Regards

Similar Messages

  • TS1398 My iPhone is not showing that its connected to wi-fi at home. My laptop is connected, but the phone is only showing 3G. I've turned the phone off and on multiple times, turned wi-fi on & off multiple times, all with the same result of no wi-fi.

    My iPhone is not showing that it is connected to wi-fi. My laptop is showing the wi-fi signal with a completely strong signal.  I have turned the phone off & on multiple times, and have turned the wi-fi (on the phone) off & on multiple times as well, all with the same result. Help!!! Any suggestions?

    Poof! It's working like normal! Thanks Lawrence! Guess I have to learn patience!

  • At what point of time I will have same results in RT and CRT?

    Hi Experts,
    At what point of time We have same results in Rt and CRT tables?
    Regards'
    Aryan

    rt is result table ---in this the current payroll result be stored
    and crt is cumalative result table----the cumulation of previous results be stored.
    At given point of time not all records will be same ,however some wage types might be same
    suppose for 9 th period you see the reult of all the table in that for rt you can find only current result(9)
    but in crt you can find sum of 1 to 9th period ie previous periods.
    not all wage types are same in rt and crt..some are common ..but some only in rt some only in crt

  • List of dept where all employees have same age

    Hello Guys ,
    I have a emp table and a city table  , wherein I have details related to employees   and cities .
    I want those dept where in all employees belongs to a particular city .
    Thanks in advance

    Hi,
    96097f0e-f165-463a-a0a2-3d15214c8a3d wrote:
    Hello Guys ,
    I have a emp table and a city table  , wherein I have details related to employees   and cities .
    I want those dept where in all employees belongs to a particular city .
    Thanks in advance
    The title you chose for this thread is
    List of dept where all employees have same age
    but I don't see anything about age in the description of the problem.  This is one example why you need to post a little sample data (CREATE TABLE and INSERT statements) and the results you want from that data, as detailed in the forum FAQ: https://forums.oracle.com/message/9362002
    As mentioned before, post your best attempt at a solution.
    Did you mix up 2 separate problems from the same homework assignment?  If so, solve the problem about the particular city first; it's a little simpler.

  • All users have same bookmarks

    Updated to Mavericks.  Now all users have same bookmark set and changes by one user changes bookmarks in the other accounts.
    Any ideas?
    Thanks,
    David

    All the users are synchronizing Safari with the same iCloud account. That's what you have to change.

  • How to hide the all rows except the result row in a report?

    Hi Experts,
    We have a report in which the user is interested to see only the result rows and I need to HIDE the characteristics in the rows. I was successfull in doing the same for Key figures in columns using "Calculate single value as suppress result". But I am not finding a way out to hide the characteristics in the rows.
    If I move the characteristics in rows to Free characteristics, the result row is not getting dispalyed. Also, the characteristics are  used dynamically by the formulae in columns and hence i cant remove these characteristics from the query. . The user wants the query to contain only one characteristic in the row and the result row for the key figures in columns. The report currently displays Invoice level data for each customer and this needs to be eliminated and it should display the summarised  data for every customer. Please suggest how this can be accomplished
    Regards,
    Kavitha

    Moving the char to free char will show the equivalent of result.
    Your issue likely is that this breaks the calculations since you do want the calculations done at detail level.
    To achieve this, move your char to free char (say it is 0CUSTOMER).
    For the CKF/Formula, go to aggregation tab, set the exception aggregation as Total (or whatever it was in standard behavior) and specify reference characteristic (in this case 0CUSTOMER), also check the 'Before aggregation' if you have that checkbox there.
    This will ensure the calculation is done at detail level even though the char is not included in the rows.
    If you have multiple chars to be moved to free char but included in detailed calculation, you will need to build cascading CKFs (CKF1 with ref char1, CKF2 eq to CKF1 with exception aggr on ref char2...and so on).
    Added:
    I understand you do want 0CUSTOMER in there, but something else (let us say 0DOCNO) removed. Use 0DOCNO in place of 0CUSTOMER in the case described above.
    Edited by: Ajay Das on Aug 5, 2009 8:57 AM

  • Not all rows have been retrieved.Data may be inaccurate

    Hai all,
    I have 12500 records in my table..when using disco, when am fetching all the records it is always displaying only 10,000 records.. and it displays the a/m subjected error and displays only 10k rows..
    Any suggestions ?
    Yusuf

    I have a user that is getting this error when she attempts to print the report.
    However I've run the SQL separately & I don't understand why the error is occurring. The SQL returns only 40 rows and the default return is set for 2000 rows.
    Any ideas?

  • Display Simsun Font in JTextPane, need all characters have same width

    Hi, Gurus
    Need help regarding this issue.
    I am using a JTextPane for display and user input, and I need to use "Simsum" font(customer requirment). And an important requirment is that every character should have the same width, including space. And I find out that when displayed in JTextPane, for English characters and digits, there is no problem, they all have same width, only problem is with space, it is a little bit narrower than other characters. For example, if I type 26 characters "ABCD......XYZ" in the first line, then type 26 spaces in the second line, it is very noticeable that the spaces are narrower.
    At first I thought it is the problen with the font, but then I tried type characters and spaces in Notepad using "Simsun" font and find out that space has the same width with other characters.
    I am thinking probably I need to create my own font based on "Simsun" font, or there is some attributes or styles I need to add when create the styled document for my JTextPane.
    Can anybody give me some help here? Thanks

    Another new dude who is clueless as to the possible effects of cross-posting

  • APPS ON THE ipAD mINI OPEN AND THEN IMMEDIATELY CLOSE. i'VE TRIED REBOOTING BUT STILL HAVE SAME RESULT

    APPS ON THE iPAD MINI BRIEFLY APPEAR TO OPEN AND THEN IMMEDIATELY CLOSE. already TRIED REBOOT BUT SAME ISSUE.

    Have you tried a reset?  Hold down Home and On/Off buttons, ignoring slider until you see the Apple logo.  Then release the buttons.  The device will reset--you will lose no data.  Please don't shout--using all caps is not only rude but it is hard to read.

  • A query to know which all rows have been modified???

    Question: A column stores a number (or sequence) for say Invoice Number and it has values like say
    Invoice_Number
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    Assume that someone updates/deletes few of these rows...say 3,4,6,9
    now auditors want to find out how many invoice_numbers are missing....offcourse in real life there might be millions/billions of rows...
    using only SQL how can one find out this info quickly.

    Eric,
    Instead have a DELETE_FLAG or END_DATE or something indicating the row is now effectively deleted. Nice one, but that implies you don't work on table but on a view and INSTEAD OF trigger, to avoid any delete directly inside your table.
    But in that case, you must avoid any SQL*Plus (or any other tools) access, do not update directly the table, or add a trigger on delete for your table and raise an error.
    Well, that depend of application code.
    Nicolas.

  • R12 Importing invoices all distributions have same description

    I am currently working on an import of invoices and invoice lines for R12 utilizing the interface tables and Payables Open Interface Import process. This process is working great except for one small issue. When you click on an invoice that has been imported in the invoice workbench screen and click "All distributions" the Line Number at the top of the screen will change as you click through the lines but the Line Description does not change. In the body you can see that the line descriptions are all different (and account #'s). The account description on the bottom changes as well.
    I don't know if it matters or not but on the left under "Num" they are all 1.
    This is 12.1.3

    This is a known bug with Financials. It's not considered a priority since the line description is ont he actual line (not at the top). So it's not a problem after all, just an issue witht he form.

  • How to check if a field in the table is same in all rows??

    Hi Folks,
    Is there a feature in abap where we can check if a field in a table is same in all rows.
    Thanks,
    Matt

    This can be easily self-programmed
    read itab index 1.  "get first row
    "now check if exeists any entry with different value
    read itab with key field1 ne itab-field1 transporting no fields.
    if sy-subrc = 0.
      "not all rows have the same value
    else.
      "all rows have the same value
    endif.
    Regards
    Marcin
    Right now I noticed that using NE operator is not allowed in READ TABLE statement, but you can do simple loop instead
    read itab index 1 into l_field1.  "get first row
    loop at itab where field1 ne l_field1.
       flag = 'X'.
       exit.
    endloop.
    if flag = 'X'.
      write: 'some fields are not equal'.
    endif.
    Edited by: Marcin Pciak on Oct 6, 2009 5:35 PM

  • Find Whether Array Element have same element in all index

    Hi ,
    I need to check if an array have the same element in all its indexes.(Example: An Array of Size 4, should have index 0 ..index 3 as 1 and during next iteration let it be number 2 in all indexes......how do I check if all index have same number)
    Attached the VI I did.
    Anyone can suggest better than this.
    Solved!
    Go to Solution.
    Attachments:
    Check array_For Same Element.vi ‏12 KB

    get the first element , compare it with the hole array , AND all elements
    Greetings from Germany
    Henrik
    LV since v3.1
    “ground” is a convenient fantasy
    '˙˙˙˙uıɐƃɐ lɐıp puɐ °06 ǝuoɥd ɹnoʎ uɹnʇ ǝsɐǝld 'ʎɹɐuıƃɐɯı sı pǝlɐıp ǝʌɐɥ noʎ ɹǝqɯnu ǝɥʇ'

  • RE: Installed "Access Denied" posting. I have same problem and none of the answers have worked. Ownership is blank but application will not accept me.

    RE: "Access Denied" question following install of Firefox. I have same problem. Details follow: I tried opening in Safe Mode which did not work. I have Administrative access. When I click the general tab in properties I get a message that "firefox.exe" does not exist. Neither that file nor any other "install" type of file appears in the Mozilla Firefox directory except for "uninstall". I have downloaded and tried to install seven times from six different sources, including Mozilla, all with the same results. I've also tried a number of solutions from the web for this error message with no greater success. I tried, first, doing an upgrade then deleted the older version of Firefox and have done "install" since. Avast, Malwarebytes and Threatfire have found no malware.
    I have never had a similar problem with Firefox before and I've used it for years. Anyone have any ideas I haven't already tried? I'm tired of using Internet Explorer! RE: troubleshooting information below--Windown will not open the downloaded file.

    These steps are recommended for this error message mentioned:
    [https://support.mozilla.org/en-US/kb/troubleshoot-extensions-themes-to-fix-problems Troubleshooting Extensions and Themes], however it seems like you may need to reinstall Firefox since the directory cannot be found.
    Other solutions to this have been to uninstall and use CCleaner to clean up any old registries. However this will loose data from the profile.
    I am seeing the errors and troubleshooting steps all mentioned here:
    *[http://compinfopro.com/windows-cannot-access-the-specified-device-path-or-file/]
    And it seems the best bet would be to uninstall and reinstall. If you can see the profile folder, it is possible to make a back up of the profile [[Back up and restore information in Firefox profiles]] here.
    For a clean reinstall:
    Certain Firefox problems can be solved by performing a ''Clean reinstall''. This means you remove Firefox program files and then reinstall Firefox. Please follow these steps:
    '''Note:''' You might want to print these steps or view them in another browser.
    #Download the latest Desktop version of Firefox from [https://www.mozilla.org mozilla.org] (or choose the download for your operating system and language from [https://www.mozilla.org/firefox/all/ this page]) and save the setup file to your computer.
    #After the download finishes, close all Firefox windows (or open the Firefox menu [[Image:New Fx Menu]] and click the close button [[Image:Close 29]]).
    #Delete the Firefox installation folder, which is located in one of these locations, by default:
    #*'''Windows:'''
    #**C:\Program Files\Mozilla Firefox
    #**C:\Program Files (x86)\Mozilla Firefox
    #*'''Mac:''' Delete Firefox from the Applications folder.
    #*'''Linux:''' If you installed Firefox with the distro-based package manager, you should use the same way to uninstall it - see [[Installing Firefox on Linux]]. If you downloaded and installed the binary package from the [http://www.mozilla.org/firefox#desktop Firefox download page], simply remove the folder ''firefox'' in your home directory.
    #Now, go ahead and reinstall Firefox:
    ##Double-click the downloaded installation file and go through the steps of the installation wizard.
    ##Once the wizard is finished, choose to directly open Firefox after clicking the Finish button.
    More information about reinstalling Firefox can be found [[Troubleshoot and diagnose Firefox problems#w_5-reinstall-firefox|here]].
    <b>WARNING:</b> Do not use a third party uninstaller as part of this process. Doing so could permanently delete your [[Profiles|Firefox profile]] data, including but not limited to, extensions, cache, cookies, bookmarks, personal settings and saved passwords. <u>These cannot be easily recovered unless they have been backed up to an external device!</u> See [[Back up and restore information in Firefox profiles]]. <!-- Starting in Firefox 31, the Firefox uninstaller no longer lets you remove user profile data.Ref: Bug 432017 and https://support.mozilla.org/kb/uninstall-firefox-from-your-computer/discuss/5279 [Fx31] Windows uninstaller will no longer offer the option to remove personal data -->
    Please report back to say if this helped you!
    Thank you.

  • Update Multiple Rows in same table after Update using Trigger

    If i update ACK or ReJ column it should update all the other columns with the same GlobalID.
    create table t_emp(
    empid varchar2(10) not null,
    empname varchar2(50),
    Dep varchar2(50),
    ACk number(5),
    REJ number(5),
    globalID varchar2(10) default '0' );
    insert into t_emp t values ( 'TM01' , 'Logu','Java',null,null,'01');
    insert into t_emp t values ( 'BT01' , 'Logu','Java' ,null,null,'01');
    insert into t_emp t values ( 'Oracle01' , 'Logu','DBA' ,null,null,'01');
    insert into t_emp t values ( 'Google01' , 'Logu','Design' ,null,null,'0');
    insert into t_emp t values ( 'AR02' , 'Uthaya','CRM' ,null,null,'02');
    insert into t_emp t values ( 'RIL02' , 'Uthaya','Java' ,null,null,'02');
    insert into t_emp t values ( 'EA02' , 'Uthaya','DBA' ,null,null,'02');
    insert into t_emp t values ( 'TCS02' , 'Uthaya','Java' ,null,null,null);
    insert into t_emp t values ( 'P05' , 'Krish','.Net' ,null,null,'05');
    insert into t_emp t values ( 'TCS06' , 'Krish','.Net' ,null,null,'06');
    insert into t_emp t values ( 'IBM06' , 'Krish','.Net' ,null,null,'06');
    CREATE OR REPLACE TRIGGER t_emp_update
    AFTER UPDATE
    ON t_emp
    FOR EACH ROW
    DECLARE
    t_Ack varchar2(15);
    t_Rej varchar2(15);
    t_globalID varchar2(10);
    t_empid varchar2(10);
    BEGIN
    t_globalID := :new.globalID;
    t_Ack := :new.ACk;
    t_Rej := :new.REJ;
    t_empid := :new.empid;
    IF t_Ack is not null then
    DBMS_OUTPUT.PUT_LINE('t_Ack := ' || t_Ack || ', t_globalID := '|| t_globalID ||', t_empid := '||t_empid);
    update t_emp set ACk = t_Ack where globalID = t_globalID and empid != t_empid;
    end if;
    IF t_Rej is not null then
    DBMS_OUTPUT.PUT_LINE('t_REJ := ' || t_Rej || ', t_globalID := '|| t_globalID ||', t_empid := '||t_empid);
    update t_emp set Rej = t_Rej where globalID = t_globalID and empid != t_empid;
    end if;
    END;
    update t_emp v set Rej = 1 where empid = 'TCS06';
    If i Update empid = 'TCS06' it should Update Internally all rows with same globalID (06).
    select * from t_emp order by empname,globalID;
    I am getting some errors in this trigger .
    ORA-04091: table TEST1.T_EMP is mutating, trigger/function may not see it
    ORA-06512: at "TEST1.T_EMP_UPDATE", line 17
    ORA-04088: error during execution of trigger 'TEST1.T_EMP_UPDATE'
    I am using ORACLE 10G
    Kindly Help me ...

    Avoiding Mutating Tables
    http://asktom.oracle.com/pls/asktom/ASKTOM.download_file?p_file=6551198119097816936

Maybe you are looking for