Guest User

Untitled

a guest
Oct 17th, 2018
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.37 KB | None | 0 0
  1.     if ($_GET['link'] == "articles") {
  2.             $mysqli->select_db("articles");
  3.            
  4.             $query = "SELECT id, title, author, time, date, content, category, published FROM `articles` WHERE 1";
  5.            
  6.             if ($articles = $mysqli->query($query)) {
  7.                 $articlevals = $articles->fetch_fields();
  8.                
  9.                 foreach ($articlevals as $val) {
  10.                     echo "Title: <br />", $val->title;
  11.                 }
  12.             }
  13.     }
Add Comment
Please, Sign In to add comment