All pastes #940154 Raw Edit

PHP Page for Searchin the Pre DB

public php v1 · immutable
·published 2008-03-12 20:13 UTC
rendered paste body
<?php$con = mysql_connect("localhost","username","pass");if (!$con)  {  die('Could not connect: ' . mysql_error());  }mysql_select_db("prebot", $con);$result = mysql_query("SELECT * FROM predb LIMIT 0,20");echo "<table border='1'><tr><th>Section</th><th>Releases</th><th>Group</th></tr>";while($row = mysql_fetch_array($result))  {  echo "<tr>";  echo "<td>" . $row['section'] . "</td>";  echo "<td>" . $row['rlsname'] . "</td>";  echo "<td>" . $row['grp'] . "</td>";  echo "</tr>";  }echo "</table>";mysql_close($con);?>