The error message is:
Notice: Undefined index: interest in C:\xampp\New folder\htdocs\ShowPets.php on line 25
The code of the page not showing radio buttons is:
/* Program: PetCatalog.php
- Desc: Displays a list of pet categories from the
PetType table. Includes descriptions.
Displays radio buttons for user to check.
$cxn = mysqli_connect($host,$user,$passwd,$dbname) #14
or die (“couldn’t connect to server”);
/* Select all categories from PetType table */
$query = “SELECT * FROM PetType ORDER BY petType”; #18
$result = mysqli_query($cxn,$query)
or die (“Couldn’t execute query.”); #20
/* Display text before form */
The following animal friends are waiting for you.\n
Find just what you want and hurry in to the store to pick up your new friend.
Which pet are you interested in?\n";
/* Create form containing selection list */
echo “\n”; #33