如何再次在PHP和PHP中用HTML编写HTML?

How to write HTML in PHP and PHP in HTML again?

The following error message appears:

Parse error: syntax error

<?php 
    echo"<div class='vod'>    

         "   /////// i need right php her
          $con = mysqli_connect ("localhost","root","","demo");

        $id = @addcslashes ($_REQUEST['id']);

        $image = mysqli_query ($con,"SELECT * FROM img WHERE id= '$id '")or  die(mysqli_error($con));
        $image = mysqli_fetch_assoc ($image);
        $image = $image['img'];


        header ("content-type: image/jpeg");
        echo $image ; "

    </div>";
?>
查看全部
duanfan1965
duanfan1965
2017/11/02 23:13
  • php
  • html
  • 点赞
  • 收藏
  • 回答
    私信
满意答案
查看全部

3个回复