All pastes #425508 Raw Edit

Stuff

public text v1 · immutable
·published 2007-04-05 15:07 UTC
rendered paste body
<?
session_start();
include('config.php');
?>
<html>
<head>
<title>Online DVD Shop</title>
</head>
<body>
<table align="center" valign="top" cols="2" width="700">
<tr>
<td colspan="2" align="center">
<font size="+5">Online DVD Shop</font>
</td></tr>
<tr>
<td colspan="2" align="left">
<?
if ( empty($_SESSION['username'])){
echo "<a href='registration.php'>Login In or Register</a>";
}
?>
</td></tr>
<tr><td valign="top">
<table>
<?
$sql = "SELECT * FROM film";
$query=mysql_query($sql) or die(mysql_error());
while($row = mysql_fetch_assoc($query)) {
//$picture = $row['picture'];
$title = $row['title'];
$price = $row['price'];
echo "<tr><td><img height="70" width="70" src=".$row['picture']." ></td><td>$title</td><td>$price</td></tr></br>";
}
?>
</table>
</td></tr>
</table>
</body>
</html>