Installing and configuring Drupal-7.24 on Windows 7 x64 system

Pre-requisites, you need to have wamp (Windows Apache, MySQL and PHP) installed and running in order to quickly setup your site in Drupal. In order for Drupal to work, and to continue with the installation process, you must resolve all issues reported below. For more help with configuring your database server, see the installation handbook. If you are unsure what any of this means you should probably contact your hosting provider. Failed to connect to your database server. The server reports the following message: SQLSTATE[HY000] [1049] Unknown database ‘mydrupal’. Is the database server running? Does the database exist, and have […]

Read more

Integrating PHP into HTML Form pages.

The login pages of a web site are usually HTML forms. The HTML forms will be linked to a script to process the data received via form from the user.   This linking is performed by HTM Form Attribute called  “Action” (HTML <form> action Attribute).  Syntax:  <form action="<scriptname>" method="<post/get>"> Example: Save below content as “Form-Example.php” <form action="login.php" method="post">   First name: <input type="text" name="fname"><br>   Last name: <input type="text" name="lname"><br>   <input type="submit" value="Submit"> </form> The page would look like below form for the end user:   Upon user clicks “Submit” button the respective login.php script gets invoked.  Let’s say you’ve […]

Read more

FIX: SQLSTATE[HY000] [1045] Access denied for user ‘root’@’localhost’ (using password: NO)

Error: SQLSTATE[HY000] [1045] Access denied for user ‘root’@’localhost’ (using password: NO) Scenario: After very first setup of your own wamp/xamp with MySQL DB and updated password for DB root user, you notice that your php code fails to connect/communicate to the mySQL DB with above error.   CAUSE and FIX: This error message indicates that you are attempting to connect/logon to the MySQL with reported user “root” without specifying any password or it’s password value is NULL.   To fix it, you need to provide the appropriate root user password for on your MySQL DB connection string or call.   […]

Read more