ဧည္႔စရင္း


hit counter

Sunday, January 28, 2024

How To Fetch Data From The Database | Tutorial 4


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 news


  1. Physical Pentest Tools
  2. Beginner Hacker Tools
  3. Game Hacking
  4. Pentest Tools For Windows
  5. Hacking Tools Kit
  6. Hacker Security Tools
  7. Hacker Tools Free Download
  8. Hacking Tools Usb
  9. Pentest Tools List
  10. Hacker
  11. Hacker Tools Mac
  12. Top Pentest Tools
  13. Pentest Tools Framework
  14. Hacking App
  15. Hacking Tools Kit
  16. Hacking Tools Windows
  17. Hacker Tools Github
  18. Hacking Tools Pc
  19. Pentest Tools Website
  20. Hacking Apps
  21. Pentest Tools For Windows
  22. Pentest Tools Android
  23. Hacking Tools For Mac
  24. Hack Tools
  25. Kik Hack Tools
  26. Hacker Tools Software
  27. Hacker Tools 2020
  28. Hacking Tools Online
  29. Hacker Tools List
  30. Hack Tools
  31. Wifi Hacker Tools For Windows
  32. Tools For Hacker
  33. Hacker Tools
  34. Hack App
  35. Beginner Hacker Tools
  36. Pentest Tools Android
  37. Hack Tool Apk
  38. Hacker Techniques Tools And Incident Handling
  39. Hack Apps
  40. Hacker Tools
  41. Hacking Tools For Pc
  42. Hack Tool Apk No Root
  43. Hacking Tools For Kali Linux
  44. What Is Hacking Tools
  45. Hack Tools Mac
  46. Pentest Tools Free
  47. Hacking Tools Github
  48. Github Hacking Tools
  49. Termux Hacking Tools 2019
  50. Hacker Tools Online
  51. Hacking Tools For Beginners
  52. Nsa Hack Tools
  53. Hacker Tools Free
  54. Hacker Tools Free Download
  55. Pentest Tools For Ubuntu
  56. Pentest Tools Linux
  57. Hackers Toolbox
  58. Pentest Box Tools Download
  59. Hacker Search Tools
  60. Hacking Tools For Windows Free Download
  61. Hacks And Tools
  62. Hack Apps

No comments: