如何在php中使用pdo从mysql表中选择非空值?

时间:2018-03-01 04:50:17

标签: php mysql pdo

我正在尝试为我的所有CRUD目的创建一个基类。我有一个方法从$ query-> execute中执行的方法中传递的所有输入和表行参数创建一个数组。出于这个原因,我想知道以下格式是否有效。

<!DOCTYPE html>
<html>

<head>
  <link rel="stylesheet" href="styles.css">
  <link href='http://fonts.googleapis.com/css?family=Lato:100,300,400,300italic' rel='stylesheet' type='text/css'>
  <title> DJ's Footy Pool</title>
</head>

<body>

  <header>
    <navbar>
      <div class="topnav">
        <a class="active" href="#home">Home</a>
        <a href="#rules">Rules</a>
        <a href="#predictions">Predictions</a>
        <a href="#results">Results</a>
        <a href="#standings">Standings</a>
        <a href="#previous">Previous&nbsp;Winners</a>
      </div>
    </navbar>
  </header>

  <section>
    <div class="row">
      <h1>DJ's English Premier League Football Pool</h1>
      <p>The only website you'll need to make predictions, view fixtures and more for our football pool!</p>
    </div>
  </section>
</body>

</html>

0 个答案:

没有答案