Problems & Solutions

1.User authentication in PHP and MySQL

Do you want
to build a secure authentication system in PHP? Then try this sample php code…

To use this you have to install php_mysql module on your server.


    function connect_db($database, $db_user, $db_password,

        $host =‘localhost’, $port = NULL, $die = false) {
    // Returns a MySQL link identifier (handle) on success
    // Returns false or dies() on error depending on the setting of parameter $die
    // Parameter $die configures error handling, setting it any non-false value will die() on error
    // Parameters $host, $port and $die have sensible defaults and are not usually required


2. Highlight source Code of your project to a reader using PHP builtin functions.

3.Create a Simple Calculator in PHP

Simple Calculator in PHP

Calculator using PHP


Leave a Reply

Please log in using one of these methods to post your comment: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s