31/5/23

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


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 Bluekeep
  2. Hacker Hardware Tools
  3. Pentest Tools Nmap
  4. Hacking Tools Online
  5. Hacker Tools
  6. Hacker Tools List
  7. Hak5 Tools
  8. Hacker Tools Apk
  9. How To Make Hacking Tools
  10. Hack Tools For Windows
  11. Pentest Recon Tools
  12. Android Hack Tools Github
  13. Hacking Tools For Mac
  14. Hacking Tools Name
  15. Hacking Tools Mac
  16. Easy Hack Tools
  17. How To Make Hacking Tools
  18. Hacking Tools For Mac
  19. Hacking Apps
  20. Pentest Tools Kali Linux
  21. Hacking Tools Windows 10
  22. Hacking App
  23. Hacking Tools Name
  24. Physical Pentest Tools
  25. Hacking Tools For Windows
  26. Hacker Techniques Tools And Incident Handling
  27. Pentest Tools Android
  28. Hacker Security Tools
  29. Hack Rom Tools
  30. Free Pentest Tools For Windows
  31. Hacking Apps
  32. Hackers Toolbox
  33. Hacking Tools Mac
  34. How To Hack
  35. Hacker Tools Linux
  36. Hacking Tools For Beginners
  37. Hacking Tools And Software
  38. Hack Apps
  39. World No 1 Hacker Software
  40. Hack Tools Pc
  41. How To Install Pentest Tools In Ubuntu
  42. Hacking Tools Windows 10
  43. Hacker
  44. Hack App
  45. Pentest Tools Nmap
  46. Pentest Tools Nmap
  47. Pentest Tools Nmap
  48. Pentest Tools For Windows
  49. Hacker
  50. Hack Tools For Games
  51. Hacking Tools Windows 10
  52. Pentest Tools Open Source
  53. Hacking Tools And Software
  54. Tools 4 Hack
  55. Pentest Tools Find Subdomains
  56. Hacker Tools 2019
  57. Pentest Tools Alternative
  58. What Is Hacking Tools
  59. Hacker Tools For Ios
  60. Hacker Tools
  61. Hacker Tools Online
  62. Pentest Tools For Mac
  63. Pentest Tools Alternative
  64. How To Make Hacking Tools
  65. How To Make Hacking Tools
  66. Hacking Tools Online
  67. Pentest Tools Open Source
  68. Hacking Tools Pc
  69. Pentest Tools Framework
  70. Hacker Tools 2019
  71. Hacking Tools Windows 10
  72. Hacking Tools For Windows 7
  73. Termux Hacking Tools 2019
  74. Hacker Tools Linux
  75. Pentest Tools Github
  76. Hacking Tools
  77. Hacking Tools Software
  78. Install Pentest Tools Ubuntu
  79. Hack Tools
  80. Hacker Tools Free Download
  81. Hacker Tools Linux

No hay comentarios:

Publicar un comentario