Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/234.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
到底是什么?当然没有什么有用的,它也有语法错误。这段代码将更接近他正在搜索的内容。。。为了便于学习,我故意留下了一些小错误。语法错误非常小…我一直在反复地了解您的代码是如何创建PHP文件的,因为您将PHP代码放在HTML内容之上,并用?>关闭它。啊,我忘了_Php_Html - Fatal编程技术网

到底是什么?当然没有什么有用的,它也有语法错误。这段代码将更接近他正在搜索的内容。。。为了便于学习,我故意留下了一些小错误。语法错误非常小…我一直在反复地了解您的代码是如何创建PHP文件的,因为您将PHP代码放在HTML内容之上,并用?>关闭它。啊,我忘了

到底是什么?当然没有什么有用的,它也有语法错误。这段代码将更接近他正在搜索的内容。。。为了便于学习,我故意留下了一些小错误。语法错误非常小…我一直在反复地了解您的代码是如何创建PHP文件的,因为您将PHP代码放在HTML内容之上,并用?>关闭它。啊,我忘了,php,html,Php,Html,到底是什么?当然没有什么有用的,它也有语法错误。这段代码将更接近他正在搜索的内容。。。为了便于学习,我故意留下了一些小错误。语法错误非常小…我一直在反复地了解您的代码是如何创建PHP文件的,因为您将PHP代码放在HTML内容之上,并用?>关闭它。啊,我忘了提到语法错误。。。我知道错误与单引号或双引号有关,但仍然找不到它们! $i=1; while($file = fopen("untitled$i.php", "r")) { fclose($file); $i++; } if($file = f


到底是什么?当然没有什么有用的,它也有语法错误。这段代码将更接近他正在搜索的内容。。。为了便于学习,我故意留下了一些小错误。语法错误非常小…我一直在反复地了解您的代码是如何创建PHP文件的,因为您将PHP代码放在HTML内容之上,并用
?>
关闭它。啊,我忘了提到语法错误。。。我知道错误与单引号或双引号有关,但仍然找不到它们!
$i=1;
while($file = fopen("untitled$i.php", "r")) { fclose($file); $i++; }
if($file = fopen("untitled$i.php", "w")) {
$html ='<?php 
include "config/connect.php"; 
$dynamicList = "";
$sql = "SELECT DISTINCT filename FROM pages";
$query = mysqli_query($db_conx, $sql);
$productCount = mysqli_num_rows($query); // count the output amount
if ($productCount > 0) {
    while($row = mysqli_fetch_array($query, MYSQLI_ASSOC)){ 
             $category = $row["category"];
             $dynamicList .= "<li><a href="#">' . $filename . '</a></li>";
    }
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="en-US">

    <head profile="http://gmpg.org/xfn/11">

**rest of the HTML code goes here.....................**
$i=1;
while($file = fopen("untitled$i.php", "r")) { fclose($file); $i++; }
if($file = fopen("untitled$i.php", "w")) {
$html ='
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="en-US">

    <head profile="http://gmpg.org/xfn/11">

**rest of the HTML code goes here.....................**
 if(isset($_GET['page'])){

      if($_GET['page'] == 'cars'){

          // YOUR CARS PAGE
          mysql_query("SELECT * FROM CARS WHERE COLOR = 'Blue'");

      }
      else if($_GET['page'] == 'mobiles'){


          // YOUR MOBILE PAGE
          mysql_query("SELECT * FROM MOBILES WHERE OS = 'Android'");

      }

 }
 else{

     // YOUR MAIN PAGE

 }
    $i=1;
    while($file = fopen("untitled$i.php", "r")) { fclose($file); $i++; }
        if($file = fopen("untitled$i.php", "w")) {
            include "config/connect.php"; 
            $dynamicList = "";
            $sql = "SELECT DISTINCT filename FROM pages";
            $query = mysqli_query($db_conx, $sql);
            $productCount = mysqli_num_rows($query); // count the output amount
            if ($productCount > 0) {
                while($row = mysqli_fetch_array($query, MYSQLI_ASSOC)){ 
                         $category = $row["category"];
                         $dynamicList .= "<li><a href="#">' . $filename . '</a></li>";
                }
            }
        }
    ?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="en-US">

        <head profile="http://gmpg.org/xfn/11">
    <?php echo $dynamicList; ?>