All pastes #924947 Raw Edit

Miscellany

public text v1 · immutable
·published 2008-03-01 21:18 UTC
rendered paste body
<?php
require "mysql.php";
require "header.php";
include "menu.php";

print "<br /><br /><br /><br /><center><table width=25%> <tr> <td><font color='#ffffff'>¦¦</font></td> <td align='center'><font color='#555555'><a href='index.php?action=news'><font color='#555555'>News</font></a></td> <td><font color='#ffffff'>¦¦</font></td> <td align='center'><a href='index.php?action=update'><font color='#555555'>Updates</font></a></td> <td><font color='#ffffff'>¦¦</font></td> <td align='center'><a href='index.php?action=event'><font color='#555555'>Upcoming Events</font></a></td> <td><font color='#ffffff'>¦¦</font></td> </tr>
</table></center>";

print "<center><br /><br /><br /><br /><img src='img/dethdekslogo.jpg'><br /><br /><br /><br /><table width='50%'><tr><td align='center'>Welcome to the New Official Deth Deks Skateboards Website. As you can see we are still currently under construction, but dont worry as each day passes more and more will be done. If you have any questions, suggestions, or concerns about anything you see or want to see on this website, Please feel free to email me at <a href='mailto:dethdeks@gmail.com'>Dethdeks@gmail.com</a>.</td></tr></table></center>";
switch($_GET['action'])
{
case "news":
ind_news();
break;
case "update":
ind_update();
break;
case "event":
ind_event();
break;
}
print "<br /><br /><br /><br /><br />";
require "footer.php";
function ind_news()
{
print "<br /><br /><center><h3><u><b>News</b></u></h3><br /><table width=50%><tr> <th>Topic</th> <th>Description</th> <th>Date</th> </tr>";
$q=mysql_query("SELECT * FROM news ORDER BY news_NEW DESC") or die(mysql_error());
while($r=mysql_fetch_array($q))
{
print "<tr> <td align='center'>{$r['news_TOPIC']}</td> <td align='center'>{$r['news_DESC']}</td> <td align='center'>{$r['news_DATE']}</td></tr>";
}
print "</table></center>";
}
function ind_update()
{
print "<br /><br /><center><h3><u><b>Grip</b></u></h3><br />
<table width=50%><tr> <th>Name</th> <th>Price</th> <th>Description</th> <th>Image</th> </tr>";
$q=mysql_query("SELECT * FROM product WHERE prod_TYPE='Grip' ORDER BY prod_ID DESC") or die(mysql_error());
while($r=mysql_fetch_array($q))
{
print "<tr> <td align='center'>{$r['prod_NAME']}</td> <td align='center'>\${$r['prod_PRICE']}</td> <td align='center'>{$r['prod_DESC']}</td> <td align='center'><img src='{$r['prod_IMG']}' width='150' height='150'></td> </tr>";
}
print "</table></center>";
}
function ind_event()
{
print "<br /><br /><center><h3><u><b>Hardware</b></u></h3><br />
<table width=50%><tr> <th>Name</th> <th>Price</th> <th>Description</th> <th>Image</th> </tr>";
$q=mysql_query("SELECT * FROM product WHERE prod_TYPE='Hardware' ORDER BY prod_ID DESC") or die(mysql_error());
while($r=mysql_fetch_array($q))
{
print "<tr> <td align='center'>{$r['prod_NAME']}</td> <td align='center'>\${$r['prod_PRICE']}</td> <td align='center'>{$r['prod_DESC']}</td> <td align='center'><img src='{$r['prod_IMG']}' width='150' height='150'></td> </tr>";
}
print "</table></center>";

}

?>