Presentation is loading. Please wait.

Presentation is loading. Please wait.

PHP SQL. Connection code:- mysql_connect("server", "username", "password"); Connect to the Database Server with the authorised user and password. Eg $connect.

Similar presentations


Presentation on theme: "PHP SQL. Connection code:- mysql_connect("server", "username", "password"); Connect to the Database Server with the authorised user and password. Eg $connect."— Presentation transcript:

1 PHP SQL

2 Connection code:- mysql_connect("server", "username", "password"); Connect to the Database Server with the authorised user and password. Eg $connect = mysql_connect("localhost","root","") or die("Cannot Connect"); localhost server name root username password die display error message when cannot connect

4 PHP SQL mysql_query('TYPE_HERE_YOUR_MYSQL_QUERY') This function is used to run specific queries on our database Eg $query= mysql_query("select * From login_table WHERE username='$username'"); Login_table table name

5 PHP SQL $numrows = mysql_num_rows($query); Count no of row that satisfies the query

6 PHP SQL Login page User name Password

7 PHP SQL 'login.php page

8 PHP SQL

9 MySQL


Download ppt "PHP SQL. Connection code:- mysql_connect("server", "username", "password"); Connect to the Database Server with the authorised user and password. Eg $connect."

Similar presentations


Ads by Google