What do you want to save?
Add Code snippet
New code examples
-
PHP 2022-03-17 06:35:44
download file zip from subdirectory using php
<?php // Create ZIP file if(isset($_POST['create'])){ $zip = new ZipArchive(); $filename = "./myzipfile.zip"; if ($zip->open($filename, ZipArchive::CREATE)!==TRUE) { exit("cannot open <$filename>\n"); } $di... Add solution -
-
Javascript 2022-03-15 15:15:11
wordpress ajax url
<?php add_action( 'wp_footer', 'my_ajax_without_file' ); function my_ajax_without_file() { ?> <script type="text/javascript" > jQuery(document).ready(function($) { ajaxurl = '<?php echo admin_url( 'admin-ajax.ph... Add solution -
PHP 2022-03-03 06:50:27
form submit self php isset
if(isset($_POST['submit']){ //Your Code Here } Add solution -
Other 2022-03-03 01:35:14
code for searching and displaying data database
<?php // (A) DATABASE CONFIG - CHANGE TO YOUR OWN! define('DB_HOST', 'localhost'); define('DB_NAME', 'test'); define('DB_CHARSET', 'utf8'); define('DB_USER', 'root'); define('DB_PASSWORD', ''); // (B) CONNECT TO DATABASE try { $pdo = new PDO( &q... Add solution -
PHP 2022-03-02 10:05:02
basic code for file upload in php
//This is the minimal code for an image upload for first time learners //html portion <!DOCTYPE html> <html> <head> <title>ImageUpload</title> </head> <body> <form action="upload.php" method="p... Add solution