If you are looking for free bootstrap admin dashboard templates then check out below 10 best free dashboard templates with latest version of bootstrap and are fully open source which means you can use it for your personal and commercial purpose. Free Bootstrap Admin Dashboard Templates 1. Design Bootstrap template is a free dashboard template […]
Author: viveik
Free Bootstrap Right Sidebar Templates
If you are looking for Free Bootstrap Right Sidebar templates or themes with fully mobile responsive and easy navigation and also with search box options check them below, all below bootstrap templates are fully open source and have creative common rights which means can use on personal and commercial purposes. Check out free bootstrap templates […]
PHP Server Common Codes To Get Values
$_SERVER[“DOCUMENT_ROOT”] === /home/user/www$_SERVER[“SERVER_ADDR”] === 143.34.112.23$_SERVER[‘HTTP_HOST’] === example.com (or with WWW)$_SERVER[“REQUEST_URI”] === /folder1/folder2/yourfile.php?var=blabla#123__FILE__ === /home/user/www/folder1/folder2/yourfile.php —>//p.s. ON WINDOWS SERVERS, instead of / is basename(__FILE__) === yourfile.php__DIR__ === /home/user/www/folder1/folder2 [same: dirname(__FILE__)]$_SERVER[“QUERY_STRING”] === var=blabla#123$_SERVER[“REQUEST_URI”] === /folder1/folder2/yourfile.php?var=blabla#123 parse_url($_SERVER[“REQUEST_URI”], PHP_URL_PATH) === /folder1/folder2/yourfile.php $_SERVER[“PHP_SELF”] === /folder1/folder2/yourfile.php//if “parentfile.php” includes this “yourfile.php”(and inside it are the codes written), and “parentfile.php?a=123” is opened, then$_SERVER[“PHP_SELF”] […]
Export to Excel Using PHP and Mysql
Below simple program will export mysql data values to excel sheet without using any PHP libraries. Export to Excel Using PHP and Mysql Note: IF you get errors or in excel all the data is in one column, then instead t tab space use, comma ‘,’.
How to Start Stop Restart Mysql from Command Line
Restart, Start, Stop MySQL from the Command Line Terminal, OSX, Linux To restart, start or stop MySQL server from the command line, do the following at the shell prompt… Start Stop Restart Mysql Commands Start Mysql on Linux — /etc/init.d/mysqld start Stop Mysql on Linux — /etc/init.d/mysqld stop Restart Mysql on Linux — /etc/init.d/mysqld restart […]
Provisional headers are shown in Google Chrome Browser Debugger
Recently I worked on a PHP webservice project and I saw this Provisional headers are shown in Google chrome browser and Opera browser.I digged some research on Google and find out mixed responses and at last I got it fixed by removing window.print() in script. Check out all the fixed Provisional headers are shown answers […]
Email Verification Confirmation Using PHP Codeigniter
Below is a simple program which shows email verification confirmation using a unique code, implemented in PHP,Mysql, Codeigniter. PHP Codeigniter Email Verification Step 1 :Create a table as shown below with email_verification_code as necessary column: [mysql] CREATE TABLE `users` ( `user_id` int(10) NOT NULL auto_increment, `first_name` varchar(45) NOT NULL, `last_name` varchar(45) NOT NULL, `email_verification_code` varchar(45) […]
Jquery Autocomplete With PHP and Mysql Example
Below is the small example of Jquery autocomplete using PHP and Mysql. search.php
Best way to loop through a PHP mysql Resultset
If you want to loop throuh the mysql result set twice then use below way. $result = mysql_query(“SELECT * FROM my_table”);while($row = mysql_fetch_assoc($result)) {// inside the loop} The problem is, if you want to loop through the same result set again, you will get an error because the internal pointer is currently at the end […]
HTTP Codes Web Page Errors While Browsing
Below are some web page errors you may came/come across while browsing internet. The error ranges are many but below are the ones which will occur mostly. Error 400 – Bad request errorError 401 – unauthorized request errorError 403 – forbidden errorError 404 – Not found errorError 500 -Internal error errorError 501 – Not Implemented […]