You signed in with another tab or window.Reload to refresh your session.You signed out in another tab or window.Reload to refresh your session.You switched accounts on another tab or window.Reload to refresh your session.Dismiss alert
Representational state transfer (REST) is a software architectural that seperates models, views and controller component and interconnectes them. it is a client-server architecture.
Project Overview
This project is created for getting simple knowledge of php with MVC framework.
Project includes PHP as a backend language and MySql database.
Project includes email Authentication and CRUD operation on different records.
Connecting to MySql using PHP
class Model {protected$connection ="";protected$servername="localhost";protected$username="root";protected$password="";// your mysql database passwordprotected$dbname="";// database name// connecting with databasefunction__construct() {mysqli_report(MYSQLI_REPORT_STRICT);try {$this->connection =newmysqli($this->servername,$this->username,$this->password,$this->dbname); }catch(Exception$e) {echo"Connection to database is failed".$e->getMessage();exit; } }}