“Go Back” Button
Input button with inline JavaScript
<input type="button" value="Go Back!" onclick="history.back(-1)" />
PHP solution for the Back Button
<?php | |
// Show Name and Code as Text using Laravel Lists method, | |
// this array of data will be passed as value to prepate HTML Select Dropdown | |
$institutes = Institute::select(DB::raw("CONCAT(name,' (', code, ')') AS text, id"))->lists('text', 'id')->take(5); |
# Add this line at the very first line | |
AddType application/x-httpd-php70 .php |
# For directories only do this. | |
find . -type d -exec chmod 755 {} \; | |
# For files only do this. | |
find . -type f -exec chmod 644 {} \; |
<?php | |
/* | |
* The following function will create a PDO connection form PHP. | |
* It sovles the issue of inserting the Unicode Characters. | |
*/ | |
function connect_db() { | |
$servername = "localhost"; | |
$db_username = "root"; | |
$db_password = "root"; |
“Go Back” Button
Input button with inline JavaScript
<input type="button" value="Go Back!" onclick="history.back(-1)" />
PHP solution for the Back Button
php composer.phar dump-autoload
or just use
composer dump-autoload
git fetch --all
git reset --hard origin/master
Checkout the branch
git checkout Branch_01
Then merge:
git merge origin/master
Then push:
git push origin master
/* | |
* MY_DATABASE_NAME will be replaced by the name of your database | |
* MY_TABLE_NAME will be repaced by the name of your database table | |
*/ | |
SELECT | |
`COLUMN_NAME` | |
FROM | |
`INFORMATION_SCHEMA`.`COLUMNS` | |
WHERE |