ORA-01427 with WHERE clause and CASE statement

Hi guys,.
I get the error ORA-01427 when you try to select * from my dimension table
When the parameter: P_HZA is 4. I used the keyword IN but the error still appears.
no idea why?

Select * from testtab
where mycar = 4
and "coretable". "" HZA ' IN
CASE
When: P_HZA = "4" then (button SELECTION OF DIM_HZA)
other: P_HZA
END

Thank you

you missed table_name and also this can cause several error so lines (ORA-01427: einreihig subquery returns more than one line)

SELECT *
  FROM tableA
 WHERE mycar = 4
       AND "coretable"."HZA" IN
              CASE
                 WHEN :P_HZA = '4' THEN (SELECT key FROM DIM_HZA)   ---- may be you need to have max  to get only one value
                 ELSE :P_HZA
              END

See you soon,.
Manik.

Tags: Database

Similar Questions

  • Can I use truncated and where clause in the statement even?

    Hello guys,.

    Can I use truncated with where clause in the same statement.


    For ex:

    TRUNCATE TABLE my_table WHERE id < 500;

    If not, that you recommend me to overtemperature to the level of high water line?


    By the way
    select * from v$version;
    Oracle Database 11 g Enterprise Edition Release 11.2.0.1.0 - 64 bit Production
    PL/SQL Release 11.2.0.1.0 - Production
    "CORE 11.2.0.1.0 Production."
    AMT for 64-bit Windows: Version 11.2.0.1.0 - Production
    NLSRTL Version 11.2.0.1.0 - Production
    >

    Thank you very much.

    Published by: 970992 on 11:14 13.Ara.2012

    >
    Okay I need an increasing amount of space. However, at the same time I want to recover the spaces empty below HWM. So, I need to use less amount of space I am inserting. Therefore, shouldn't use retractable for this?
    >
    Why waste the effort. Oracle will reuse the space below the HWM when doing inserts. You already said that you insert more lines you delete so all these will be more accustomed to the top.

    The only time where that oracle may not use space is when the space is too small to be useful. It is documented in the doc, I told you
    >
    Understanding recoverable unused space
    Over time, Update, and Delete on objects within a tablespace can create pockets of empty space that individually are not large enough to be reused for the new data.
    >
    Most uses of CONTRACTION I've seen are totally useless. If you follow the doc and run the Advisor of segment it will tell you if there is space that can be retrieved and how much. But, even once, for your use even if case will get you will Oracle while you need to reassign the new extensions, then the HWM will just go still higher.

    If pay you a heavy price in Oracle did a full table scan, update of many blocks from the table, update THE index, impact performance for other users to access the table during the SHRINK and reallocate extensions (maybe even some of the same areas) when you insert more data.

    Do not SHRINK unless you know it's necessary.

  • What does that mean?  ORA-32039: WITH recursive clause must have list of column aliases

    What does that mean?  If I have alias each column in the clause, I get the same error.  I noticed that if I replace this point of view abw_v_exist_mbr_alt_hierarchy , with a statement select hard-coded query works.

    ORA-32039: WITH recursive clause must have list of column aliases

    [code]

    with bridge as)

    SELECT

    AVS.pontis_bridge_id,

    AVS.super_struct_name structure_name,

    ALV.name vehicle_name,

    AVS.inv_rf inv_rating_factor,

    AVS.opr_rf opr_rating_factor,

    AVS.post_rf legal_rating_factor,

    AVS.safe_rf permit_rating_factor,

    sys_type_display. Display inv_rating_method,

    AVS.up_to_date_ind,

    AE.event_descr,

    AE.event_timestamp,

    AP.username,

    AVS.event_id,

    SYS_TYPE_IMPACT. Display sys_type_impact,

    SYS_TYPE_LANE. Display sys_type_lane

    Of

    (SELECT

    AVEMAH.pontis_bridge_id,

    AVEMAH.super_struct_name,

    ARRS.vehicle_id,

    min (ARRS.inv_rf) inv_rf,

    min (ARRS.opr_rf) opr_rf,

    min (ARRS.post_rf) post_rf,

    min (ARRS.safe_rf) safe_rf,

    ARRS.design_method_type,

    ASMAE.event_id,

    ASMAE.up_to_date_ind,

    ARRS.impact_loading_type,

    ARRS.lane_loading_type

    Abw_v_exist_mbr_alt_hierarchy AVEMAH, abw_spng_mbr_alt_events ASMAE, abw_rating_results_summary ARRS

    WHERE

    AVEMAH.bridge_id = ASMAE.bridge_id

    and ASMAE.bridge_id = ARRS.bridge_id

    and AVEMAH.struct_def_id = ASMAE.struct_def_id

    and ASMAE.struct_def_id = ARRS.struct_def_id

    and AVEMAH.super_struct_mbr_id = ASMAE.super_struct_mbr_id

    and ASMAE.super_struct_mbr_id = ARRS.super_struct_mbr_id

    and AVEMAH.super_struct_spng_mbr_alt_id = ASMAE.super_struct_spng_mbr_alt_id

    and ASMAE.super_struct_spng_mbr_alt_id = ARRS.super_struct_spng_mbr_alt_id

    and ASMAE.event_id = ARRS.event_id

    and ASMAE.results_use_type = 37601

    GROUP OF AVEMAH.pontis_bridge_id, AVEMAH.super_struct_name, ARRS.vehicle_id, ARRS.design_method_type, ASMAE.event_id, ASMAE.up_to_date_ind, ARRS.impact_loading_type, ARRS.lane_loading_type

    ) AVS.

    abw_lib_vehicle BIANCO,

    abw_event AE,

    abw_person AP,

    abw_sys_type sys_type_display,

    abw_sys_type sys_type_impact,

    abw_sys_type sys_type_lane

    WHERE AVS.event_id = AE.event_id

    AND AE.entered_by = AP.person_id

    AND AVS.vehicle_id = ALV.vehicle_id

    AND AVS.impact_loading_type = SYS_TYPE_IMPACT.sys_type

    AND AVS.lane_loading_type = SYS_TYPE_LANE.sys_type

    AND AVS.design_method_type = sys_type_display.sys_type)

    Select

    t.pontis_bridge_id BRIDGE_NAME,

    t.event_timestamp LOAD_RATING_DATE,

    MAX (CASE WHEN t.vehicle_name = 'HL-93 (US)' THEN round (t.inv_rating_factor, 2) ELSE NULL END) LOAD_RATING_HL93_INV_FACTOR,.

    MAX (CASE WHEN t.vehicle_name = 'HL-93 (US)' THEN round (t.opr_rating_factor, 2) ELSE NULL END) LOAD_RATING_HL93_OP_FACTOR,.

    Max(case when t.vehicle_name = 'H 20-44' Then trunc (t.inv_rating_factor * 36) of OTHER END NULL) H_INV_RATING_TONS,.

    Max(case when t.vehicle_name = 'H 20-44' Then trunc (t.opr_rating_factor * 36) of OTHER END NULL) H_OP_RATING_TONS,.

    Max(case when t.vehicle_name = 'HS 20-44' Then trunc (t.inv_rating_factor * 36) of OTHER END NULL) HS_INV_RATING_TONS,.

    Max(case when t.vehicle_name = 'HS 20-44' Then trunc (t.opr_rating_factor * 36) of OTHER END NULL) HS_OP_RATING_TONS,.

    Max(case when t.inv_rating_method='LRFR' Then trunc (t.inv_rating_factor * 36) of OTHER END NULL) LRFR_INV_RATING,.

    Max(case when t.opr_rating_method='LRFR' Then trunc (t.opr_rating_factor * 36) of OTHER END NULL) LRFR_OP_RATING,.

    Max(case when t.vehicle_name = 'SU4' Then Round (t.legal_rating_factor, 2) of OTHER END NULL) LOAD_RATING_SU4_LEGAL_FACTOR,.

    Max(case when t.vehicle_name = 'Type 3S2' Then Round (t.legal_rating_factor, 2) of OTHER END NULL) LOAD_RATING_3S2_LEGAL_FACTOR,.

    Max(case when t.vehicle_name = 'Type 7 divisible Load Vehicle' Then Round (t.permit_rating_factor, 2) of OTHER END NULL) LOAD_RATING_TYP7_PERM_FACTOR,.

    Max(case when t.vehicle_name = 'Type 6A divisible Load Vehicle' Then Round (t.permit_rating_factor, 2) of OTHER END NULL) LOAD_RATING_TYP6A_PERM_FACTOR,.

    MAX (CASE WHEN t.vehicle_name = 'HL-93 (US)' THEN round (t.permit_rating_factor, 2) ELSE NULL END) LOAD_RATING_HL93_PERM_FACTOR,.

    (CASE WHEN t.inv_rating_method = 1 THEN 'LFD'

    WHEN t.inv_rating_method = 'ASD' THEN 2

    WHEN t.inv_rating_method = 'LRFD' THEN 3

    WHEN t.inv_rating_method = 'LRFR' THEN 8 ELSE NULL END) LOADRATE_METHOD_ID,.

    t.UserName LOAD_RATING_SUBMITTED_BY

    Bridge t,.

    (select q.pontis_bridge_id, max (q.event_timestamp) max_et

    Bridge q

    where q.impact_loading = 'as requested.

    and q.lane_loading = 'as requested.

    Q.pontis_bridge_id group) max_event_timestamp

    where t.impact_loading = 'as requested.

    and t.lane_loading = 'as requested.

    and t.pontis_bridge_id = max_event_timestamp.pontis_bridge_id

    and t.event_timestamp = max_event_timestamp.max_et

    and t.username = 'PCAMPISI. '

    GROUP BY

    t.pontis_bridge_id,

    t.event_timestamp,

    t.UserName,

    t.inv_rating_method;

    [/ code]

    You must use the database version 11.2, right?

    ORA-32039: WITH recursive clause must have list of column aliases

    Cause: A query clause called WITH itself (recursive) but do not have a list of aliases for column specified to him.

    Action: Add a list of column alias for the WITH clause query name.

    See:

    SELECT

    Example (you add the list of columns in the "BOLD" part / underlined below):

    WITH

    reports_to_101 (emp_last, mgr_id, eid, reportLevel) AS

    (

    SELECT employe_id, last_name, manager_id reportLevel 0

    Employees

    WHERE employee_id = 101

    UNION ALL

    SELECT e.employee_id, select, e.manager_id, reportLevel + 1

    Reports_to_101 r, e employees

    WHERE r.eid = e.manager_id

    )

    SELECT mgr_id, reportLevel, emp_last and eid

    OF reports_to_101

    ORDER BY reportLevel, eid;

  • Export (expdp) with where clause

    Hello gurus,

    I'm trying to export with where clause. I am getting error below.


    Here is my order of export.
    expdp "'/ as sysdba'" tables = USER1.TABLE1 directory=DATA_PUMP dumpfile=TABLE1.dmp logfile=TABLE1.log query= “USER1.TABLE1:where auditdate>'01-JAN-10'”
    Here is the error
    [keeth]DB1 /oracle/data_15/db1> DATA_PUMP dumpfile=TABLE1.dmp logfile=TABLE1.log query= USER1.TABLE1:where auditdate>'01-JAN-10'                    <
    
    Export: Release 11.2.0.3.0 - Production on Tue Mar 26 03:03:26 2013
    
    Copyright (c) 1982, 2011, Oracle and/or its affiliates.  All rights reserved.
    
    Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    Starting "SYS"."SYS_EXPORT_TABLE_03":  "/******** AS SYSDBA" tables=USER1.TABLE1 directory=DATA_PUMP dumpfile=TABLE1.dmp logfile=TABLE1.log query= USER1.TABLE1:where auditdate
    Estimate in progress using BLOCKS method...
    Processing object type TABLE_EXPORT/TABLE/TABLE_DATA
    Total estimation using BLOCKS method: 386 MB
    Processing object type TABLE_EXPORT/TABLE/TABLE
    Processing object type TABLE_EXPORT/TABLE/GRANT/OWNER_GRANT/OBJECT_GRANT
    Processing object type TABLE_EXPORT/TABLE/INDEX/INDEX
    Processing object type TABLE_EXPORT/TABLE/INDEX/STATISTICS/INDEX_STATISTICS
    Processing object type TABLE_EXPORT/TABLE/TRIGGER
    Processing object type TABLE_EXPORT/TABLE/STATISTICS/TABLE_STATISTICS
    ORA-31693: Table data object "USER1"."TABLE1" failed to load/unload and is being skipped due to error:
    ORA-00933: SQL command not properly ended
    Master table "SYS"."SYS_EXPORT_TABLE_03" successfully loaded/unloaded
    ******************************************************************************
    Dump file set for SYS.SYS_EXPORT_TABLE_03 is:
      /oracle/data_15/db1/TABLE1.dmp
    Job "SYS"."SYS_EXPORT_TABLE_03" completed with 1 error(s) at 03:03:58
    Version
    SQL> select * from v$version;
    
    BANNER
    --------------------------------------------------------------------------------
    Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
    PL/SQL Release 11.2.0.3.0 - Production
    CORE    11.2.0.3.0      Production
    TNS for IBM/AIX RISC System/6000: Version 11.2.0.3.0 - Production
    NLSRTL Version 11.2.0.3.0 - Production

    Hello

    You must use the settings file. Another question, I see you are using 11g. Why don't you use a data pump.?
    Data pump is faster and has more features and that regular improvement imp and exp.

    You can do the following:

    sqlplus / as sysdba
    
    Create directory DPUMP_DIR3  for 'Type here your os path that you want to export to';
    

    then tap on a file:
    Touch par.txt

    In this file, type the following line the following:

    tables=schema.table_name
    dumpfile=yourdump.dmp
    DIRECTORY=DPUMP_DIR3
    logfile=Your_logfile.log
    QUERY =abs.texp:"where hiredate>'01-JAN-13' "
    

    then proceed as follows
    expdp username/password name parfile = 'par.txt'

    You will import to Oracle 11 g to 10g version should add 'version = 10' parameter in the above setting file

    BR
    Mohamed enry
    http://mohamedelazab.blogspot.com/

  • Report interactive get where clause and change

    Hello

    If it is possible at the Apex 4.2 get interactive report where clause and change before Notre Dame for example result

    We have a report and some of the columns we should exactly match and for some partial matching.

    And the requirement of the company, they can't add % extra to the and of the search string. It should be added automatically for certain fields.

    Thank you.

    If it is possible at the Apex 4.2 get interactive report where clause and change before Notre Dame for example result

    Get it? Yes. Change it? N °

    We have a report and some of the columns we should exactly match and for some partial matching.

    And the requirement of the company, they can't add % extra to the and of the search string. It should be added automatically for certain fields.

    Teach the company how to use the tools at their disposal. Quick filters use the default search "contains", while the more specific filters are accessible through actions > filters.

    You still use IR filters? When you do a quick search (with or without a selected column), then a contains the will find the occurrence of the entered string regardless of its position (starts with, ends with).

    If you use page elements to filter, then you can easily add the % to these clauses, no?

  • Case with where clause - ORA-00920: invalid relational operator

    Hi all, when I try to run the following query, I get the following error...

    ORA-00920: invalid relational operator

    00920 00000 - "invalid relational operator.

    * Cause:

    * Action:

    Error on line: column 16: 5

    Anyone know what the problem with my request? Thanks in advance.

    SELECT concat (year, period)

    OF DD_ACTUALS_FACT

    CASE WHERE period

    WHEN 'JAN' THEN '01'

    WHEN 'FEB' THEN '02'

    WHEN 'MAR' THEN ' 03 "

    WHEN "APR" THEN ' 04 "

    WHEN 'CAN' THEN ' 05 "

    WHEN "JUN" THEN '06'

    WHEN 'JUL' THEN '07'

    WHEN 'AUG' THEN '08'

    WHEN 'MS' THEN '09'

    WHEN 'OCT' THEN '10'

    WHEN 'NOV' THEN '11'

    WHEN 'DEC' THEN '12'

    END as number 'months '.

    ORDER OF CONCAT (year, number 'months') / / DESC

    The problem is the number 'month' - you cannot give an "ACE" alias for an expression in a where clause clause.

    You have not really given any condition, that a set of translations of period in a number.

    Also, you didn't say what you're trying to do.

    Maybe you want to:

    SELECT concat (year, period)

    OF DD_ACTUALS_FACT

    WHERE something

    ORDER OF CONCAT (year, period of the CASE

    WHEN 'JAN' THEN '01'

    WHEN 'FEB' THEN '02'

    WHEN 'MAR' THEN ' 03 "

    WHEN "APR" THEN ' 04 "

    WHEN 'CAN' THEN ' 05 "

    WHEN "JUN" THEN '06'

    WHEN 'JUL' THEN '07'

    WHEN 'AUG' THEN '08'

    WHEN 'MS' THEN '09'

    WHEN 'OCT' THEN '10'

    WHEN 'NOV' THEN '11'

    WHEN 'DEC' THEN '12'

    END DESC)

    /

  • Cannot export data so WHERE clause AND/OR

    I am able to export the results of a query if the WHERE clause has only one condition. But if there are and AND or a RC, you can right-click and choose export data, but nothing happens.

    For example, the following text exports very well:

    SELECT * FROM DUAL
    WHERE ROWNUM = 1;

    But throw in an 'AND', and it will not be exported:

    SELECT * FROM DUAL
    WHERE ROWNUM = 1 AND ROWNUM < 2;

    I'm running worm 1.5.3 and did not apply the patches.

    Unfortunately, in the framework of trying to solve other problems with the export feature, 1.5.3 presented problems where certain types of SQL statements would not export (nothing happened like you are seeing or reports of the errors like ORA-936). While it is not yet perfect, 1.5.5 manages exporters results much better (it fits your case who fails in 1.5.3), then I would say that you upgrade to 1.5.5.

    theFurryOne

  • Insert using the table with the clause and select?

    Hello gurus,

    Can I insert in a table by making use of clause and select?

    something similar to this...
         insert into test_table
          (with abc as 
              (select * from emp_tble
               where dept_no = 10
               )
             select * from abc;
       );          
    
         if not i would i do by making use of  with clause & select ... any example would be great !!
    
    
      
    Thank you very much!!!

    Brackets are disturbing only:

    SQL> insert into test_table
       (with t as (select * from emp) select * from t)
    /
    Error at line 12
    ORA-32034: unsupported use of WITH clause
    
    SQL> insert into test_table
      with t as (select * from emp) select * from t
    /
    14 rows created.
    
  • 8287 error: manual/refresh operations with Where clause

    Hello

    I defined a group of read-only cache

    CREATE CACHE READONLY ABC GROUP

    AUTOREFRESH INTERVAL 60 seconds

    OF ORACLE_TABLE

    I want to only load the 3 months of the underlying table for Oracle data so I don't


    ABC LOADING CACHE GROUP

    WHEN TRUNC (date_column) > TRUNC (add_months (sysdate,-3))

    COMMIT ALL 256 ROWS

    4 PARALLEL;

    However, I get the error message

    8287: manual LOADING/REFRESH with clauses WITHID or WHERE operations are not be allowed on ABC Group cache because it is specified as AUTOREFRESH

    The command failed.

    What should I do to load the data of 3 months only if possible? Can I use autorefresh?

    Thanks in advance

    Cache AUTOREFRESH groups to include the WHERE clause in the definition of Group of cache. For example, if drop you in Oracle's:

    CREATE TABLE MYDATE

    (

    C1 VARCHAR2 (10) NOT NULL PRIMARY KEY,

    C2 DATE NOT NULL

    );

    Then your cache group definition would look like this:

    CREATE CACHE READONLY ABC GROUP

    AUTOREFRESH INTERVAL OF 60 SECONDS

    OF MYDATE

    (

    C1 VARCHAR2 (10) NOT NULL PRIMARY KEY,

    C2 DATE NOT NULL

    )

    WHEN TRUNC (c2) > TRUNC (add_months (sysdate,-3));

    And then you would load by using

    ABC LOADING CACHE GROUP

    COMMIT ALL 256 ROWS

    4 PARALLEL;

    As auto refreshes occur time passes, all the data that falls outside the range will be removed from the cache and new data that now lying in the range will be added to the cache.

    Chris

  • Help with Where clause

    Hello world

    I have an argument to function entry, lets call this file number. This argument can be 0 (zero) or any number like 9800. No negative number.

    My where clause, I would like to say, if the number is 0 (zero), then extract all the cases, otherwise just retrieve the lines/records that belong to the passed in file number.

    select * 
    from table1
    where case_num = (if case num is 0 then retrieve all cases, 
                    otherwise retrieve only the records that belong to the number passed in)
    

    Thanks in advance.

    Select *.

    FROM table1

    where case_num = num

    or num = 0;

    SY.

  • Problem with the checkbox and 'if' statement 'else if '.

    Hi, I had something like this:

    if (this.rawValue=="0" ){
      app.alert("0");
      this.resolveNode("Circle1").presence = "hidden";
      this.resolveNode("cross").presence = "visible";
     }  
    
    
    else if (this.rawValue=="1"){
      app.alert("1");
      this.resolveNode("Circle1").presence = "visible";
      this.resolveNode("cross").presence = "hidden";
      }
    
    else{
      app.alert("2");
       this.resolveNode("Circle1").presence = "hidden";
      this.resolveNode("cross").presence = "hidden";
     }
    

    I put a default position on the neutral State. The values are default: on = 1, off = 0, neutral = 2.

    When I'm clicking my button to check it works only 'market' (1) and (2) State "neutral." 'off' State does not work and I do not know why.

    Please help me with this.

    Hello

    Here is the form to the you: https://acrobat.com/#d=qiBnkcpRnPWxA5hokFXvQw.

    I shook the script, but it wasn't the main problem. The issue was that the box is on the Master Page and had a default value of the neutral. Some objects on the Master Page, as with the values by defect and buttons, checkboxes can behave badly when the form is reparqué (layout: ready event).

    If you take a look at the form, you will see the objects on the design Page behave as expected. However, similar objects on the Master Page by default returns every time that the layout event: loan fires. It has already been noted with Adobe.

    I recommend that you move the objects in a design Page or perhaps use a drop-down list instead of the check box.

    Niall

  • Need help with where clause

    Hi all

    Could someone please help me on this one where clause.
    The structure of the table like this:

    < code >
    create table (test)
    primary key ID number,
    TYPE_ID number not null,
    name varchar2 (10));

    insert into test values (1, 10, 'name 1');
    insert into test values (2, 10, 'name 2');
    insert into test values (3, 20, 'name 3');
    insert into test values (4, 20, 'name 4');
    insert into test values (5, 20, 'name 5');
    insert into test values (6, 10, 'name 6');
    insert into test values (7, 10, 'name 7');
    commit;

    SQL * more > select * from test;

    TYPE_ID ID NAMES
    ---------- ---------- ----------
    1 10 name 1
    2 10 2 name
    3 20 name 3
    4 20 4 name
    5 20 5 name
    6 10 6 name
    7 10 7 name

    7 selected lines.
    < code >

    Here are the values of the drop-down list box which the user will be able to select
    0 all the project
    Type of project 10 10
    20 of the Type 20

    Based on the selection of the user, we need a SELECT to get all records or certain types of records.

    Thanks in advance!

    Hello

    If: selected_type_ID is the value in the drop-down list (0, 10, or 20), then:

    WHERE   :selected_type_id IN (test.type_id, 0)
    

    This assumes that test.type_id is never NULL.

  • alias and case statements

    Hello

    Is it possible to reference alias in a case statement?

    Thank you!

    No, you can't. but when you use the inline mode, you can:

    SQL> select (Case when my_Col = 1 then 'this is one' else 'no idea' end) from (select 1 my_col from
    dual);
    
    (CASEWHENMY
    -----------
    this is one
    
    SQL> 
    
  • Help with MYSQLi query and WHILE statement

    Hello

    Do not know what is the problem here but the same record is printed in the while loop 11 times (the amount of records in the table).

    ----------------------------------------------------------

    <? PHP

    Query & main connection

    Connection to the base and the error

    $con_host = 'X '.

    $con_username = 'X '.

    $con_password = 'X '.

    $con_database = 'X '.

    $con = mysqli_connect ($con_host, $con_username, $con_password, $con_database);

    ? >

    <? PHP

    Query

    $sql = "SELECT * FROM hardware ORDER BY name ASC";

    $query = mysqli_query ($con, $sql);

    $row = mysqli_fetch_assoc ($query);

    $row_count = mysqli_num_rows ($query);

    Create Variables

    $name = $row ['name'];

    $size = $row ["size"];

    $quantity = $row ['quantity'];

    $protection = $row ['protection'];

    $location = $row ["location"];

    $sublocation = $row ["secondary"];

    $bc = $row ["BC"];

    $id = $row ['id'];

    ? >

    <! doctype html >

    < html >

    < link href = "stylesheets/main_stylesheet.css" rel = "stylesheet" type = "text/css" > "

    < link href =' http://fonts.googleapis.com/CSS?family=slabo+27px ' rel = "stylesheet" type = "text/css" >

    <! - Favicon - >

    < link rel = "shortcut icon" type = "image/png" href = "images/icon.png" / > "

    < style type = "text/css" >

    < / style >

    < head >

    < meta charset = "utf-8" >

    < title > list of < /title > printing equipment

    < link href = "stylesheets/print_stylesheet.css" rel = "stylesheet" type = "text/css" > "

    < script src = "sorttable.js" > < / script >

    <!-< onload = "window.print () of body" >-> ""

    < / head >

    < body >

    < div class = "non-print print_button" onClick = "window.print ()" > print < / div >

    < div class = 'print_text non-print' > select the sort the list by clicking on the categories of the table, and then click Print below < / div >

    < div class = "print_a4page" >

    < div class = "print_header" >

    < div class = "print_header_logo" > < img src = "images/logo.png" width = "306" height = "43" > < / div > "

    < div class = "print_header_text" id = "header_text" > Drama Database < / div >

    < div class = "print_header_info" > printout: < script type = "text/javascript" >

    var currentTime = new Date();

    var month = currentTime.getMonth () + 1;

    var day = currentTime.getDate ();

    year = var currentTime.getFullYear ();

    document. Write (day + "/" + month + "/" + year); < /script >

    < br >

    Total records:

    <? PHP echo $row_count? > < / div >

    < / div >

    < div class = "print_header_divider" > list of equipment < / div >

    < div class = "print_body" >

    < div >

    < name of the form = 'users' method = "post" >

    < div class = "table_print" >

    < table width = "100%" border = "0" cellpadding = "5" class = "sortable" >

    < class tr = "table_header_print" >

    < th = "15%" scope = "col" width > name < /th >

    < th = "12%" scope = "col" width > size < /th >

    < th = "9%" scope = "col" width > quantity < /th >

    < th = "12%" scope = "col" width > Protection < /th >

    < th = "17%" scope = "col" width > location < /th >

    < th = "12%" scope = "col" width > secondary < /th >

    < th = "11%" scope = "col" width > Barcode < /th >

    < th = "12%" scope = "col" width > Internal ID < /th >

    < /tr >

    <? PHP {? >}

    < class tr = "table_body" >

    < td > <? PHP echo $name? > < table >

    < td > <? PHP echo $size? > < table >

    < td > <? PHP echo $quantity? > < table >

    < td > <? PHP echo $protection? > < table >

    < td > <? PHP echo $location? > < table >

    < td > <? PHP echo $sublocation? > < table >

    < td > <? PHP echo $bc? > < table >

    < td > <? PHP echo $id? > < table >

    < /tr >

    <? PHP} while ($row = mysqli_fetch_assoc ($query));? >

    < /table >

    < / make >

    < / div >

    < / div >

    < / div >

    < / body >

    < / html >

    You assign row values to variables outside the loop if of course they never change! Make the way Ben tells you.

  • Download with norm, hover and active state button?

    Hello

    If im having some trouble getting my download button to download a file. I'm using background images if I can use the stationary and active flight for the button. But now I have to work the href does not work. If I put an image of src file in th < a > < /a > it works fine, but then I don't get the 3 step button.

    Here is my html code

    < div id = "dw-btn-power-out" class = "dw-power-out" >

    "< a href="Download-files/Power-out/v.1.0.0/test.zip "title = 'Download Power Out' target = '_blank' > < / a >

    < / div >

    CSS

    .dw-power-out}

    top of the margin: 20px;

    margin-bottom: 10px;

    }

    {#dw - btn - power - out

    height: 68px;

    Width: 270px;

    margin-right: auto;

    left margin: auto;

    background-image: url(img/dw-power-out.png);

    }

    #dw - btn - power - out: hover {}

    background-image: url(img/dw-power-out-hover.png);

    }

    #dw - btn - power - out: active {}

    background-image: url(img/dw-power-out-active.png);

    }

    Thank you

    Why do you hover on the div? Why is the div wrapping the link? You do not have we shown any style of the tag is probably non-existent.

    You should probably do it like this:

    HTML

    CSS

    {#dw - btn - power - out

    height: 68px;

    Width: 270px;

    margin: 20px 10px auto;

    background-image: url(img/dw-power-out.png);

    }

    #dw - btn - power - out: hover {}

    background-image: url(img/dw-power-out-hover.png);

    }

    #dw - btn - power - out: active {}

    background-image: url(img/dw-power-out-active.png);

    }

Maybe you are looking for

  • Unable to connect satellite Pro 6000 network

    I would appreciate help on this. We have a Toshiba Satellite Pro 6000, which we assumed is active wireless. But when you turn on the wireless switch, there is no answer and the laptop will not come to look for me or any other network. I was able to c

  • How to clear a duplication?

    I use a MacBook Pro OS X Retina El Capitan and I accidentally copied 'documents' on my desk and I put it in 'my files' so I have all my (many) duplicate photos in "my files". How can erase just replicas? Thank you Ory92140

  • Problem with PXI SMU 4132

    I have observed 4132 PXI is sometimes load dependent. We were testing a specific devicewhich is part of the bi-directional and when we forced a current through the device in the negative sense of the wholecurrent is not available through a device (i.

  • Want 5646: Ink cartridge black _ _ _ failure.

    I have a 2 month old HP Envy 5464. I just changed the cartridge to be confronted with the following error _ failure black ink cartridge. I tried removing, reinstalling, cleaning, turning off and then on reset but no joy. Please advise?

  • Bad banner Image keeps appearing

    Please help as the following banner appears up to 23 times with different sections- The application or DLL C:\PROGRA~1\IMESHA~1\MediaBar\DataMngr\datamngr.dll is not a valid Windows image.  Please check this against your installation diskette. What i