I have got them because it the order of commands was wrong for things you are doing, I have enclosed right order for them. Try it and try to find the difference.
Now I found that you are doing both SELECT statements from the same table, why it is so ?
Zdenek ?
<?php
# Get Database Details
include 'conf_global.php';
# Connect to MySQL Server
$connect = mysql_connect($INFO['sql_host'],$INFO['sql_user'],
$INFO['sql_pass']) or die("Cannot connect to MySQL server.");
# Select Database
mysql_select_db($INFO['sql_database'],$connect) or die("Cannot connect to database.");
# Set regular query
$regularsql = "SELECT * FROM ibf_clips";
# Regular Query
$regularresult = mysql_query($regularsql,$connect) or die("Cannot perform regular query.");
# Set object in array
while ($regularrow = mysql_fetch_array($regularresult))
{
# Rename Primary Key
$id = $regularrow[ClipID];
?>
<table width="75%" border="0" align="center">
<tr>
<td><?php echo "<a href='{$regularrow[Filename]}'>{$regularrow[Name]}</a>"; ?></td>
<td><?php echo "$regularrow[Size] KB"; ?></td>
<td>
<?php
# Set object query
$objectsql = "SELECT `Preview` FROM `ibf_clips` WHERE `ClipID` = '".$id."'";
# Object Query
$objectresult = mysql_query($objectsql,$connect) or die("Cannot perform object query.");
while ($objectrow = mysql_fetch_object($objectresult))
{
# Display Object
echo $objectrow->Preview;
}
# Free Result for Object Query
mysql_free_result($objectresult);
?>
</td>
</tr>
</table>
<?php
}
?>