Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- include('log.php');
- $query = "SELECT * FROM files";
- $result = mysql_query($query) or die('Query failed: ' . mysql_error());
- $count = 0;
- while ($row = mysql_fetch_array($result, MYSQL_BOTH)) {
- $td .= '<td>' . $row['file'] . $row['ext'] . '</td>;
- $count++;
- if($count == 0){
- $string .= '<tr>'.$td;
- }
- elseif($count == 4){
- $string .= $td.'</tr>';
- $count = 0;
- }
- else{
- $string .= $td;
- }
- }
- echo '
- <table>
- '.$string.'
- </table>';
- mysql_close($lnk);
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement