Minimum length validation with Abide in Foundation

To validate minimum length of an input while using Abide in Foundation Framework. Use the following regular expression “(.){8,}” Where 8 is the number of minimum characters that should be present.
The use of this expression is further explained through the example below. The aim of validation in the example is to have password of minimum 8 characters:

 

Function Reference / get_results – ezSQL

ezSql - get_results

Description

get_results is a method of ezSql Class and it is used to retrieve multiple row results. This function returns the entire query result as an array. Each element of this array corresponds to one row of the query result and like get_row (ezSql), can be an object, an associative array, or a numbered array.

If no matching rows are found, or if there is a database error, the return value will be an empty array. If your $query string is empty, cached result from last query are returned and if you pass an invalid $output_type,nothing will be returned.

Read On…

Method Reference / get_row – ezSQL

function get_row

Description

Use get_row to retrieve a single row from database. If there is more than one row returned by query still this function returns only one row which will be either first row or any row specified through $row_offset variable. This function can return row as an object, an associative array, or as a numerically indexed array.

get_row returns NULL, if no result is found.

Read On…

Get Geolocation in Browser using HTML5

HTML 5 allows obtaining of your website visitor’s Geo location through navigator.geolocation object. To obtain the visitor’s current location, you can call the getCurrentPosition() method. This initiates a request to detect the user’s position. Syntax of getCurrentPosition() method is :

navigator.geolocation.getCurrentPosition(success, error, options)

Read On…