php决策输出和图像

时间:2018-03-28 00:59:05

标签: php if-statement

我正在创建一个搜索栏,在搜索名称时输出某个图像,但在我的输出中,整个代码输出到屏幕上它就是没有条件

我将此作为导航系统的一部分,您可以在其中搜索姓名,然后将显示该人员办公室的地图

请有人知道我的困境的解决方案 这是我的代码:

    <DOCTYPE! html>
    <html>
    <?php
    $query=filter_input(INPUT_POST, 'query');

    if ($query = Jane Avila or Rodrigo Munoz Jr. or Faye Baret or Christopher Maglaque or Riadal Sampang or Aida Solomon or Kristine Ortega or Johann Buensuceso)
    {
        echo'<img src="file:///C:/Users/DELL/Desktop/navi-new/ECE FACULTY.jpg" width=1350 height=675>';
        echo'<a href="C:\Users\DELL\Desktop\navi-new\pow.html"><img align=right src="home.jpg" width="50" height="50"></a>';
    }
    else if ($query = Aida Santos or Jonathan Munoz or Nino Voltaire Tria or Fe Maglaque or Mary Rose Vallejos or Oscar De Jesus){
        echo'<img src="file:///C:/Users/DELL/Desktop/navi-new/CE FACULTY.jpg" width=1350 height=675>';
        echo'<a href="C:\Users\DELL\Desktop\navi-new\pow.html"><img align=right src="home.jpg" width="50" height="50"></a>'; 
    }
    else if ($query = Arman Nisay or Grisom Gines or Alfredo Valentos or John Ryan Dizon or Brian Tuazon or Gerald Robles or Emerson Navarro or Dante Bautista or Dan William Martinez or Ruel Cabahug){
        echo'<img src="file:///C:/Users/DELL/Desktop/navi-new/ME FACULTY.jpg" width=1350 height=675>';
        echo'<a href="C:\Users\DELL\Desktop\navi-new\pow.html"><img align=right src="home.jpg" width="50" height="50"></a>'; 
    }
    else if ($query = Nelson Andres or Greg Mallari or Fredie Poblete or Mar Tapia or Roland Manalang or Guillermo Lacson or Edwin Zaldivar or Benjamin Alamani or Alvin Estanislao){
        echo'<img src="file:///C:/Users/DELL/Desktop/navi-new/EE FACULTY.jpg" width=1350 height=675>';
        echo'<a href="C:\Users\DELL\Desktop\navi-new\pow.html"><img align=right src="home.jpg" width="50" height="50"></a>';

    }
    else if ($query = Robert Aguilar or Ramon Lamira or Danilo Gahera or Charlene Gara or Katrina Guanzon or John Paul Austria or Kimberly Ronquillo or Shiela Marie Roxas or Yves Jan Atienza or Peter Lindell Reza Bugay){    
        echo'<img src="file:///C:/Users/DELL/Desktop/navi-new/ARKI.jpg" width=1350 height=675>';
        echo'<a href="C:\Users\DELL\Desktop\navi-new\pow.html"><img align=right src="home.jpg" width="50" height="50"></a>'; 
    }
    else if ($query = Cristina Rivera or Marissa Ramos or Maria Lolita Masangcap or Aaron Paul Rivera or Cherry Collera or Arlyne Naoe or Joseph Ross Cortel or Noel Tolentino or Stephanie Rose Basilio or Apple Magno or James Roland Bentor or Claudine Jaro or Dennis Carlos or Ruben Espeja Jr. or Mary Jane Solomon or Roda Pangalinan or Janice Christian Sacdalan or Maria Diorella Paguio or Janette Ambito or Rhea Lynn Halili or Charles Adrian Delazo or Mariestella Joy Munoz){
        echo'<img src="file:///C:/Users/DELL/Desktop/navi-new/CICTFACULTY.jpg" width=1350 height=675>';
        echo'<a href="C:\Users\DELL\Desktop\navi-new\pow.html"><img align=right src="home.jpg" width="50" height="50"></a>';     
    }   
    else if ($query = Lemuel Fontillas or Ramon Bantugan or Flora Canare or Rowell de Guia or Zenaida Dela Rosa or Maritess Dela Vega or Riza Delos Reyes or Digi Ana M. Enriquez or Sherrilyn Quintos or Imelda Realce or Lorna Roldan or Cynthia Ronquillo or Nomer Varua){
        echo'<img src="file:///C:/Users/DELL/Desktop/navi-new/MEDINA.jpg" width=1350 height=675>';
        echo'<a href="C:\Users\DELL\Desktop\navi-new\pow.html"><img align=right src="home.jpg" width="50" height="50"></a>'; 
    }
    else if ($query = Jenette Abad or Selma Bangco or Mariza Dulce Cruz or Edgar Allan Flores or Wilma Magtalas or Jesselyn Mortejo or Lilibeth Quicho or Marianita Sarmiento or Antonio Zapanta or Danna Paula Olaya){
        echo'<img src="file:///C:/Users/DELL/Desktop/navi-new/MEDINA.jpg" width=1350 height=675>';
        echo'<a href="C:\Users\DELL\Desktop\navi-new\pow.html"><img align=right src="home.jpg" width="50" height="50"></a>';
    }
    else if ($query = Marianne Nanasca or Celso Castillo or Arlene Ibanez or Consorcia Leano or Emellie Matito or Carmelita Ocampo or Virginia Enriquez){
        echo'<img src="file:///C:/Users/DELL/Desktop/navi-new/MEDINA.jpg" width=1350 height=675>';
        echo'<a href="C:\Users\DELL\Desktop\navi-new\pow.html"><img align=right src="home.jpg" width="50" height="50"></a>'; 
    }
    else if ($query = Riza Bantay or Maricel Bustamante or Celeste A. Dela Cruz){
        echo'<img src="file:///C:/Users/DELL/Desktop/navi-new/MEDINA.jpg" width=1350 height=675>';
        echo'<a href="C:\Users\DELL\Desktop\navi-new\pow.html"><img align=right src="home.jpg" width="50" height="50"></a>'; 
    }
    else if ($query = Lorna Loyola){
        echo'<img src="file:///C:/Users/DELL/Desktop/navi-new/MEDINA.jpg" width=1350 height=675>';
        echo'<a href="C:\Users\DELL\Desktop\navi-new\pow.html"><img align=right src="home.jpg" width="50" height="50"></a>'; 
    }
    else if ($query = Joerald Gadia or Jason Anthony Banzon){
        echo'<img src="file:///C:/Users/DELL/Desktop/navi-new/MEDINA.jpg" width=1350 height=675>';
        echo'<a href="C:\Users\DELL\Desktop\navi-new\pow.html"><img align=right src="home.jpg" width="50" height="50"></a>'; 
    }
    else if ($query = Lee Francisco or Mel Abas or Ma. Cristina Alba or Rolando Carpio or Consuelo Cruz or Alex David or Imelda Esguerra or Chona Pena or Victoria Roque){
        echo'<img src="file:///C:/Users/DELL/Desktop/navi-new/MEDINA.jpg" width=1350 height=675>';
        echo'<a href="C:\Users\DELL\Desktop\navi-new\pow.html"><img align=right src="home.jpg" width="50" height="50"></a>'; 
    }
    else if ($query = Homer Tacubanza or Noralyn Austria or Jocelyn Bacilig or Leonila Cabrero or Medel De Guzman or Melvin Escartin){
        echo'<img src="file:///C:/Users/DELL/Desktop/navi-new/PE.jpg" width=1350 height=675>';
        echo'<a href="C:\Users\DELL\Desktop\navi-new\pow.html"><img align=right src="home.jpg" width="50" height="50"></a>'; 
    }
?>
</html>

1 个答案:

答案 0 :(得分:0)

根据您的要求,它有80个错误,因此我会向您显示一行

MEMORY
{
  rom (rx)  : ORIGIN =  ROM_ORIGIN, LENGTH =  ROM_LENGTH
  ram (rwx) : ORIGIN =  RAM_ORIGIN, LENGTH =  RAM_LENGTH
}

__stack_size__ = DEFINED(__stack_size__) ? __stack_size__ : 0x1000;

SECTIONS
{
    .text :
    {
        . = ALIGN(4);
        _stext = .;         /* First of standard s,e (start/end) pair */
        KEEP(*(.vectors .vectors.*))
        KEEP(*(.irqs))

        *(.text .text.* .gnu.linkonce.t.*)
        *(.rodata .rodata* .gnu.linkonce.r.*)
    } > rom

    /* Mark the end of static elements */
    . = ALIGN(4);
    _etext = .;

    /* This is program data that is exepected to live in SRAM, but is
     * initialized with a value. This data is physically placed into flash and
     * is copied into SRAM at boot. The symbols here will be defined with
     * addresses in SRAM.
     *
     * This is the section that needs to be charged to BOTH rom and ram */
    .relocate : AT (_etext)
    {
        . = ALIGN(4);
        _srelocate = .;
        *(.ramfunc .ramfunc.*);
        *(.data .data.*);

        . = ALIGN(4);
        _erelocate = .;
    } > ram

    .sram (NOLOAD) :
    {
        . = ALIGN(8);
         _sstack = .;

        . = . + __stack_size__;

        . = ALIGN(8);
        _estack = .;


        /* BSS section. Memory that is expected to be initialized to zero. */
        . = ALIGN(4);
        _szero = .;

        *(.bss .bss.*)
        *(COMMON)

        . = ALIGN(4);
        _ezero = .;
    } > ram
}

应该是

 else if ($query = Homer Tacubanza or Noralyn Austria or Jocelyn Bacilig or Leonila Cabrero or Medel De Guzman or Melvin Escartin){

这是多么错误的编程。

相关问题