drhqkz3455 2014-11-18 21:33
浏览 28


I'm trying to create a simple form to show a basic table and a delete query... I can get the delete query working but when I use an include it does not work, if i run the 'display.php' file alone in browser it runs perfectly and shows the database...

Can anyone advise what would be best way incorporate the display.php file in this html file? Or explain the issue?

<!DOCTYPE html>

        <div id="content">
            <?php include('display.php')?>

            <div id="sidebar"></div>

            <div id="footer">

                        <form action="delete.php" method="post"></form>

                        <table border="0" cellpadding="3" cellspacing="1" style="background-color: #536977" width="100%">
                                <td width="150">Enter Username to be deleted</td>

                                <td width="6">:</td>

                                <td width="294"><input name="delusername" type="text"></td>



                                <td><input type="submit" value="submit"></td>
  • 写回答

1条回答 默认 最新

  • dongshao1981 2014-11-18 21:45
    <?php  require_once('display.php'); ?>

    Presuming they are in the same folder.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?



  • ¥15 visionmaster启动失败,提示为“机器不满足授权而被禁用”
  • ¥50 用logisim设计16位单时钟周期cpu
  • ¥15 IDEA中圈复杂度如何具体设置
  • ¥50 labview采集不了数据
  • ¥15 请上面代码做什么处理或什么混淆
  • ¥15 英雄联盟自定义房间置顶
  • ¥15 W5500网线插上无反应
  • ¥15 如何用字典的Key,显示在WPF的xaml中
  • ¥15 weautomate读取Excel表格信息然后填写到网页一直报错,如何解决?
  • ¥15 C#如何在Webview2中获取网页验证码