I'm about to follow a very long tutorial to create an online catalogue and login system however I cant help getting the feeling that even on the early states I should get a little more than a blank page.
MySQL seems fine from as much as I know. Building my database and entering data.
i just dont want to go through this whole tutorial hoping at the end it works when I might not really be testing it during development.
Should the page below not atleast show something instead of being pure blank???
By the way this tutorial is from PHP & MySQL for Dummies lol You can get the pages from http://www.janet.valade.com/downloads_fd2.html
11-1 too 11-12 is what I'm working on incase your enthusiastic enough to set it up!
/* Program: PetCatalog.php
* Desc: Displays a list of pet categories from the
PetType table. Includes descriptions.
* User checks radio button.
<head><title>Type Of Pets Available In Ryans Pet Store</title></head>
$connection = mysql_connect($host,$user,$password) #13
or die ("couldn't connect to server");
$db = mysql_select_db($database,$connection) #15
or die ("Couldn't select database");
/* Select all categories from PetType table */
$query = "SELECT * FROM PetType ORDER BY petType"; #19
$result = mysql_query($query)
or die ("Couldn't execute query."); #21
/* Display text before form */
echo "<div style='margin-left: .1in'>
<h1 align='center'>Pet Catalog</h1>
<h2 align='center'>The following animal friends are
waiting for you.</h2>
<p align='center'>Find just what you want and hurry in to
the store to pick up your new friend.
<p><h3>Which pet are you interested in?</h3>\n";
/* Create form containing selection list */
echo "<form action='ShowPets.php' method='post'>\n"; #34
echo "<table cellpadding='5' border='1'>";
while ($row = mysql_fetch_array($result)) #37
echo "<tr><td valign='top' width='15%'>\n";
echo "<input type='radio' name='interest'
if ( $counter == 1 ) #43
echo "><font size='+1'><b>$petType</b></font>"; #47
echo "<p><input type='submit' value='Select Pet Type'>