Tag «Mysql»

Image preview and upload using PHP

Visitor experience can be improved on an image upload feature.Image preview and upload using PHP Now we will create a form that takes two inputs: the user’s profile picture (image), and their profile detail (text). When the user fills the form and clicks on the upload button, we will use our PHP script to grab …

React CRUD Example with CodeIgniter

Reactjs CRUD

We will see Codeigniter REST + ReactJS CRUD example. We have seen previously Codeigniter REST API examples for GET, POST, PUT and DELETE, but we will see them together. We will use ReactJS as a front-end technology to represent our UI. We can make any CRUD Operation in Codeigniter. In this React CRUD example with CodeIgniter 4 and MySQL, I am using …

How to show Database records in PIE Chart using PHP JQUERY

Today we will see how to make a pie chart of graph design in PHP and javascript. We will use canvas.js for graph design. Make a table in the database:- Table name military_tableĀ  (id, countrye_name, country_budget) Now make a page index.php <?php $conn = mysqli_connect(‘localhost’,’root’,”,’test’); $sql = “SELECT country_name,country_budget FROM military_budget”; $result = mysqli_query($conn, $sql); …