MariaDB – PHP Syntax

0
708

PHP gives a choice of capacities to working with the MySQL database. These capacities perform errands like getting to it or performing operations, and they are completely good with MariaDB. Basically call these capacities as you would call some other PHP work.

The PHP functions you will use for MariaDB conform to the following format −

mysql_function(value,value,...);

mysqli_connect($connect);
mysqli_query($connect,"SQL statement");
<body>
      <?php
         $connect = mysql_function(v1, [v1,...]);
      
         if( !$connect) {
            die ( "Error: Error message here" );
         }
         // MariaDB or PHP Statements
      ?>
   </body>