Hi,
I have this code:
<?PHP
require ("connect.php");
//$db_handle = mysql_connect($server, $user_name, $password); =>$connect
$db_found = mysql_select_db($_mysql_db, $connect);
if ($db_found) {
$SQL = "SELECT * FROM cheats";
$result = mysql_query($SQL);
$i=0;
while ($db_field = mysql_fetch_assoc($result))
{
if($i%2===0)
{
$mesaj="<li><a href=\"{$db_field['Image']}\" class=\"pirobox\" title=\"{$db_field['Titlu']}\"><img src=\"{$db_field['Image']}\"/></a><p>{$db_field['Content']}</p><div class=\"button\"><pre><a href=\"#\">Read more</a> <a href=\"{$db_field['Download']}\">Download</a></pre></div></li>";
print ("$mesaj");
}
else
{
$mesaj="<li class=\"odd\"><a href=\"{$db_field['Image']}\" class=\"pirobox\" title=\"{$db_field['Titlu']}\"><img src=\"{$db_field['Image']}\"/></a><p>{$db_field['Content']}</p><div class=\"button\"><pre><a href=\"#\">Read More</a> <a href=\"{$db_field['Download']}\">Download</a></pre></div></li>";
print ("$mesaj");
}
$i++;
}
mysql_close($connect);
}
else {
print "Database NOT Found ";
mysql_close($connect);
}
?>
That takes the info from database and list them.
Now i want to make it create another page after a number of elements .
I have no ideea how could i do this please some help. I'm just a beginer.