To connect to MariaDB, you can use the PDO (PHP Data Objects) or mysqli extension in PHP. Here is an example using PDO:
main.php557 chars23 linesMake sure to replace the values for $host, $dbname, $user, and $password with your own database connection details.
Using mysqli extension, here's an example:
main.php392 chars18 linesHope this helps!
gistlibby LogSnag