MYSQL basic for command line Part Two

Ok lets start with Part Twoâ€ĶIn part one you got enough information how to start with SQL command line. So keep walking and try out other major basic stuff of SQL. I am providing...

MYSQL basic for command line Part One

For a beginner there is a list of all basic mysql commands. If you are working on command prompt or shell then you should have to learn these basics. I am listing some of basic not...

MySqli Connection Class

class Db_Mysqli { static $hostname; static $username; static $password; static $port; static $database; static $connection; /** * * @param String $hostname * @param String $username...

Google map with address in info window

Google provide lots of easy method to integrate map in your HTML or php. Here i am trying just to explain a simple method by which you can pass address at the time of initialization...

jquery validation with error container

This based on standard jquery validate plugin. If you want to display all error in one container on your html page Create a Html form and a error container div. For example <div...

Add or Remove Dynamic Rows in HTML table

To add or remove html row here i am explaining with simple javascript and html. We can use Jquery and other stuff but it’s just to clear out basic concept by this you can...

Mysql command line import-export single table

Go to terminal window To export type following command “mysqldump -u USERNAME -p dbname tableName > tableName.sql” Here mysqldump           is default mysql command...

Generate Random password with length and strength

We generally need a random password string for different purpose. Here i am sharing a simple php function to generate random password with user specific length. User can pass length...

Delete recursive directory in a folder

This is a simple function using php in built “unlink” function. I am using “deleteRootToo” parameter to delete root directory holding all sub directories....

Function to prevent string break in MySql insert

Mostly we used normal insert MySQL query, but in the same time if user inserted special characters then to prevent this we can use normal php function. Below is the example of...