Posts

Showing posts from June, 2018

How to added different content in same model box of bootstrap.

Image
Hi guy's Today I discuss with you that how to load your different content in the same model box with the help of PHP and javascript so let's get started now. 1. Firstly Create a database.     A. Start the Wamp server.     B. Type localhost/PHPMyAdmin in browser URL.     C. Create a new database.     D. Create a new table in this database.     E. Insert Some rows manually. 2. After that Create a file of demo.php name and write up some code now <?php //Connect database. $mysqli = new mysqli('localhost', 'root', '', 'dbname'); if (isset($_GET['id'])) { $id = addslashes(trim($_GET['id']));  //get id $query = $mysqli->query("select * from data where sno = ".(int)$id); //select table $row = $query->fetch_assoc(); //Fetch rows echo json_encode($row); // return json }else{  ?> <html> <head> <title>Your title</title> <link rel="stylesheet" href=...