Submit Search
Upload
Ebookl membuat login php7+mysqli
•
0 likes
•
17 views
SMK - Statens Museum for Kunst
Follow
Ebookl membuat login php7+mysqli
Read less
Read more
Technology
Report
Share
Report
Share
1 of 6
Download now
Download to read offline
Recommended
Prepare your metadata - Markdown demo
Prepare your metadata - Markdown demo
PACKED vzw
Desain grafis-x-3
Desain grafis-x-3
SMK - Statens Museum for Kunst
Kompetensi dasar 3.5 menerapkan prosedur scanning gambar ilustrasiteks dalam ...
Kompetensi dasar 3.5 menerapkan prosedur scanning gambar ilustrasiteks dalam ...
SMK - Statens Museum for Kunst
Kompetensi dasar 3.4 mendiskusikan berbagai format
Kompetensi dasar 3.4 mendiskusikan berbagai format
SMK - Statens Museum for Kunst
Kompetensi dasar 3.3 Dasar Desain Grafis
Kompetensi dasar 3.3 Dasar Desain Grafis
SMK - Statens Museum for Kunst
Kompetensi dasar 3.2 Dasar Desain Grafis
Kompetensi dasar 3.2 Dasar Desain Grafis
SMK - Statens Museum for Kunst
Kompetensi dasar 3.1 Dasar Desain Grafis
Kompetensi dasar 3.1 Dasar Desain Grafis
SMK - Statens Museum for Kunst
Crud php7 mysq li + bootstrap
Crud php7 mysq li + bootstrap
SMK - Statens Museum for Kunst
Recommended
Prepare your metadata - Markdown demo
Prepare your metadata - Markdown demo
PACKED vzw
Desain grafis-x-3
Desain grafis-x-3
SMK - Statens Museum for Kunst
Kompetensi dasar 3.5 menerapkan prosedur scanning gambar ilustrasiteks dalam ...
Kompetensi dasar 3.5 menerapkan prosedur scanning gambar ilustrasiteks dalam ...
SMK - Statens Museum for Kunst
Kompetensi dasar 3.4 mendiskusikan berbagai format
Kompetensi dasar 3.4 mendiskusikan berbagai format
SMK - Statens Museum for Kunst
Kompetensi dasar 3.3 Dasar Desain Grafis
Kompetensi dasar 3.3 Dasar Desain Grafis
SMK - Statens Museum for Kunst
Kompetensi dasar 3.2 Dasar Desain Grafis
Kompetensi dasar 3.2 Dasar Desain Grafis
SMK - Statens Museum for Kunst
Kompetensi dasar 3.1 Dasar Desain Grafis
Kompetensi dasar 3.1 Dasar Desain Grafis
SMK - Statens Museum for Kunst
Crud php7 mysq li + bootstrap
Crud php7 mysq li + bootstrap
SMK - Statens Museum for Kunst
2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
Marius Sescu
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
Expeed Software
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
Pixeldarts
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
ThinkNow
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
marketingartwork
Skeleton Culture Code
Skeleton Culture Code
Skeleton Technologies
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
Neil Kimberley
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
contently
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
Albert Qian
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Kurio // The Social Media Age(ncy)
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
Search Engine Journal
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
SpeakerHub
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
Clark Boyd
Getting into the tech field. what next
Getting into the tech field. what next
Tessa Mero
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Lily Ray
How to have difficult conversations
How to have difficult conversations
Rajiv Jayarajah, MAppComm, ACC
Introduction to Data Science
Introduction to Data Science
Christy Abraham Joy
Time Management & Productivity - Best Practices
Time Management & Productivity - Best Practices
Vit Horky
The six step guide to practical project management
The six step guide to practical project management
MindGenius
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
RachelPearson36
More Related Content
Featured
2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
Marius Sescu
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
Expeed Software
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
Pixeldarts
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
ThinkNow
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
marketingartwork
Skeleton Culture Code
Skeleton Culture Code
Skeleton Technologies
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
Neil Kimberley
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
contently
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
Albert Qian
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Kurio // The Social Media Age(ncy)
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
Search Engine Journal
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
SpeakerHub
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
Clark Boyd
Getting into the tech field. what next
Getting into the tech field. what next
Tessa Mero
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Lily Ray
How to have difficult conversations
How to have difficult conversations
Rajiv Jayarajah, MAppComm, ACC
Introduction to Data Science
Introduction to Data Science
Christy Abraham Joy
Time Management & Productivity - Best Practices
Time Management & Productivity - Best Practices
Vit Horky
The six step guide to practical project management
The six step guide to practical project management
MindGenius
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
RachelPearson36
Featured
(20)
2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
Skeleton Culture Code
Skeleton Culture Code
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
Getting into the tech field. what next
Getting into the tech field. what next
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
How to have difficult conversations
How to have difficult conversations
Introduction to Data Science
Introduction to Data Science
Time Management & Productivity - Best Practices
Time Management & Productivity - Best Practices
The six step guide to practical project management
The six step guide to practical project management
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Ebookl membuat login php7+mysqli
1.
Membuat halaman login dengan
PHP7 dan Mysqli
2.
1. buat database
dengannamaakademikatau digabungdengan database lain 2. buat tabeldengannama admin 3. tambahkandata 4. buat folderdidalam htdochdengannama login 5. buat file dengannamakoneksi.php <?php $koneksi= mysqli_connect("localhost","root","","akademik1"); // Checkconnection if (mysqli_connect_errno()){ echo"Koneksidatabase gagal : " . mysqli_connect_error(); } ?> 6. buat file di sublimtextdengannamaindex.phpuntuk halamanlogin 7. ketikkodingandibawah untukhalaman login <html> <head> <title>Bootstrap</title> </head> <body> <h1>InputLogin</h1> <formmethod="post"action="cek_login.php"> Username :<inputtype="text"name="username"><br> Password:<inputtype="password"name="password"><br> <inputtype="submit"value="Login"> </form> </body> </html>
3.
8. running: 9. buat
file dengannamacek_login.php ketikkodingandibawahini: <?php // mengaktifkansessionphp session_start(); // menghubungkandengankoneksi include 'koneksi.php'; // menangkapdatayangdikirim dari form $username = $_POST['username']; $password= $_POST['password']; // menyeleksidataadmin denganusername danpasswordyangsesuai $data = mysqli_query($koneksi,"select* fromadminwhere username='$username'andpassword='$password'"); // menghitungjumlahdatayang ditemukan $cek = mysqli_num_rows($data); if($cek> 0){ $_SESSION['username'] = $username; $_SESSION['status'] = "login"; header("location:admin/index.php"); }else{ header("location:index.php?pesan=gagal"); } ?>
4.
10. buat folderdengannamaadmin 11.
buat file didalam folderadmin denganindex.php 12. ketikkodingandibawah ini <!DOCTYPEhtml> <html> <head> <title> Admin</title> </head> <body> <h2>HAdmin</h2> <br/> <!-- cekapakahsudah login --> <?php session_start(); if($_SESSION['status']!="login"){ header("location:../index.php?pesan=belum_login"); } ?> <h4>Selamatdatang,<?phpecho$_SESSION['username'];?>!andatelah login.</h4> <?php include 'data-user.php'; ?> <br/> <br/> <a href="logout.php">LOGOUT</a> </body> </html>
5.
13. buat file
dengannamalogout.php <?php // mengaktifkansession session_start(); // menghapussemuasession session_destroy(); // mengalihkanhalamansambil mengirimpesanlogout header("location:../index.php?pesan=logout"); ?> 14. running: 15. klik login jika berhasilmasuk ke halaman admin
6.
16. buat file
didalam folderadmin dengannamadata-user.phpuntuktampildata user 17. ketikkodingan dibawah ini: <!DOCTYPEhtml> <html> <head> <title>data-user</title> </head> <body> <table border="1"> <tr> <th>No</th> <th>username</th> </tr> <?php include '../koneksi.php'; $no=1; $data = mysqli_query($koneksi,"select* fromadmin"); while ($d= mysqli_fetch_array($data)) { ?> <tr> <td><?phpecho$no++;?></td> <td><?phpecho$d['username'];?></td> </tr> <?php } ?> </table> </body> </html> 18. running: 19. tambahtampilan denganframeworkbootstrap
Download now