Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <HEAD> <TITLE> Search </TITLE> </HEAD>
- <BODY>
- <h1>Search for your favourite movies here</h1>
- <b>`enter code here`
- <p> Here you can search through our exciting selection of existing and upcoming movies </p>
- <p> You can search our website by choosing from one of the drop down lists below depending on what you
- know about the movie </p>
- </b>
- <?php
- $connection = mysql_connect('localhost', 'labuser', 'Labuser1');
- mysql_select_db('datab');
- $query = "SELECT * FROM fname";
- $result = mysql_query($query);
- echo "<table>";
- while($row = mysql_fetch_array($result))
- {
- echo <h2>$row['name']</h2>;
- }
- echo "</table>";
- mysql_close();
- ?>
- </BODY>
- </HTML>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement