Create Dynamic Image Slider using PHP with jQuery

Create Dynamic Image Slider using PHP with jQuery

Today, We want to share with you Create Dynamic Image Slider using PHP with jQuery.
In this post we will show you Create Dynamic Image Slider using PHP with jQuery, hear for Create Dynamic Image Slider using PHP with jQuery we will give you demo and example for implement.
In this post, we will learn about Create Dynamic Image Slider using PHP with jQuery with an example.

LightSlider is The Best Responsive jQuery Image Slider Plugins here in This Post,we can used to Create Dynamic Image Slider using PHP,jQuery – Responsive Image slider.

Table structure for table Name : `subprojectimg`

First of simple Create a table Like Table Name `subprojectimg` and Follwing the Execute This Follwing Script run in SQL phpmyadmin and create table

Read Also:  ASP.NET Disable right click on web page and images using jquery

CREATE TABLE IF NOT EXISTS `subprojectimg` (
  `spmid` int(11) NOT NULL AUTO_INCREMENT,
  `pmid` int(11) NOT NULL,
  `spmtitle` varchar(255) NOT NULL,
  `spmimg` varchar(255) NOT NULL,
  `status` int(11) NOT NULL DEFAULT '1',
  PRIMARY KEY (`spmid`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=35 ;

Dumping data for table Name : `subprojectimg`

Simple Copy This Script and execute in mysql snipset phpmyadmin and insert all rows added.

INSERT INTO `subprojectimg` (`spmid`, `pmid`, `spmtitle`, `spmimg`, `status`) VALUES
(1, 4, 'Pakainfo.com at mr. ch d', '1.jpg', 1),
(2, 4, 'Pakainfo.com at mr. chd', '2.jpg', 1),
(3, 4, 'Pakainfo.com at mr. chd', '3.jpg', 1),
(4, 4, 'Pakainfo.com at mr. chd', 'nature-d.jpg', 1),
(5, 4, 'Pakainfo.com at mr. chd', 'nature-c.jpg', 1),
(6, 4, 'Pakainfo.com at mr. chd', 'nature-b.jpg', 1),
(7, 4, 'Pakainfo.com at mr. chd', 'nature-a.jpg', 1),
(8, 4, 'Pakainfo.com at mr. chd', 'graffiti-b.jpg', 1);

config.php

index.php

<?php

?>
<div class="row">
	<div class="col-md-12">
		<div class="main-slider">
			<ul id="lightSlider">
			
			<li data-thumb="images/thumbs/">
					<img src="images/" alt=""/>
					<h4></h4>
			</li>
		
			</ul>
		</div>
	</div>
</div>

LightSlider For jquery Script

		$(document).ready(function() {
			$('#lightSlider').lightSlider({
			gallery: true,
			item: 1, //per use images no
			loop: true, //using loop
			slideMargin: 0,
			thumbItem: 6, //per slot show images in slider	
			});			
		});
	

View Demo

Read Also:  Laravel Send Email Attachment Tutorial With Example

We hope you get an idea about Create Dynamic Image Slider using PHP with jQuery
We would like to have feedback on my Information blog .
Your valuable any feedback, Good question, Inspirational Quotes, or Motivational comments about this article are always welcome.
If you liked this post, Please don’t forget to share this as Well as Like FaceBook Page.

We hope This Post can help you…….Good Luck!.