Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $con = mysql_connect('localhost','root');
- if (!$con)
- {
- die('Could not connect: ' . mysql_error());
- }
- mysql_select_db("Coupons", $con);
- $mfg='Yoplait';
- $result = mysql_query("SELECT * FROM `Manufacturers` WHERE `Manufacturer` = '". $mfg ."'");
- echo "
- <html>
- <body>
- <table border='1'>
- <tr>
- <th>Manufacturer</th>
- <th>URL</th>
- <th>Mfg_Code</th>
- </tr>
- ";
- while ($row = mysql_fetch_array($result))
- {
- echo "
- <tr>
- <td>". $row['Manufacturer'] ."</td>
- <td>". $row['Mfg_URL'] ."</td>
- <td>". $row['Mfg_Code'] ."</td>
- </tr>
- ";
- }
- echo "
- </table>
- </body>
- </html>
- ";
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement