Jump to content

abcdefgin

New Members
  • Posts

    2
  • Joined

  • Last visited

abcdefgin's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Thanks! Other issues: 1) I can't seem to figure out why the footer isn't showing up 2) All content on page continuously repeats 7x?
  2. I'm really new to PHP and have been stuck on this problem for awhile. I've been trying to insert a header, multiple images in a list, and footer from a database with this code: ------------------------------------------------- <!DOCTYPE html> <html lang="en"> <meta charset="UTF-8"> <head> <title> Reimagined Movie Posters </title> </head> <body> <?php include_once "header.php"; ?> <?php include_once "db_connect.php"; die($mysqli->stat()); $result = $mysqli->query("SELECT * FROM store WHERE id=".$_GET['name']); / if($mysqli->errno) die($mysqli->error); while($row = $result->fetch_object()){ $images = explode(",", $row->images); ?> <?php } ?> <?php include_once "footer.php"; ?> </body> </html> ------------------------------------------------- and I keep on getting the error: "hello You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1" What am I doing wrong? All I have on line 1 is <!doctype html>.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.