Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if ($_GET['link'] == "articles") {
- $mysqli->select_db("articles");
- $query = "SELECT id, title, author, time, date, content, category, published FROM `articles` WHERE 1";
- if ($articles = $mysqli->query($query)) {
- $articlevals = $articles->fetch_fields();
- foreach ($articlevals as $val) {
- echo "Title: <br />", $val->title;
- }
- }
- }
Add Comment
Please, Sign In to add comment