Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns = "http://www.w3.org/1999/xhtml">
- <head>
- <title>Auto parts Ordering</title>
- </head>
- <body bgcolor = "#707272" text = "#000000" style = "font-family: Lucida Console">
- <style>
- form#f1 {
- margin-left: auto;
- margin-right: auto;
- width: 60%;
- }
- p {
- text-align: center;
- }
- span{
- display: inline-block;
- }
- span input {
- display: block;
- position: relative;
- top: -3em;
- text-align: center;
- }
- span label {
- display: block;
- font-size:75%;
- padding-top: 1.5em;
- text-align: left;
- }
- </style>
- <hr style = "width:75%"/>
- <center>
- <img src = "search64.png"/>
- <h1>Automotive Parts Ordering</h1>
- </center>
- <hr style = "width:75%"/>
- <br/>
- <?php
- $conn = mysql_connect("blitz.cs.niu.edu", "student", "student");
- $legacy = mysql_select_db("csci467", $conn);
- $sql = "select * from parts";
- $res = mysql_query($sql);
- echo "<center><fieldset style = 'display: inline-block;'>";
- echo "<legend>Part Catalog</legend>";
- echo "<span><table style = 'margin: 1px auto; width: 100%; border: 1px; border-spacing: 15px; padding: 5px'>";
- echo "<tr><th>Part #</th><th>Description</th><th>Price<th></tr>";
- while($row = mysql_fetch_array($res))
- {
- echo "<tr><td>",$row[0],"</td><td>",$row[1],"</td><td>",$row[2],"</td></tr>";
- }
- echo "</table></span></fieldset></center>"
- ?>
- </body>
- <br/><br/>
- <footer>
- <hr style = "width:75%"/>
- <center>
- <small>Group 1: Sean Vogel - Matthew Rowe - Richard Catalano</small>
- </center>
- </footer>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment