- Joined
- Oct 5, 2010
- Messages
- 38
- Reaction score
- 0
where should i put the links of my download here? please help and thanks in advance...
<?php include('./inc/header.php'); ?>
<h1>Game Download</h1>
<?php
odbc_exec($mssql, 'USE [WEBSITE_DBF]');
$check = odbc_exec($mssql, 'SELECT COUNT(*) as count FROM [web_downloads]');
if(odbc_result($check, 'count') > 0) {
?>
<table style="width: 100%;">
<tr>
<td style="width: 30px;"></td>
<td id="key">Title</td>
<td id="key">Description</td>
<td id="key" style="text-align: center;">Date</td>
</tr>
<?php
$query = odbc_exec($mssql, 'SELECT * FROM [web_downloads] ORDER BY datetime DESC');
while($result = odbc_fetch_array($query)) {
$description = $result['description'];
if(strlen($description) > 40) {
$description = substr($description, 0, 40).'...';
}
echo '<tr>
<td><a href="'.$result['link'].'" class="download"></a></td>
<td>'.$result['title'].'</td>
<td title="'.$result['description'].'">'.$description.'</td>
<td style="text-align: center;">'.date('Y-m-d', strtotime($result['datetime'])).'</td>
</tr>';
}
?>
</table>
<?php
} else {
echo '<div class="fail">Sorry, no downloads available!</div>';
}
?>
<?php include('./inc/footer.php'); ?>
<?php include('./inc/header.php'); ?>
<h1>Game Download</h1>
<?php
odbc_exec($mssql, 'USE [WEBSITE_DBF]');
$check = odbc_exec($mssql, 'SELECT COUNT(*) as count FROM [web_downloads]');
if(odbc_result($check, 'count') > 0) {
?>
<table style="width: 100%;">
<tr>
<td style="width: 30px;"></td>
<td id="key">Title</td>
<td id="key">Description</td>
<td id="key" style="text-align: center;">Date</td>
</tr>
<?php
$query = odbc_exec($mssql, 'SELECT * FROM [web_downloads] ORDER BY datetime DESC');
while($result = odbc_fetch_array($query)) {
$description = $result['description'];
if(strlen($description) > 40) {
$description = substr($description, 0, 40).'...';
}
echo '<tr>
<td><a href="'.$result['link'].'" class="download"></a></td>
<td>'.$result['title'].'</td>
<td title="'.$result['description'].'">'.$description.'</td>
<td style="text-align: center;">'.date('Y-m-d', strtotime($result['datetime'])).'</td>
</tr>';
}
?>
</table>
<?php
} else {
echo '<div class="fail">Sorry, no downloads available!</div>';
}
?>
<?php include('./inc/footer.php'); ?>
Last edited:

