I cannot get this table to work even though i hav eit working PERFECTLY in 3 other instances, now what i dont get is it seems to be a connection issue between the database and the form, now that makes some sense to me. What doesnt make sense is when i do the exact solution to connect it to the database, it doesnt work at all. what gives!
<?php mysql_select_db('numbers', mysql_connect('localhost','root',''))or die(mysql_error());?>
<html>
<link href="css/bootstrap.css" rel="stylesheet" type="text/css" media="screen">
<link rel="stylesheet" type="text/css" href="css/DT_bootstrap.css">
<script src="js/jquery.js" type="text/javascript"></script>
<script src="js/bootstrap.js" type="text/javascript"></script>
<script type="text/javascript" charset="utf-8" language="javascript" src="js/jquery.dataTables.js"></script>
<script type="text/javascript" charset="utf-8" language="javascript" src="js/DT_bootstrap.js"></script>
<form method="post">
<div class="row-fluid">
<div class="span12">
<div class="container">
<table cellpadding="0" cellspacing="0" border="0" class="table table-striped table-bordered" id="example">
<div class="alert alert-info">
<center>
<strong><i class="icon-user icon-large"></i> Uploaded Files</strong>
</center>
</div>
<thead>
<tr>
<th>File Name</th>
<th>Upload Date</th>
<th>Upload Time</th>
</tr>
</thead>
<tbody>
<?php
$query=mysql_query("select * from upfiles")or die(mysql_error());
while($row=mysql_fetch_array($query)){
$id=$row['id'];
?>
<tr>
<td><?php echo $row['filename'] ?></td>
<td><?php echo $row['update'] ?></td>
<td><?php echo $row['uptime'] ?></td>
</tr>
<?php } ?>
</tbody>
</table>
</div>
</div>
</div>
</form>
</html>
here is my table, why isnt it connecting to the database??? why is this different while the others are exactly alike and they work fine?