Note that there are some explanatory texts on larger screens.

plurals
  1. POjson database get image setting data for json using while loop carousel type jquery json
    primarykey
    data
    text
    <p>i have an problem where can i get the jquery code for this? i have a database with image i want a jquery like this to output in my website </p> <p>i will make a slider that will output like that</p> <p>it will give me a slide that gives me that output i already have a database and php code that is working </p> <p><img src="https://i.stack.imgur.com/ujajm.png" alt="australia"></p> <p>this is an australian government for missing person and our site is like this i want a jquery like this but i don't have the code of the original to do that</p> <p>missingpersons australia is the link below i can't post here the link because it violate the rules of posting links :D</p> <p>tried</p> <p>jquery from search,div,table to output basic jquery don't know advance commands for jquery</p> <p>tried this link the only problem is the while loop for the data</p> <blockquote> <p><a href="http://demo1.krablekod.ru/agile_carousel/examples/agile_carousel_multiple_slides_visible_example.html" rel="nofollow noreferrer">jquerydata</a></p> </blockquote> <p>i edited the carousel the problem is how will i put it?</p> <pre><code>&gt; &lt;?php &gt; include_once('includes/dbConnect.php'); &gt; &gt; &gt; ?&gt; &gt; &lt;?php &gt; &gt; $query=mysql_query("select * from persons order by rand()"); &gt; &gt; while($test = mysql_fetch_array($query)) { &gt; &gt; } &gt; &gt; &gt; ?&gt; &gt; [ &gt; { &gt; "content": "&lt;div class='slide_inner'&gt;&lt;a class='photo_link' href='#'&gt;&lt;img class='photo' src='banner_bike.jpg' alt='Bike'&gt;&lt;/a&gt;&lt;a &gt; class='caption' href='#'&gt;Sample Carousel Pic Goes Here And The Best &gt; Part is that...&lt;/a&gt;&lt;/div&gt;", &gt; "content_button": "&lt;div class='thumb'&gt;&lt;img src='f2_thumb.jpg' alt='bike is nice'&gt;&lt;/div&gt;&lt;p&gt;Agile Carousel Place &gt; Holder&lt;/p&gt;" &gt; }, &gt; { &gt; "content": "&lt;div class='slide_inner'&gt;&lt;a class='photo_link' href='#'&gt;&lt;img class='photo' src='banner_paint.jpg' alt='Paint'&gt;&lt;/a&gt;&lt;a &gt; class='caption' href='#'&gt;Sample Carousel Pic Goes Here And The Best &gt; Part is that...&lt;/a&gt;&lt;/div&gt;", &gt; "content_button": "&lt;div class='thumb'&gt;&lt;img src='f2_thumb.jpg' alt='bike is nice'&gt;&lt;/div&gt;&lt;p&gt;Agile Carousel Place &gt; Holder&lt;/p&gt;" &gt; }, &gt; { &gt; "content": "&lt;div class='slide_inner'&gt;&lt;a class='photo_link' href='#'&gt;&lt;img class='photo' src='banner_bike.jpg' alt='Bike'&gt;&lt;/a&gt;&lt;a &gt; class='caption' href='#'&gt;Sample Carousel Pic Goes Here And The Best &gt; Part is that...&lt;/a&gt;&lt;/div&gt;", &gt; "content_button": "&lt;div class='thumb'&gt;&lt;img src='f2_thumb.jpg' alt='bike is nice'&gt;&lt;/div&gt;&lt;p&gt;Agile Carousel Place &gt; Holder&lt;/p&gt;" &gt; }, &gt; { &gt; "content": "&lt;div class='slide_inner'&gt;&lt;a class='photo_link' href='#'&gt;&lt;img class='photo' src='banner_paint.jpg' alt='Paint'&gt;&lt;/a&gt;&lt;a &gt; class='caption' href='#'&gt;Sample Carousel Pic Goes Here And The Best &gt; Part is that...&lt;/a&gt;&lt;/div&gt;", &gt; "content_button": "&lt;div class='thumb'&gt;&lt;img src='f2_thumb.jpg' alt='bike is nice'&gt;&lt;/div&gt;&lt;p&gt;Agile Carousel Place &gt; Holder&lt;/p&gt;" &gt; }, &gt; { &gt; "content": "&lt;div class='slide_inner'&gt;&lt;a class='photo_link' href='#'&gt;&lt;img class='photo' src='banner_bike.jpg' alt='Bike'&gt;&lt;/a&gt;&lt;a &gt; class='caption' href='#'&gt;Sample Carousel Pic Goes Here And The Best &gt; Part is that...&lt;/a&gt;&lt;/div&gt;", &gt; "content_button": "&lt;div class='thumb'&gt;&lt;img src='f2_thumb.jpg' alt='bike is nice'&gt;&lt;/div&gt;&lt;p&gt;Agile Carousel Place &gt; Holder&lt;/p&gt;" &gt; }, &gt; { &gt; "content": "&lt;div class='slide_inner'&gt;&lt;a class='photo_link' href='#'&gt;&lt;img class='photo' src='banner_paint.jpg' alt='Paint'&gt;&lt;/a&gt;&lt;a &gt; class='caption' href='#'&gt;Sample Carousel Pic Goes Here And The Best &gt; Part is that...&lt;/a&gt;&lt;/div&gt;", &gt; "content_button": "&lt;div class='thumb'&gt;&lt;img src='f2_thumb.jpg' alt='bike is nice'&gt;&lt;/div&gt;&lt;p&gt;Agile Carousel Place &gt; Holder&lt;/p&gt;" &gt; }, &gt; { &gt; "content": "&lt;div class='slide_inner'&gt;&lt;a class='photo_link' href='#'&gt;&lt;img class='photo' src='Penguins.jpg' alt='Tunnel'&gt;&lt;/a&gt;&lt;a &gt; class='caption' href='#'&gt;Sample Carousel Pic Goes Here And The Best &gt; Part is that...&lt;/a&gt;&lt;/div&gt;", &gt; "content_button": "&lt;div class='thumb'&gt;&lt;img src='f2_thumb.jpg' alt='bike is nice'&gt;&lt;/div&gt;&lt;p&gt;Agile Carousel Place &gt; Holder&lt;/p&gt;" &gt; }, &gt; { &gt; "content": "&lt;div class='slide_inner'&gt;&lt;a class='photo_link' href='#'&gt;&lt;img class='photo' src='Penguins.jpg' alt='Tunnel'&gt;&lt;/a&gt;&lt;a &gt; class='caption' href='#'&gt;Sample Carousel Pic Goes Here And The Best &gt; Part is that...&lt;/a&gt;&lt;/div&gt;", &gt; "content_button": "&lt;div class='thumb'&gt;&lt;img src='f2_thumb.jpg' alt='bike is nice'&gt;&lt;/div&gt;&lt;p&gt;Agile Carousel Place &gt; Holder&lt;/p&gt;" &gt; } &gt; &gt; ] </code></pre> <p>here's the query of my image and name</p> <pre><code>&gt; $query=mysql_query("select * from persons order by date desc LIMIT &gt; 0,10 "); &gt; &gt; &gt; &lt;img height=200 width=200 src=' upload/". $test['Image'] ."'/&gt; &lt;a href &gt; &gt; ='profile.php?PersonID=$id'&gt; ".$test['LastName'].", ". $test['FirstName']." ". $test['MiddleName']."&lt;/a&gt; </code></pre> <p>i'm using this while loop for my search and it calls correctly. </p> <p>and here's the json code </p> <pre><code>&gt; &lt;script&gt; &gt; &gt; $.getJSON("agile_carousel_data.php", function (data) { &gt; &gt; $("#multiple_slides_visible").agile_carousel({ &gt; carousel_data: data, &gt; carousel_outer_height: 230, &gt; carousel_height : 200, &gt; slide_height : 200, &gt; carousel_outer_width : 480, &gt; slide_width : 260, &gt; number_slides_visible: 3, &gt; transition_time : 330, &gt; control_set_1: "previous_button,next_button", &gt; control_set_2: "group_numbered_buttons", &gt; persistent_content: "&lt;p class='persistent_content'&gt;Agile Carousel Example: Multiple Slides Visible&lt;/p&gt;" &gt; }); &gt; &gt; }) &gt; &gt; &lt;/script&gt; </code></pre> <p>this is the content of my $data in data.php</p> <pre><code>&gt; `&lt;?php include_once('includes/dbConnect.php'); $data = array(); while &gt; ($test = mysql_fetch_array($query)) { $data[]['content'] = "&lt;div &gt; class='slide_inner'&gt;&lt;a class='photo_link' href='#'&gt;&lt;img class='photo' &gt; src='{$test['image']}' alt='Bike'&gt;&lt;/a&gt;&lt;a class='caption' &gt; href='#'&gt;Sample Carousel Pic Goes Here And The Best Part is &gt; that...&lt;/a&gt;&lt;/div&gt;" $data[]['content_button'] = "&lt;div &gt; class='thumb'&gt;&lt;img src='{$test['thumb']}' alt='bike is &gt; nice'&gt;&lt;/div&gt;&lt;p&gt;Agile Carousel Place Holder&lt;/p&gt;" } echo &gt; json_encode($data); ?&gt; ` </code></pre> <p>the code above won't give me anything i included my database connection but still nothing won't output anything here's the link again <a href="http://demo1.krablekod.ru/agile_carousel/examples/agile_carousel_multiple_slides_visible_example.html" rel="nofollow noreferrer">link for the original website</a></p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload