Below are the list of free bootstrap single page or one page templates and all the templates are responsive and made of bootstrap 3 and are open source, you can use them for your personal and business purpose. Check out below for Free one page bootstrap templates. Enlarge the image for perfect demo. Free Bootstrap […]
Author: viveik
Simple Alert Box on Windows Using VBScript
Copy below code in a notepad and save it as alert.vbs (as all files) X=Msgbox(“Your system is Hacked! Please Contact IT Support Immediately.”,0+3,”Alert!”) Now run alert.vbs to show alert box on your windows machine. Change 0+3 to 0+16 to show different alert box.
Sidebar Floating Share Buttons
SideBar Floating Share Buttons Code Start Below Tweet SideBar Floating Share Buttons Code End
How to Call a PHP Page Using jQuery
You can able to call PHP page/HTML page using jQuery function by including jQuery library. Check the below example to call a PHP file using jQuery function: You can display the PHP page which is called from jQuery function in the current page as below:
How to Get the Current Timezone of Mysql Database
By running below query you can able to get the Current Timezone of the database server. select timediff(now(),convert_tz(now(),@@session.time_zone,’+00:00′));
How to Convert HTML WebPage to PDF Using PHP
Convert a web page into PDF format, download and save into folder as below. Include dompdf_config.inc.php file from the library. Create a folder for saving the PDF file which is generated from the webpage. HTML code to convert on submit: Download dompdf library from the github which is free. Click here to download.
How to Refresh Page OnClick Using Javascript
Click to Add another Staff
How to Add Column to Mysql Table and Auto Increment with Primary Key
Check below on How to Add a Column to Mysql Table with Auto Increment and Primary Key You can achieve it by doing Alter Command: Add Column to Mysql To Modify Column and add Auto Increment with Primary Key Query: ALTER TABLE test MODIFY COLUMN ID INT(10) PRIMARY KEY auto_increment; ALTER TABLE users ADD id […]
How to Get Size of a Database in Mysql
To Get Data Base Size in MB and Free Space in MBSELECT table_schema “dbName”, sum( data_length + index_length ) / 1024 / 1024 “Data Base Size in MB”, sum( data_free )/ 1024 / 1024 “Free Space in MB”FROM information_schema.TABLESGROUP BY table_schema ; To Get Size in GB: SELECT sum(round(((data_length + index_length) / 1024 […]
Get Google Maps API Address based on Address
$url = “http://maps.googleapis.com/maps/api/geocode/json?sensor=false&address=”.urlencode($resident_address); $lat_long = get_object_vars(json_decode(file_get_contents($url)));// pick out what we need (lat,lng)$lat = $lat_long[‘results’][0]->geometry->location->lat;$lng =$lat_long[‘results’][0]->geometry->location->lng; /*echo $lat;echo $lng;*/