in this video
we learn about
the login and logout
system in php
here i am signing in with the
database previously created
i have logged in with
the user name admin and a plane password
after login it displays
welcome massage
and on logged out
it displays the login link
now we get back to the code
here
i am using
sublime text editor
now on this document
i have deleted all
php coding
now its an html login form
i hope you must know all
about html forms and its attributes
now start with
the <?php tag and close it with ?>
between these tags all php
coding will be written
at first start the session
session variable hold
the values stored for
specific variables for entire session
eg. to store a session
for blue color
$_SESSION['color'] ='blue'
i will discuss it in next videos
now connect to the database
using MySQLi query
i am using database
previously created
put three variables inside the mysqli_connect function
host name, user name,and the password
now keep in mind
every step shown here
must make habit to assign variable to each step
now $con hold the connection
now use it as connection in every mysqli_query
select database
mysqli_select_db(connection,db_name)

Không có nhận xét nào:
Đăng nhận xét