i need something with php and html separated. when i look around google there is a lot of exmples but they all seems a bit messy.. if anyone knows an easy way to achieve this would be appreciated.
the less messy i could find yet looks like that:
<?php
error_reporting(E_ALL);
ini_set('display_errors', '1');
// If the user is not logged in redirect to the login page...
// Get the total number of records from our table "students".
$total_pages = $mysqli->query('SELECT * FROM random_do
the number of concurrent database connections is only limited by your database server/hosting, and is typically several 100. your script could (but shouldn't) make a dozen connections using both mysqli and PDO at the same time.
the PDO extension is better designed, simpler, and more consistent than the mysqli extension. as an added benefit, works with 12 different database types, so you are not learning a new set of php statements for each database type.
if you had some problem using t