List/Grid Tag Archives: PHP
How to Write Your First PHP Code
Under the label PHP you can learn basics, intermediate and advanced programming in PHP. If you are the beginner lets start with your first script in PHP. <html> <head> <title>First PHP Script</title> </head> <body> <?php echo "This is the text using PHP."; ?> </body> </html> In the above example there is a basic structure of HTML. In the body tag I used PHP code. To start…
How to Connect a Database in MySQL Using PHP
This code will allow you to connect a Database in MySQL in PHP programming language. There are basically two ways you want to access your database. One is to your local server other one is online server. Method 1: Via local server This method allows you to connect to your local server <?php //Change your information according to your server $username = "your_username"; $password = "your_password"; $database =…