<?
if(empty($start))
$start = 0;
Hey there: My code is as follows
<?
if(empty($start))
$start = 0;
$db = mysql_connect('localhost','user','pass');
mysql_select_db("db", $db);
$select = "SELECT count(name) as total from divx";
$res = mysql_db_query("DB", $select);
$count = mysql_fetch_object($res);
$pages = ceil($count->total / 100);
for($i = 1; $i < $pages+1; $i++)
{
if($i != 1)
{
echo " | ";
}
echo "<a href=\"$PHP_SELF?$QUERY_STRING&start=" . $i 100 . "\">$i</a>";
}
$sql = "SELECT FROM divx".(isset($sort) ? " ORDER BY $sort;" : " ORDER BY name;" limit $start, 100);
Im getting parse errors on the 'echo "<a href=\"$PHP_SELF?$.....' line. Can you see something wrong?
Cheers