Skip to main content

Posts

Showing posts from May, 2020

How to change Dynamic URL to Static URL in php ?

The purpose of this post is How can change dynamic URL to Static URL in PHP with Example. Below Screenshot there are dynamic URL  Step 1  Create Example.php file in project folder Example.php Hiii this is Example for How to change dynamic URL to static URL in PHP Step 2 Create .htaccess file and put below content in this file RewriteEngine On RewriteRule ^test?$ Example.php After changes and refresh the page and check below result displayed

PHP CRUD with File Uploading Using Ajax

Ajax AJAX stands for  A synchronous  Ja vaScript and  X ML. AJAX is a new technique for creating better, faster, and more interactive web applications with the help of XML, HTML, CSS, and Java Script. The example is below for insert, update, delete and file uploading in PHP. Create files in a project folder like below : - Project     - db.php     - insert.php     - delete.php     - view.php db.php connect_error) { die("connecton failed".$conn->connect_error); } ?> insert.php connect_error) { die("Connection failed: " . $conn->connect_error); } if(isset($_REQUEST['submit'])) { $name = $_REQUEST['name']; $date=date("Y_h_m_s"); $file_get_location = $_FILES['image']['tmp_name']; $file_name = $_FILES['image']['name']; $new_filename=$date.'_'.$file_n...