php代码里面怎么调用html里面的一部分代码呢?调用html的样式不能改变,谢谢

解决方案 »

  1.   

    你可以在HTML里嵌套<?php ?>代码
      

  2.   

    在html里面套我懂,但是公司要求我用 php应用html代码,比如index.php作为主页,全部是php代码,引用index.html代码,在浏览器看源代码就只是看到html代理了,这个要求引用一部分html代码,不要全部index.html代码都引用,这个怎么引用?是不是框架呢?
      

  3.   

    <?php
    $str='<html><head></head><body>123</body></body></head></html>';
    $pos[0]=strpos($str,'<body>');
    $pos[1]=strpos($str,'</body>');
    echo substr($str,$pos[0],$pos[1]-$pos[0]);
      

  4.   

    用户在浏览器端看到的本来就只能是html代码,他要是能看到php代码那就恐怖了
      

  5.   

    html里面调用可以用iframe,php里面就不明白了.....
      

  6.   

    四楼是对的,你直接<?php  ?>就可以了
      

  7.   

    是指在php文件中访问html元素的内容么?get post传值过去
      

  8.   

    function querySelect($select,$where='',$order='',$limit='',$offset=0,$group='',having=''){$sql="select $select from $table".($where !=''?"where $where":'')}谁能解释一下问号是什么意思?最后一个单引号是什么意思?整句怎么理解?
      

  9.   

    function querySelect($select,$where='',$order='',$limit='',$offset=0,$group='',having=''){$sql="select $select from $table".($where !=''?"where $where":'')}谁能解释一下问号是什么意思?最后一个单引号是什么意思?整句怎么理解?
      

  10.   

    function querySelect($select,$where='',$order='',$limit='',$offset=0,$group='',having=''){$sql="select $select from $table".($where !=''?"where $where":'')}谁能解释一下问号是什么意思?最后一个单引号是什么意思?整句怎么理解?
      

  11.   


    ($where !=''    ?  "where $where"   :  '')
    $where !=''    ?  "where $where"   :  ''
    $result = true ? $str  :  '';