SELECT NOW(); (OR) SELECT CURDATE(); (OR) SELECT CURRENT_DATE();
Submit a form without submit button
document.formname.submit(); //It will work when we are using single form in a page document.forms[‘formname’].submit(); //It will work when we are using multiple forms // above … Submit a form without submit buttonRead more
Maximum length of a Database name, Table name, Field name in MySQL
Database name: 64 characters Table name: 64 characters Column name: 64 characters
Some useful websites to learn PHP
Here are some links for PHP tutorials. http://www.w3schools.com/php/default.asp http://www.php.net/manual/en/getting-started.php https://www.geeksforgeeks.org/php-tutorial/ https://www.tutorialrepublic.com/php-tutorial/ https://www.educative.io/blog/php-tutorial-from-scratch https://www.freecodecamp.org/news/the-php-handbook/ http://www.tizag.com/phpT/ https://www.homeandlearn.co.uk/php/php.html https://www.simplilearn.com/tutorials/php-tutorial/hello-world-in-php
Create simple wordpress widget
Take new php file then copy the below code to file and put the file in plugins folder and activate the plugin Now you can … Create simple wordpress widgetRead more
wordpress admin menu page
/* Plugin Name: Simple Admin Menu */ add_action(‘admin_menu’, ‘mt_add_pages’); function mt_add_pages() { add_menu_page(‘Main Page’,’Main Page’, ‘manage_options’, ‘main-page-handle’, ‘main_page’ ); add_submenu_page(‘main-page-handle’,’Sub Page1′, ‘Sub Page1’, ‘manage_options’, … wordpress admin menu pageRead more
Enable Htaccess in localhost
Open AppSer installed folder in that find conf folder and find httpd.conf file. In that file find below line(LoadModule rewrite_module modules/mod_rewrite.so) For Example In Windows: … Enable Htaccess in localhostRead more
Enable curl in php localhost Apache
Open your php.ini file and found the line ‘extension=php_curl.dll’ and remove the semicolon (; Here semicolon is comment). After that save the file and restart … Enable curl in php localhost ApacheRead more
increase execution time in php
We can increase it in different ways based on server Method 1: It will work in most servers. Add this function in top of page.ini_set(‘max_execution_time’, … increase execution time in phpRead more