របៀបបង្កើត ទម្រង់ Login និង Logout ដោយប្រើប្រាស់ PHP ជាមួយ MySql

in cambodia •  6 years ago 

how-to-create-form-login-and-logout-php-with-mysql.jpg

អត្ថបទនេះនឹង និយាយអំពីរបៀបបង្កើតទម្រង់ Login និង Logout ដោយប្រើប្រាស់ ភាសា php ជាមួយ Mysql ។

របៀបបង្កើតទម្រង់ Login និង Logout ដោយប្រើប្រាស់ ភាសា php ជាមួយ Mysql ។

១) ធ្វើការបង្កើត Database និង ដាក់ឈ្មោះអោយ Database ព្រមទាំងបង្កើត Table បន្ថែម Field ទៅអោយ Table បន្ទាប់មកបញ្ចូលនិន្នន័យ

សូមមើលឧទាហរណ៍៖

1-10.jpg

២) ធ្វើការបង្កើតទម្រង់ Login ដោយធ្វើការសរសេរកូដដូចខាងក្រោម៖

index.php

pdo_login.jpg
pdo_login1.jpg
pdo_login2.jpg

file login_success.php

new_login_success.jpg

file logout.php

logout.jpg

សូមមើលលទ្ធផល៖

username: admin

password: 123

ប្រសិនបើយើងមិនបានបញ្ចូល Username and Password នឹងចេញលទ្ធផល៖

if_not_input_usename_and_password.jpg

បន្ទាប់ពីយើងចុច Login នឹងចេញលទ្ធផល៖

after_we_login_success.jpg

ពេលដែលយើងចុច Logout វានឹងចេញទៅកាន់ ទំព័រ Login វិញ

after_we_logout.jpg

ប្រភពដើម

Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!
Sort Order:  

Congratulations @techfree! You have completed the following achievement on Steemit and have been rewarded with new badge(s) :

Award for the number of posts published

Click on the badge to view your Board of Honor.
If you no longer want to receive notifications, reply to this comment with the word STOP

To support your work, I also upvoted your post!

Do you like SteemitBoard's project? Then Vote for its witness and get one more award!

Congratulations @techfree! You have received a personal award!

1 Year on Steemit
Click on the badge to view your Board of Honor.

Do not miss the last post from @steemitboard:

SteemFest3 and SteemitBoard - Meet the Steemians Contest

Support SteemitBoard's project! Vote for its witness and get one more award!

Congratulations @techfree! You received a personal award!

Happy Birthday! - You are on the Steem blockchain for 2 years!

You can view your badges on your Steem Board and compare to others on the Steem Ranking

Do not miss the last post from @steemitboard:

SteemFest Meet The Stemians Contest - The mysterious rule revealed
Vote for @Steemitboard as a witness to get one more award and increased upvotes!