Welcome to My Blog

How To Connect Database With PHP | Cool Interface Software | Tutorial 2

Saturday, 27 May 2023

Travel Dealer


Welcome to my 2nd tutorial of PHP and MYSQL. In the previous video I've discussed How to download and install a server PHP and also How to create databases and How to create tables in the databases in the form of rows and columns.

In this video I've discussed multiple ways to connect database with PHP such as by using variables etc. First of all you have need to install a cool interface software for coding. I suggested you to download any one of them such as Dreamweaver, Notepad++, Sublime Text Editor and Atom etc. I'm using sublime text editor in this series of tutorial.

Syntax of PHP

<?php

//type here the code

?>


How to save the PHP file

You should save your PHP file in the root directory of the server. In XAMPP the "htdocs" is the root directory of the server. In WAMPP "www" is the root directory. Now how to save the file?

Step 1:

Press CTRL + S button to safe the file.

Step 2:

Go to the server location where it has been installed. By default it is installed in Local Disk C. Got C drive.

Step 3:

Go to XAMPP directory.

Step 4:

Go to htdocs diretory.

Step 5:

Save a file there with extension ".php". You can create a different folders for different projects in htdocs directory. So first create the folder in htdocs and then save your files in the folder.

How to Run PHP Script

Step 1:

Open a XAMPP control panel and start Apache and Mysql services.

Step 2:

Open your web browser.

Step 3:

Type localhost/yourFolderName/yourFileName.php and hit enter. For example: localhost/myFolder/index.php.



Related posts


  1. Pentest Tools Kali Linux
  2. Pentest Tools
  3. Pentest Tools Online
  4. Hack Tools Pc
  5. How To Install Pentest Tools In Ubuntu
  6. Hacker
  7. Wifi Hacker Tools For Windows
  8. Hacker Tools For Ios
  9. Hackrf Tools
  10. Pentest Tools Website Vulnerability
  11. Kik Hack Tools
  12. Pentest Tools Download
  13. Hacking Tools And Software
  14. Hacker Search Tools
  15. Hacking Tools
  16. Best Hacking Tools 2019
  17. Hack Rom Tools
  18. Hacker Techniques Tools And Incident Handling
  19. Hack Tools Download
  20. Hack Website Online Tool
  21. Hacker Tools 2020
  22. Best Hacking Tools 2020
  23. Hacker Tools 2020
  24. Hacking Tools For Windows
  25. Bluetooth Hacking Tools Kali
  26. Physical Pentest Tools
  27. Wifi Hacker Tools For Windows
  28. How To Install Pentest Tools In Ubuntu
  29. Hack Tools For Ubuntu
  30. Ethical Hacker Tools
  31. Kik Hack Tools
  32. Top Pentest Tools
  33. Pentest Tools Download
  34. Pentest Tools Kali Linux
  35. Hacking Tools Download
  36. Hack Tool Apk
  37. Hacker Tools Github
  38. Hacking Tools Windows 10
  39. Bluetooth Hacking Tools Kali
  40. Hacker Techniques Tools And Incident Handling
  41. Hacker Tools Linux
  42. Blackhat Hacker Tools
  43. Kik Hack Tools
  44. Hack App
  45. Hack And Tools
  46. Hacking Tools Github
  47. Hacking Tools
  48. Hacking Tools Software
  49. Hack Tools Download
  50. Best Pentesting Tools 2018
  51. Pentest Tools Windows
  52. Pentest Tools Alternative
  53. Pentest Tools For Windows
  54. Pentest Tools
  55. Pentest Tools For Android
  56. Pentest Tools Website Vulnerability
  57. Hacker Tools Github

No comments:

Post a Comment