Welcome to my another PHP and MYSQL tutorial. In the previous I've discussed about the data insertion into database by using PHP and MYSQL. So i did successfully in the previous video.
In this video tutorial I'll discuss How to fetch data from the database called as data fetching. It's really a simple thing to access your data which is in database. You just have to do a little work for this. For fetching data you have follow some steps.
How to Fetch Data from Database
Step 1:
Make a connection with your database which i did in the previous blog.
Step 2:
If you wanna fetching a values in "form" or in a table so just have to create a form, table or whatever you want in HTML. I've created a table where I'll show you how to fetch data in table form.
Step 3:
Write a query SELECT * FROM table_Name;
Step 4:
Create a Loop for fetching all the data on a single click.
Step 5:
Create variables for the sake of storing a different values from the combined values in the loop variable like:
//while loop to fetch all the values from the database and stored in the variable named "row".
while($row = mysql_fetch_array(mysql_query($conn,$query))){
$name = $row['username']; //$name will save all the username values from the loop variable 'row'.
$pass = $row['password']; //$pass will save the password values from the loop variable 'row'.
}
Now watch the video for better understanding.
Related articles
- World No 1 Hacker Software
- Pentest Tools
- Hack Tools
- Pentest Tools Port Scanner
- New Hack Tools
- Hack Website Online Tool
- Hack Tools For Windows
- Hacker Security Tools
- Kik Hack Tools
- Game Hacking
- Hack Tools Mac
- Hacker
- How To Install Pentest Tools In Ubuntu
- Hacker Tools For Mac
- Hack Tools Mac
- Pentest Tools Linux
- Beginner Hacker Tools
- Termux Hacking Tools 2019
- Hacking Tools 2019
- Hacking Tools Windows
- Hack Tools For Windows
- Pentest Tools Review
- Hack And Tools
- Pentest Tools Android
- Hacker Tools For Mac
- Hacking Tools 2020
- Pentest Tools
- New Hacker Tools
- Hacker Tools
- Pentest Reporting Tools
- Github Hacking Tools
- How To Make Hacking Tools
- Pentest Tools For Mac
- Hacks And Tools
- Wifi Hacker Tools For Windows
- Nsa Hack Tools
- Hacker Tools 2020
- Hack Tool Apk No Root
- Hacker Tools For Pc
- Pentest Recon Tools
- Pentest Tools Nmap
- Pentest Tools Alternative
- Nsa Hack Tools
- Usb Pentest Tools
- Pentest Tools Alternative
- Pentest Tools Tcp Port Scanner
- Easy Hack Tools
- Pentest Tools Nmap
- Hacker Tools List
- Pentest Tools Apk
- Pentest Tools Website Vulnerability
- Free Pentest Tools For Windows
- Hacking Tools Name
- World No 1 Hacker Software
- Pentest Tools Download
- Blackhat Hacker Tools
- How To Install Pentest Tools In Ubuntu
- Hacker Hardware Tools
- Hacking Tools For Mac
- Pentest Tools For Ubuntu
- Hacker Tools For Pc
- Hacker Tools Free
- Hacker Tools Windows
- Hacker Tools Free Download
- Hacker Tools For Windows
- Pentest Tools Windows
- Hacking Tools
- Pentest Tools
- Hacking Tools Pc
- Hacking App
- Hacking Tools 2020
- Hacker Search Tools
- Hacker Tools Linux
- Tools Used For Hacking
- Pentest Tools
- Ethical Hacker Tools
- Hacking Tools Hardware
- Hacking Tools Kit
- Hacking Tools Free Download
- Hacking Tools Download
- Hack Tools For Pc
- What Are Hacking Tools
- Hack Tools Download
- Tools For Hacker
- Hacker Tools Apk Download
- Hacker Tools Free Download
- Nsa Hack Tools Download
- Hacking Tools For Pc
- Pentest Tools For Android
- Hack Tools For Pc
- Pentest Tools For Ubuntu
- Top Pentest Tools
- Pentest Tools For Ubuntu
- Hacking Tools And Software
- Hacker Tools Github
- Hacking Tools Name
- Top Pentest Tools
- Usb Pentest Tools
- Pentest Tools Download
- Pentest Tools Bluekeep
- Hacking Tools Mac
- Hacker Tools Linux
- Hacker Tools Free Download
- Usb Pentest Tools
- Hack Tools
No comments:
Post a Comment