Advertisement
|
[x]
Posted via EE Mobile
|
||
Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again. |
||
| 11/17/2007 at 12:19AM PST, ID: 22967375 |
|
[x]
Attachment Details
|
||
|
[x]
The Solution Rating System
|
||
With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.
Your Input Matters If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support. Thank you! |
||
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 29: 30: 31: 32: 33: 34: 35: 36: 37: 38: 39: 40: 41: 42: 43: 44: 45: 46: 47: 48: 49: 50: 51: 52: 53: 54: 55: 56: 57: 58: 59: 60: 61: 62: |
<?php
/* Program: PetCatalog.php
* Desc: Displays a list of pet categories from the
PetType table. Includes descriptions.
* User checks radio button.
*/
//...code...
error_reporting(E_ALL); ini_set('display_errors','On');
?>
<html>
<head><title>Type Of Pets Available In Ryans Pet Store</title></head>
<body>
<?php
include("misc.inc"); #11
$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'>";
$counter=1; #36
while ($row = mysql_fetch_array($result)) #37
{
extract($row); #39
echo "<tr><td valign='top' width='15%'>\n";
echo "<input type='radio' name='interest'
value='$petType'\n"; #42
if ( $counter == 1 ) #43
{
echo "checked";
}
echo "><font size='+1'><b>$petType</b></font>"; #47
echo "</td>
<td>$typeDescription</td>"; #49
echo "</tr>";
$counter++; #51
}
echo "</table>";
echo "<p><input type='submit' value='Select Pet Type'>
</form>\n"; #55
?>
</div>
</body></html>
|