Strange Table Problem in IE/OPERA

I have strange problem displaying a table, the rest of the site uses the same structure.
A template file (indexTemplate.php): with the table structure and a include (<?=$ListingTable?>)
The Table Structure looks like this:
<table width="100%"  border="0" cellpadding="0" cellspacing="0" id="Table_02">
<tr>
        <td width="23" valign="top">
            <img src="images/images/search_results_01.png" width="23" height="16" alt=""></td>
    <td height="16" background="images/images/search_results_02.png"> </td>
<td width="23" valign="top">
            <img src="images/images/search_results_03.png" width="23" height="16" alt=""></td>
  </tr>
    <tr>
        <td background="images/images/search_results_04.png"> </td>
<td valign="top" background="images/images/search_results_05.png">
    <?=$ListingTable?>
  </td>
      <td background="images/images/search_results_06.png"> </td>
  </tr>
    <tr>
        <td height="16" valign="top">
            <img src="images/images/search_results_07.png" width="23" height="16" alt=""></td>
      <td height="16" background="images/images/search_results_08.png"> </td>
<td height="16" valign="top">
            <img src="images/images/search_results_09.png" width="23" height="16" alt=""></td>
  </tr>
</table>
The database/query info is in the main page e.g index.php
The contents of index.php:
$q1 = "select * from cars_listings, cars_agents, cars_priority, cars_vehicle where cars_listings.AgentID = cars_agents.AgentID and cars_agents.PriorityLevel = cars_priority.PriorityLevel and cars_agents.AccountStatus = 'active' and cars_listings.VehicleMake = cars_vehicle.VehicleID order by visits desc limit 0,9 ";
$r1 = mysql_query($q1) or die(mysql_error());
$lrows = mysql_num_rows($r1);
if($lrows > '0')
    $ListingTable .= "<table align=left width=100% cellspacing=0>\n";
    $ListingTable .= "<tr>\n<td width=75> </td>\n\t";
    $ListingTable .= "<td width=200 align=center><a class=BlackLink href=\"search.php?c=$_GET[c]&AgentID=$_GET[AgentID]&search_city=$_GET[search_city]&search _state=$_GET[search_state]&search_country=$_GET[search_country]&min=$_GET[min]&max=$_GET[m ax]&year1=$_GET[year1]&year2=$_GET[year2]&before=$_GET[before]&vehicle=1\"></a></td>\n\t";
    $ListingTable .= "<td width=125 align=center><a class=BlackLink href=\"search.php?c=$_GET[c]&AgentID=$_GET[AgentID]&search_city=$_GET[search_city]&search _state=$_GET[search_state]&search_country=$_GET[search_country]&min=$_GET[min]&max=$_GET[m ax]&year1=$_GET[year1]&year2=$_GET[year2]&before=$_GET[before]&r=1\"></a></td>\n\t";
    $ListingTable .= "<td align=center width=100><a class=BlackLink href=\"search.php?c=$_GET[c]&AgentID=$_GET[AgentID]&search_city=$_GET[search_city]&search _state=$_GET[search_state]&search_country=$_GET[search_country]&min=$_GET[min]&max=$_GET[m ax]&year1=$_GET[year1]&year2=$_GET[year2]&before=$_GET[before]&p=1\"></a></td>\n";
    $ListingTable .= "</tr>\n</table>\n\n";
    $ListingTable .= "<table align=center width=100% border=0 bordercolor=#999999 rules=rows cellspacing=0>\n";
    while($a1 = mysql_fetch_array($r1))
        $ListingTable .= "<tr style=\"border-width:1; border-color:#83ff4c\" onMouseOver=\"this.style.background='#ddfdcf'; this.style.cursor='hand'\" onMouseOut=\"this.style.background='none'\" onClick=\"window.open('info.php?id=$a1[ListingID]', '_top')\">\n\t";
        $ListingTable .= "<td height=60>";
        $ListingTable .= "<table align=center width=\"100%\">\n";
        $ListingTable .= "<caption align=center>";
        if($a1[PriorityLevel] > '1')
            $ListingTable .= "<span class=RedLink>$a1[PriorityName] listing</span></caption>\n";   
        $ListingTable .= "<tr>\n\t<td width=75>";
        if(!empty($a1[image]))
            $images = explode("|", $a1[image]);
            $MyImage = $images[0];
            $ListingTable .= "<img src=\"cars_images/$MyImage\" width=75 height=60 border=1 alt=$a1[VehicleName] $a1[VehicleModel]>";
        else
            $ListingTable .= "<img src=\"no_image.gif\" border=1>";
        $ListingTable .= "</td>\n\t";
        $MyMiles = number_format($a1[mileage], 0, "", ",");
        $MyPrice = number_format($a1[Price], 2, ".", ",");
        $ListingTable .= "<td width=225 valign=top><b>$a1[VehicleName] $a1[VehicleModel] $a1[VehicleYear]<br />$MyMiles miles <br />Colour: $a1[VehicleColor]<br/> Transmission: " .ucfirst($a1[Transmission])."<br /> Fuel: ". ucfirst($a1[FuelType])."<br /><br />Location: $a1[city]</b><br></td>\n\t";
        $ListingTable .= "<td width=100 valign=top align=center>&pound;$MyPrice<br></td>\n\t";
        $ShortDesc = substr($a1[DetailedDesc], 0, 300);
        $ListingTable .= "<td align=left width=300 valign=top><b>$ShortDesc...<a href=info.php?id=$a1[ListingID]>more</a></td>\n";
        $ListingTable .= "</tr>\n";
        $NoofPhotos = count($images);
        $ListingTable .= "<tr>\n\t<td colspan=4>Photos: $NoofPhotos</td>\n</tr>\n";
        $ListingTable .= "</table>\n\n</td>\n</tr>\n\n";
    $ListingTable .= "</table>";
I have attached the browser displays:
What am I doing wrong?

Hi,
The problem still exsists in Oprea for some reason

Similar Messages

  • Problem whit Update Operation, Error UPDATE_ROW_CONFLICT with Oracle DB

    Hello friends!, I have a problem whit UPDATE Operation with a Oracle DataBase, but it is rare because it works in "Java Sun Application Server" and not in Tomcat (5.5.12) , displaying the following error:
    "Error :Number of conflicts while synchronizing: 1 SyncResolver.UPDATE_ROW_CONFLICT row 5 values changed in database"
    part of the file log:
    "SEVERE: Error Description
    java.lang.RuntimeException: Number of conflicts while synchronizing: 1 SyncResolver.UPDATE_ROW_CONFLICT row 5 values changed in database
         at com.sun.data.provider.impl.CachedRowSetDataProvider.commitChanges(CachedRowSetDataProvider.java:878)
         at ido02004.EditPerson.saveButton_action(EditPerson.java:519)
    For any change of columns for table in Data Base.
    The code used in the page (EditPerson.jsp) is:
    public void init() {
    Object pid = getSessionBean1().getCurrentPersonId();
    RowKey personRowKey = ido_personsDataProvider.findFirst("PERSON_ID", pid);
    ido_personsDataProvider.setCursorRow(personRowKey);
    public String saveButton_action() {
    try {
    ido_personsDataProvider.setValue("USER_ID", userDD.getSelected());
    ido_personsDataProvider.setValue("STATUS", statusDD.getSelected());
    ido_personsDataProvider.setValue("NAME", name.getValue());
    ido_personsDataProvider.setValue("FUNCTION", function.getValue());
    ido_personsDataProvider.setValue("ADDRESS", address.getValue());
    ido_personsDataProvider.setValue("EMAIL", email.getValue());
    ido_personsDataProvider.setValue("PHONE", phone.getValue());
    ido_personsDataProvider.setValue("VALUATION", valuation.getValue());
    ido_personsDataProvider.commitChanges();
    catch (Exception ex) {
    log("Error Description", ex);
    error("Error :"+ex.getMessage());
    return null;
    Please, Some idea of why gives the error? Help!
    Thanks in advance!
    Ren�
    P.D. Excuse my English.

    Hi All!
    New Info:
    System.out.println(" date created : "+ido_personsDataProvider.getValue("DATE_CREATED"));
    System.out.println(ido_personsDataProvider.getCachedRowSet().getMetaData().getColumnClassName(13));When these lines are printed in Java Sun Application Server for JSC show this:
    [#|2006-05-05T17:12:50.264-0500|INFO|sun-appserver-pe8.1_02|javax.enterprise.system.stream.out|_ThreadID=15;|
    date created : 2006-04-24 00:00:00.0|#]
    [#|2006-05-05T17:12:50.264-0500|INFO|sun-appserver-pe8.1_02|javax.enterprise.system.stream.out|_ThreadID=15;|
    java.sql.Timestamp|#]
    When these lines are printed in Tomcat show this:
    date created : 2006-04-24
    java.sql.Timestamp
    Why? the values of this date is different in one or another server. Problem of driver JDBC? I use driver: to ojdbc14.jar, in Tomcat for the connection to the BD Oracle. Maybe this originates error UPDATE_ROW_CONFLICT...
    Please, any idea?
    Thanks!

  • Strange shutdown problem

    Hi,
    Last night, I had a strange shutdown problem on my iMac G5 (revB, 20", 2.0 Gig), with 1 Gig RAM, running 10.4.4 with all updates. I had had the computer on most of the day, using it off and on. I shut it down, and left the room. When I came back about an hour later, the fans were running (not rapidly, just at the normal speed they run when the computer is running), but the screen was blank, and the "sleep" light was not on. The computer wouldn't respond to any moving the mouse or to keyboard input. I finally shut it down by holding the power button until the fans shut down. Upon restart, everything was normal, and after using it for a few minutes, I was able to shut it down normally. Has anyone else seen this sort of behavior, and is it normal ? Or am I about to have more problems.
    Thanks in advance,
    Dave Fritzinger
    Honolulu, HI

    Hi Dave,
    By the sound of it your computer has "hung" during the shutdown process, but at a point in the process where the system's temperature control mechanisms were still operating (otherwise the fans would be running flat out). My guess in this case is that it was probably actually a finder crash.
    Various things can prevent proper shutdown. Often USB or FW devices are to blame. USB adsl modems , some scanners and hubs and the occasional printer driver seem to be common causes. Software can be responsible too, though - background virus or drive checkers are probably the most common, but far from the only possible causes ( I seem to remember "SpringCleaning" causing this problem when people moved to Tiger 10.4.2 for example) .
    New software or hardware are therefore the first things to look for.
    If you haven't installed anything completely new then one possibility may be that something you are using is not compatible with the latest OS update, and needs an upgrade to a driver. Its also possible that this is a "one off" glitch caused by a temporary problem , but if it happens again I'd be taking careful note of anything that you were using in the previous session.
    You might also want to use the Console (in Utilities folder) to look at your system and crash logs.
    Cheers
    Rod

  • Strange connection problems -- software or hardware?

    I've been experiencing some strange connectivity problems of late, and am wondering if it's a software or hardware issue. I'm running OS-X 10.4.11, and have noticed web-associated "drop-outs" occurring. When I'm browsing, any of the following will happen:
    1. the pages will periodically stop loading, or will take forever to load a few final images.
    2. the page will load with a different format (completely unformatted, like a throwback to Mosaic!).
    3. the page won't load at all, and will instead give me either a "DNS error" message, or will default to my ISP's "We couldn't resolve your page" message.
    4. Nothing out of the ordinary happens.
    Throughout this process, the connection strength is 100%.
    It seems this happens with both Firefox and Safari. Is this an issue with driver software, or is my Airport Card giving out? My computer is about 3 years old.

    I have been having intermittent connection problems on several computers over many years now. We have 12 eMacs, all purchased within a few months of each other, all with 10.4.11. Some computers have almost perfect internet connection, but some are constantly losing connection. If the user just waits a few minutes, the network just comes back or if they open system preferences and renew the DHCP lease it comes back as well. We have tried replacing cables, reloading the operating system, repairing permissions, reseting safari... We are all connecting through ethernet cables through wall jacks then to a switch that is connected to our router. Our DSL provider claims it can't be wiring or a problem on their end or they would see it and we would all have problems. I am not super computer literate... Any suggestions for what I should check on the 4 or so computers that are having lots of connection problems?
    Thanks for any words of wisdom!!!

  • Very strange power problem...

    Hey guys (and girls ofcourse),
    I'm having a very strange power problem with my late 2007 2.2Ghz santa rosa macbook.
    Can you guys help me determine what the problem could be?
    Here's what happened prior, when the macbook was still working. I got home from work, plugged my adapter into the wall, and it started charging. I left it on the table, and when I came back from the diner table I continued working, but suddenly noticed my macbook wasn't charging anymore. (the orange/green led wasn't lighting up but i was able to work on battery power)
    I thought it was the poweradapter, so I went to the apple store the next day to lend one to test it. That didn't work, so it's not the adapter.
    So then I started thinking it must be the magnetic DC connector. So I ordered that from the guys at ifixit, (since it's out of warranty) but I replaced it and it's not working.
    I don't think it's the logic board, because I was able to continue working until I ran out of battery power. And I also don't think it's the battery connector, because if i'm not mistaking, the macbook can run without battery as well, but mine can't anymore.
    Now I can't get any life out of my mac anymore...
    Might there be something I overlooked?
    Any suggestions are definately welcome!
    Thanks a lot.
    Timo from Belgium.

    Hi Timo,
    I think i have the same problem, my mac is not working without battery in it. and it wont charge it.
    i wrote a post here http://discussions.apple.com/thread.jspa?threadID=2105648&tstart=0
    let me know if you have fixed the problem
    thanks

  • Strange wifi problem on a brand-new MacBook Pro

    Hey there, I'm new here. Desperation has got the better of me, and I hope I can get some advice.
    So, last sunday I bought a brand new 13" MacBookPro with 2.8g i7 processor and 10.7.2 OS (I can't update to 10.7.4 because System Update tells me the download has been tampered with or corrupted after I waited 2 hours for it to finish, but I'm trying a direct download from the website). Here's the exact product: http://www.amazon.com/Apple-MacBook-MD314LL-13-3-Inch-VERSION/dp/B005CWIZ4O/ref= sr_1_5?ie=UTF8&qid=1340301247&sr=8-5&keywords=macbook+pro+13
    Everything is all perfect except for a strange wifi problem. Note that the wifi does not turn-on or off, it doesn't disconnect after 'sleep', it doesn't get less speed, it doesn't constantly leave a preferred connection (once I chose my home wifi it always connects to it no problem). The wifi bar is always full. What is wrong is that the internet is kinda 'glitchy'. The best metaphor I can think of is that it's like a car that has to be pushed down the road before the engine can start. Please, bear with me because this is kinda hard to explain and I'm not good at tech lingos.
    One of the symptoms is browsing can get really slow and inconsistent, almost as if the wifi gets turned off in the middle of browsing. For example: if I look something up on Google and then open 5 new tabs, probably only 2 or 3 of those tabs will eventually load while the other two will not get past the long 'http:.......google.....etc etc' address and will eventually show one of those 'error loading page because there's no Internet connection' notice. This happens a lot. Sometimes I have to refresh/retry loading a page a couple of times before it finally loads, then usually everything will get back to normal and I will be able to open multiple tabs with no problem, but in a couple of minutes I would try to open another site and the problem will start again.
    So I tried to see how it does with downloading using iGetter. Fortunately I also have a Macbook (white-plastic casing one) and my brother has an old 2006 MacbookPro so I can compare. With those two older Apples iGetter starts receiving data in less than 8 seconds after I click Start, while my brand-new Macbook Pro can take up to 15-20 seconds, sometimes it doesn't even start at all and I have to re-click the start button. But once the download actually starts (on my new MacBook Pro), it downloads like normal, it doesn't stop and the speed is also as good as I can get. Strange huh? Hence, like a car that has to be pushed before the engine starts.
    I also tried 'speed testing' from a website with all 3 laptops. On my old MacBook and my brother's MacBook pro, once I click 'begin test' it takes only a couple of seconds of 'ping' before the download/upload speed measurements start, but with my new MacBook Pro (just like with iGetter) it takes up to almost a minute before the measurements start, sometimes it won't start at all and I have to re-start the test.
    Well, thanks for reading. And hope you can help me shed some light into this. Because it is really preventing me from really enjoying my new MacBook Pro. And if this is most likely a hardware problem, I'd better get back to the store and try to get it replace or something while it's only been 5 days. *cheers*

    Hey guys.. Thanks for the replies. Unfortunately, I bought the MacBook in Indonesia where there are no such thing as an AppleCare. The only option is to leave the Apple product to one of the 'Authorized Apple care centre' and have whoever do whatever to it without guarantee of success. As for returning it and getting a brand new one, I also don't know if there is such a deal here, but that's actually a good idea, will try to go to the store tomorrow. Although, I'm worried that the problem might be with OSX Lion or something and getting a new one won't help.
    mark75090, I've tried resetting the router when I first noticed te problem, didn't work though. I've checked my new MacBook's wi-fi (option+click wifi bar) and it says 'PHY Mode: 802.11g', so does my MacBook and the old MacBook Pro. I don't know what those mean though, and I don't know whether or not my router is an N., can you tell me more please.. I have tried with the other two turned off, and only the new MacBook using the wi-fi but the problem persists. I have also tried connecting directly to the router, but as I described, the problem is too subtle for me to notice the difference.
    Also, if I create a brand new Wi-Fi connection in network preferences and connect to my router through the new Wi-Fi profile, the problem seems to be gone for an hour or so, then it always comes back though. I have also just finally installed 10.7.4, but it doesn't help either.

  • Invalid value in OPTION field of value table for IN itab operator. operato

    Hi,
    I am working on SELECT-OPTIONS to accept single and multiple values for company code. I am using CREATE_RANGE_TABLE and ADD_SELECTION_FIELD and all is good but I was prompted with error "Invalid value in OPTION field of value table for IN itab operator. operator"  when I enter 2 single value.
    SIGN OPTION LOW  HIGH
        |      |CN01|    |
        |      |SG02|    |
    However, below combinations working good for me and I don't get the above error.
    SIGN OPTION LOW  HIGH
    I   |BT   |CN01|CN02|
         |     |SG02|    |
    SIGN OPTION LOW  HIGH
         |     |SG02|    |
    I am using below coding.
      DATA:
        ls_cmp_restrictions TYPE if_wd_select_options=>t_complex_restrictions,
        ls_rsoptions        TYPE rsoptions.
      CLEAR ls_rsoptions.
      ls_rsoptions-bt = abap_true.
      ls_rsoptions-cp = abap_false.
      ls_rsoptions-eq = abap_true.   " for enable only single value*
      ls_rsoptions-ge = abap_false.
      ls_rsoptions-gt = abap_false.
      ls_rsoptions-le = abap_false.
      ls_rsoptions-lt = abap_false.
      ls_rsoptions-nb = abap_false.
      ls_rsoptions-ne = abap_false.
      ls_rsoptions-np = abap_false.
      ls_cmp_restrictions-m_exclude = ls_rsoptions.
      CLEAR ls_rsoptions .
      ls_rsoptions-bt = abap_true.
      ls_rsoptions-cp = abap_false.
      ls_rsoptions-eq = abap_true.   " for enable only single value*
      ls_rsoptions-ge = abap_false.
      ls_rsoptions-gt = abap_false.
      ls_rsoptions-le = abap_false.
      ls_rsoptions-lt = abap_false.
      ls_rsoptions-nb = abap_false.
      ls_rsoptions-ne = abap_false.
      ls_rsoptions-np = abap_false.
      ls_cmp_restrictions-m_include = ls_rsoptions.
    * Create a reference to range table
      lr_field = wd_this->m_helper->create_range_table( `BUKRS` ).
    * Add the select-option to the group
      wd_this->m_helper->add_selection_field(
        i_id                         = `BUKRS`
        i_value_help_structure       = 'P0001'
        i_value_help_structure_field = 'BUKRS'
        it_result                    = lr_field
        i_no_intervals               = abap_true
        i_no_extension               = abap_false
        i_complex_restrictions       = ls_cmp_restrictions
        i_use_complex_restriction    = abap_true ).
      FREE lr_field.
    Edited by: Girish Nabar on Jul 22, 2011 12:35 PM

    Hi Girish,
    People are answering not for points, just to share the knowledge.
    And I think the way of structure is wrong.  i think we cannot pass two single values in your way. am not sure about .
    low means it will accept single value. for one record in sign structure.
    wait for other replys.
    Regards
    Srinivas

  • Very Strange Internet Problems

    I own a MacBook Pro 15.4 Inch that I purchased about a year and a half ago. I recently upgraded to Leopard and have all the latest updates. I am from the US, and when I am home my internet works fine. However, I am on travel to Seoul, South Korea right now and am having a very strange internet problem.
    As far as I can tell, the URLs that I type in to my browser are, sparodially, not translated correctly into the webpages that they are supposed to represent. This problem is probably effective 75% of the time, and the rest of the time my internet works roughly correctly. For instance, when I enter http://www.google.com, instead of being taken to the Google homepage, I am taking to the homepage of Jammin Beats DJ Service, an obscure website about a company in northern Pennsylvania. The actual URL of this website is http://www.jamminbeats.com, but when my internet is malfunctioning, 'jamminbeats' is for all intensive purposes replaced by 'google' (that is, it applies not only to the main page, but to sub pages, so "http://www.google.com/weddings" takes you to "http://www.jamminbeats.com/weddings" and etc). For most other webpages, one of two things happens. Either I am taken to the correct page but it is displayed without any images or frames (just the html text and links), or I am taken to a blank page with the header "Under Construction", which I assume is the default for a page that doesn't exist. This is why it seems as though the URLs are simply being interpretted erroneously.
    This problem occurs when connecting both to the wireless and the wired internet at my hotel, and it occurs on both Safari and Firefox, so it is not a connection-specific or browser-specific problem. It may be a problem with the hotel's internet, and as of yet I have not had a chance to test the computer at another location. However, a colleague using an IBM computer has had no problems, and I am currently on a Samsung machine in the business center of the hotel and it is working correctly as well. I have searched extensively online for a similar problem but have come up empty handed, and more than anything, I am confused about what might be causing this problem. The strangest thing is that a fraction of the time, the internet functions normally, but it is usually roughly 15 minutes out of every hour, and eventually I am inevitably taken back to Jammin Beats.
    I am a computer science graduate but I still have no idea what would cause this problem. At first I thought it might be a hacker, but if it is, he or she has been at it consistently for 3 days now, and only seems to be targeting my computer. Any ideas or solutions would be greatly appreciated, as I have been forced to resort to the hotel's business center for checking email, doing work, etc. Thanks in advance.

    I did consider that, as I was in Beijing last week and there are a number of censored sites. However, in Korea I have had problems with very basic sites like facebook, wall street journal, google, yahoo, Korean google, my hotel's webpage, etc. Further, I have successfully gotten all of these sites to load seemingly at random, and can access them without problems on other computers. The only disconnect seems to be between my MBP and the internet, not between Korean internet and the web. I have toyed around with the network settings, and although sometimes after switching from "Automatic" to a fixed connection I get some sites to work, it usually only lasts a short time and eventually the same sites stop working. I reset my cache regularly to make sure I'm not getting sent to cached sites, but this also doesn't help. Further, my Apple Mail, Skype and AIM accounts jump between being connected and disconnected randomly as well. Again, this is isolated to my own computer, which is why I'm so confused.

  • Strange email problem; it started only loading unread emails, but from 3 months ago. It is now loading new emails too, but no emails in the past month, read or unread. It's gmail, set up through the phone, I've restarted restored

    Strange email problem; it started only loading unread emails, but from 3 months ago. It is now loading new emails too, but no emails in the past month, read or unread. It's gmail, set up through the phone, I've restarted restored and updated firmware, deleted the account, anything I could think of, but it's just not accurately downloading the most recent emails.

    The answer is very simple: You were not the original owner of the phone. Target sold you a phone that had been returned. You can verify the date of the original sale here: Apple - Support - Check Your Service and Support Coverage. I suspect you will find that the warranty expiration date is not one year from the date that you bought it.

  • Autonomous Trigger / Mutating Table Problem

    We have a specific problem in one of our applications being developed where by the database needs to enforce a specific business requirement.
    We need to use a database trigger to enforce some data integrity which involves more than one table as such cannot use standard constraint. The integrity has to be maintained in the database as the DML statements may be coming from a Java application or PL/SQL code as such we need the logic all in one place.
    The problem being that within the trigger we need to examine the state of the table the trigger is associated with as well as one other table. Obviously using a trigger on a table that is being affected by DML statements causes the dreaded mutating table problem.
    One suggested solution to this was to make the trigger or the code the trigger called autonomous. This allows the trigger to execute by only showing the trigger the original state of the table before any of the DML statements have affected it.
    The problem is this seems to work for single row DML statements but not for multi row DML statements. In multi row the trigger only sees the original state of the table, not the state of the table plus the changes made by any other actions in the same DML statement.
    Below I have shown an example of what I'm seeing.
    I have grossly simplified the example code below to only refer to a single table and use stupidly simple logic
    I do realise i appear to be implementing uniqueness in my own PL/SQL code, this is purely for the example.
    CREATE TABLE mutate_test
    id INTEGER NOT NULL,
    value VARCHAR2(255) NOT NULL
    ALTER TABLE mutate_test ADD CONSTRAINT pk_mutate_test PRIMARY KEY(id);
    ALTER TABLE mutate_test ADD CONSTRAINT ck_mutate_test CHECK (value = UPPER(value));
    CREATE OR REPLACE FUNCTION duplicate_found(in_value IN mutate_test.value%TYPE) RETURN BOOLEAN IS
    PRAGMA AUTONOMOUS_TRANSACTION;
    v_value_found INTEGER;
    BEGIN
    SELECT COUNT(*)
    INTO v_value_found
    FROM mutate_test
    WHERE value = in_value;
    IF v_value_found > 0 THEN
    RETURN TRUE;
    ELSE
    RETURN FALSE;
    END IF;
    END;
    CREATE OR REPLACE TRIGGER tr_mutate_test BEFORE INSERT OR UPDATE ON mutate_test
    FOR EACH ROW
    BEGIN
    IF duplicate_found(:new.value) = TRUE THEN
    RAISE_APPLICATION_ERROR(-20000,'Duplicate value found');
    END IF;
    END;
    INSERT INTO mutate_test (id,value) VALUES (1,'CLIFF');
    INSERT INTO mutate_test (id,value) VALUES (2,'SULA');
    COMMIT;
    SELECT * FROM mutate_test;
    -- Should fail as row 1 already has a value of CLIFF
    INSERT INTO mutate_test (id,value) VALUES (3,'CLIFF');
    COMMIT;
    SELECT * FROM mutate_test;
    -- Should fail as row 1 is already set to CLIFF
    UPDATE mutate_test SET value = 'CLIFF' WHERE id = 2;
    COMMIT;
    SELECT * FROM mutate_test;
    UPDATE mutate_test SET value = 'CLIFFORD' WHERE id = 1;
    COMMIT;
    SELECT * FROM mutate_test;
    INSERT INTO mutate_test (id,value) VALUES (3,'RONNY');
    INSERT INTO mutate_test (id,value) VALUES (4,'TIM');
    INSERT INTO mutate_test (id,value) VALUES (5,'MONIQUE');
    COMMIT;
    SELECT * FROM mutate_test;
    -- Wanted result would be row 1 would be updated from CLIFFORD to CLIFF
    -- and the others raise errors, or all of them raise errors.
    UPDATE mutate_test SET value = 'CLIFF' WHERE id IN (1,3,4);
    COMMIT;
    SELECT * FROM mutate_test;

    This is all from a University application that deals with eLearning.
    Shell = Mapping from the system to an external eLearning application, ie: unique id of the Blackboard course shell, or WebBoard board.
    Term = Academic term
    Sector = University sector, ie: Higher Education, TAFE, etc..
    Resource = eLearning tool, ie: Blackboard, WebBoard, etc..
    Resource Level = Whether the resource is being offered at a Course or Program level
    Resource Mapping = Association of a resource to shell
    What we are trying to achieve is that shells cannot be used across sector boundaries.
    The real table structure is (grossly simplified again)
    CREATE TABLE sector (sector_pk INTEGER PRIMARY KEY);
    CREATE TABLE sector_pattern (sector_pk INTEGER REFERENCES sector(sector_pk), pattern CHAR(2) NOT NULL UNIQUE CHECK (pattern = UPPER(pattern)));
    CREATE TABLE term (term_pk INTEGER PRIMARY KEY, term CHAR(4) NOT NULL UNIQUE CHECK (term = UPPER(term)));
    CREATE TABLE resource_level (resource_level_pk INTEGER PRIMARY KEY, term_pk INTEGER REFERENCES term(term_pk));
    CREATE TABLE shell_detail (shell_detail_pk INTEGER PRIMARY KEY);
    CREATE TABLE resource_mapping (resource_mapping INTEGER PRIMARY KEY, resource_level_pk INTEGER REFERENCES resource_level(resource_level_pk), shell_detail_pk INTEGER REFERENCES shell_detail(shell_detail_pk));
    Based on the Ask Tom article linked I'd liked to use a MATERIALIZED VIEW on the following query
    SELECT DISTINCT rm.shell_detail_pk,sp.sector_pk
    FROM resource_mapping rm, resource_level rl, term t, sector_pattern sp
    WHERE rm.resource_level_pk = rl.resource_level_pk
    AND rl.term_pk = t.term_pk
    AND SUBSTR(t.term,3,2) = sp.pattern;
    Then apply a UNIQUE constraint on that VIEW.
    But I'm receiving a
    SQL Error: ORA-12054: cannot set the ON COMMIT refresh attribute for the materialized view
    I'm not sure how to create the MATERIALIZED VIEW LOG entries for the above VIEW.
    Any ideas anyone? ;)
    Need to do some more reading and research but as Tom says
    "I'm asking around about the future of "SQL" as far as enhancments go like that
    (will update when I get some feedback), but -- you are not limited to triggers
    (in fact, I would avoid triggers as it is virtually IMPOSSIBLE to implement
    cross row/cross object constraints with them!!!! at least correctly)"
    So I think i'll give up on the TRIGGER approach as it doesn't meet our requirements.

  • Problem in 'INS' operation in fm 'HR_INFOTYPE_OPERATION'

    Hi All,
    I am reading a text file and based on Rate type we have to do insertion or copy.
    If rate type is 'A' then we have to do copy operation with the help of fm 'HR_INFOTYPE_OPERATION'.
    If its 'C' then we have to do operation 'INS'.
    But while calling that fm with 'INS' operation its not inserting and giving an error-
    'Infotype 0171 could not be read for person 00060120 on 09/15/2010'.
    I tried giving other begda also but its not taking.
    I thought of creating new entry in infotype '0171' with this pernr but not able to create.
    Can anyone tell me what is the problem in 'INS' operation in this fm  'HR_INFOTYPE_OPERATION'.
    Thanks,
    Nidhi Srivastava

    Hi Nidhi,
    Did u check the PA30 transaction to insert the 0171 record manually for this employee.
    You can trace back to the error by setting the import parameter DIALOG_MODE of FM to '1', as this will open up the BDC session for PA30 in online mode.
    Thanks,
    RKP

  • Strange tables in my Oracle 10g

    Hi guys,
    I found these stranges tables named BIN$+UX5Rnp5RbyomAwY5MV2fw==$0 , BIN$+m9qEOmZTlCp4GyCB0F0nw==$0 ... they are really a lot when i query "select tname from tab".. However Toad does not list them. Is there a way to remove them? Or can any one englighten me how these files are created? Thanks.
    Jason

    Whenever you drop a table using traditional syntax:
    DROP TABLE <table_name>; Oracle no longer drops it. It only changes the name of it and marks its space as potentially reusable space. It's the recycle bin, in case you change your mind you still have a second chance to restore it using the "flashback table to before drop" command.
    If you want to absolutely purge it on the first try, then use:
    DROP TABLE <table_name> purge; -- no way back this time.

  • Mutating table problem help required

    Hi. I am rather hoping someone will be able to help me with this problem.
    I have two tables, sa and mv. Create script below:
    create table mv (
    moduleId Char(2) CONSTRAINT ck_moduleId CHECK(moduleId in ('M1', 'M2', 'M3', 'M4', 'M5', 'M6', 'M7', 'M8')),
    credits Number(2) CONSTRAINT ck_credits CHECK(credits in (10, 20, 40)),
    constraint pk_mv primary key(moduleId)
    create table sa (
    stuId Char(2) CONSTRAINT ck_stuId CHECK(stuId in ('S1', 'S2', 'S3', 'S4', 'S5')),
    moduleId Char(2),
    constraint pk_sa primary key(stuId, moduleId),
    constraint fk_moduleid foreign key(moduleId) references mv(moduleId)
    And the scripts below is to insert data into both:
    insert into mv VALUES('M1', 20)
    insert into mv VALUES('M2', 20)
    insert into mv VALUES('M3', 20)
    insert into mv VALUES('M4', 20)
    insert into mv VALUES('M5', 40)
    insert into mv VALUES('M6', 10)
    insert into mv VALUES('M7', 10)
    insert into mv VALUES('M8', 20)
    insert into sa VALUES('S1', 'M1')
    insert into sa VALUES('S1', 'M2')
    insert into sa VALUES('S1', 'M3')
    insert into sa VALUES('S2', 'M2')
    insert into sa VALUES('S2', 'M4')
    insert into sa VALUES('S2', 'M5')
    insert into sa VALUES('S3', 'M1')
    insert into sa VALUES('S3', 'M6')
    Now for the actual problems.
    Firstly I need to try and overcome the mutating table problem by ensure that stuid = S1 in table sa can not take both moduleId M5 and M6.
    Just one or the other. I have created a single trigger, but if fails because of the mutating table problem.
    The second problem I need to overcome is that none of the stuids can have moduleIds where total credit value of more than 120 credits. Credit value is stored in the mv table.
    Many thanks in advance for any assistance.

    Use a statement level trigger:
    Firstly I need to try and overcome the mutating table problem by ensure that stuid = S1 in table sa can not take both moduleId M5 and M6.
    SQL> create or replace trigger sa_trg
      2  after insert or update on sa
      3  declare
      4  c number;
      5  begin
      6    select count(distinct moduleId) into c
      7    from sa
      8    where stuid = 'S1'
      9    and moduleId in ('M5','M6');
    10    if c > 1 then
    11       raise_application_error(-20001,'S1 on both M5 and M6!!');
    12    end if;
    13  end;
    14  /
    Trigger created.
    SQL> select * from sa;
    ST MO
    S1 M1
    S1 M2
    S1 M3
    S2 M2
    S2 M4
    S2 M5
    S3 M1
    S3 M6
    8 rows selected.
    SQL> insert into sa values ('S1','M5');
    1 row created.
    SQL> insert into sa values ('S1','M6');
    insert into sa values ('S1','M6')
    ERROR at line 1:
    ORA-20001: S1 on both M5 and M6!!
    ORA-06512: at "SCOTT.SA_TRG", line 9
    ORA-04088: error during execution of trigger 'SCOTT.SA_TRG'
    The second problem I need to overcome is that none of the stuids can have moduleIds where total credit value of more than 120 credits. Credit value is stored in the mv table
    SQL> create or replace trigger sa_trg
      2  after insert or update on sa
      3  declare
      4  c number;
      5  begin
      6    select count(distinct moduleId) into c
      7    from sa
      8    where stuid = 'S1'
      9    and moduleId in ('M5','M6');
    10    if c > 1 then
    11       raise_application_error(-20001,'S1 on both M5 and M6!!');
    12    end if;
    13 
    14    select count(*) into c from (
    15    select stuid
    16    from mv, sa
    17    where sa.moduleid=mv.moduleid
    18    group by stuid
    19    having sum(credits)>120);
    20 
    21    if c > 0 then
    22       raise_application_error(-20002,'A student cannot have more than 120 credits!!');
    23    end if;
    24 
    25  end;
    26  /
    Trigger created.
    SQL>   select stuid, sum(credits)
      2  from mv, sa
      3  where sa.moduleid=mv.moduleid
      4  group by stuid;
    ST SUM(CREDITS)
    S3           30
    S2           80
    S1          100
    SQL> insert into sa
      2  values ('S1','M4');
    1 row created.
    SQL>   select stuid, sum(credits)
      2  from mv, sa
      3  where sa.moduleid=mv.moduleid
      4  group by stuid;
    ST SUM(CREDITS)
    S3           30
    S2           80
    S1          120
    SQL> insert into sa
      2  values ('S1','M7');
    insert into sa
    ERROR at line 1:
    ORA-20002: A student cannot have more than 120 credits!!
    ORA-06512: at "SCOTT.SA_TRG", line 20
    ORA-04088: error during execution of trigger 'SCOTT.SA_TRG'Max
    http://oracleitalia.wordpress.com

  • How to regenerate COSS table for work order operation planning hours

    Hello,
    I am looking for a SAP report or a custom solution to update the table COSS table from work order operation hours. Several work orders incorrectly updated in the table COSS with result the cost is incorrect.
    For example: In the work order opertions, I have  planned 2.5 hrs and in the table COSS it is 1.5.
    Much appreciate for your help
    Bill

    It is quite simple actually.
    As soon as your array exceeds SDU (defaults to 2048), sqlnet will fragment the packet. (see: sqlnet more data to client messages in your trace file)
    As soon as the packet is bigger than your NICs MTU, the NIC will fragment the packet.
    So, depending on the number of bytes for 1 record, high array size make sense or don't make sense.
    And ideally SDU should be a multiple of MTU.
    So do high arraysizes make sense? Usually not.
    Hth
    Sybrand Bakker
    Senior Oracle DBA

  • Strange major problem with 975X PowerUp Intel MOBO

    I’m suddenly having a strange major problem with a MSI 975X Platinum PowerUP Edition V2.1 MS-7246 Intel socket 775 motherboard. Previously, it had given me no problems at all.
    It went like this:
    Powered on system in the morning, booting from a cold start.
    Hit DEL key to get into the BIOS.
    Missed the window and the system booted into Windows normally.
    Re-started the system from within Windows.
    Hit DEL key to get into the BIOS and was successful the second time.
    Hit the ENTER key on the first item “Standard CMOS Features”.
    The DATE, TIME and other information was displayed on the next screen, but at this point, the BIOS screen became completely unresponsive to any keyboard input.
    The only thing I could do at that point was to power off.
    Subsequent power on boot-ups resulted in the system always freezing at the BIOS splash screen after the video card sign-on.
    I have switched power supplies, hard drives, keyboards and video cards. I have disconnected everything except the video card, keyboard and one RAM module. I have switched the four RAM modules around and then reduced the RAM to one 256MB module in the proper slot. I even changed the battery on the MOBO, in case it had shorted out and removed and re-seated the BIOS chip. It still halts at the BIOS splash screen.
    The BIOS chip can’t be completely dead, because I powered off and pushed the BIOS reset button on the MOBO to reset the BIOS to the factory defaults. When I re-booted, I could tell that it had actually reset to the factory defaults because I had previously set the BIOS to reboot the system on resumption of power and the factory default was to remain off until the power button was pushed, which was now the default.
    I’m stumped! All I can think of is to get a new pre-programmed BIOS chip and see if that makes any difference, but I’m not sure this system is even worth the expense with no guarantee of success. Any suggestions on how I might get past the BIOS splash screen or do I for sure have a corrupt BIOS chip?

    System specs as per the posting guidelines -
    Board: MSI 975X Platinum PowerUP Edition V2.1 MS-7246 Intel socket 775
    Bios: Version (can’t recall & can’t check since it won’t go past the BIOS splash screen)
    VGA: ASUS EN7600GS nVidia GeForce 7600GS PCI-e 256MB DDR2 (also tried new XFX nVidia
             Geforce 210 PCI-e 2.0 512MB DDR3)
    PSU: Chiefmax 680W ATX (also tried new OCZ 700W ATX)
    CPU: Intel 2.8GHz LGA-775 Core2 Duo Dual-Core Processor
    MEM: 4 x Samsung 512MB 1Rx8 PC2-5300U (2GB total)
    HDD: Seagate Barracuda 250GB SATA2 (also tried Seagate Barracuda 500GB SATA2)
    COOLER: Intel OEM LGA 775 fan/heatsink C25897-001
    OC: No
    OS: Vista Home Premium 32-bit
    I have been through the BIOS reset procedure several times and pretty much as outlined. As I said before, I could tell that it had taken a reset to the factory defaults, because the power on option had changed.

Maybe you are looking for