What do you want to save?
Add Code snippet
New code examples
-
PHP 2022-02-02 23:21:02
php form not reading from database
<?php // Get the assignment data $proj_id = filter_input(INPUT_POST, 'proj_id'); $ass_num = filter_input(INPUT_POST, 'ass_num', FILTER_VALIDATE_INT); $charge = filter_input(INPUT_POST, 'charge', FILTER_VALIDATE_FLOAT); $chg_hr = filter_input(INPUT_POS... Add solution -
PHP 2022-02-02 21:46:25
wordpress show notice only on plugin page
function general_admin_notice(){ global $pagenow; if ( $pagenow == 'options-general.php' ) { echo '<div class="notice notice-warning is-dismissib... Add solution -
PHP 2022-01-31 09:05:30
add_meta_box
/** * Calls the class on the post edit screen. */ function call_someClass() { new someClass(); } if ( is_admin() ) { add_action( 'load-post.php', 'call_someClass' )... Add solution -
Other 2022-01-26 00:05:51
php connection file
<?php /** * A class file to connect to database */ class DB_CONNECT { // constructor function __construct() { // connecting to dat... Add solution