0

Hi Guys
So i have the following code:

<?php
session_start();
include_once("config.php");
?>

<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Shopping Cart</title>
<link href="style/style.css" rel="stylesheet" type="text/css">
</head>
<body>

<br><br>
<div id="search-wrapper">
<h1 id = "mainHeader>Search for books</h1>

<?php
$query = "SELECT Category FROM books";
$result = mysqli_query ($mysqli, $query);

echo "<select name=dropdown value=''>Dropdown</option>";
while($row = mysqli_fetch_array($result))

{

echo "<option value=$row[Category]>$row[Category]</option>";

}

echo "</select>";

?>

</div>

</body>
</html>

I dont receive any errors when i run the page the only issue i have is that the page is blank
all i have is the colour ive given to the body in css

Any ideas why nothings being show?

Thanks!

Edited by pritaeas: Moved to PHP

1
Contributor
1
Reply
10
Views
2 Years
Discussion Span
Last Post by spud91
1

ah silly mistake i found the error. I forgot close off the heading " marks

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.