Hello my fellow coding buddies.

I need some help, i've got this problem.
I have this database, and i want to retrive this data into my code via JS.

My database info:

```
create table datadatabase (
id              int(10)  not null AUTO_INCREMENT PRIMARY KEY,
name            varchar(25) not null default '',
text            longtext(25) not null default '',
image           blob        not null  );

```

And i want the data into these fields.

```
<img src="<?php echo $img ?>"/>
<h3> <?php echo $text.','.$name  ?>  </h3>

```

But the problem is, **the text & image is a slider** and i want **retrive new data everytime there is a function click on the "Next" button** & the ID should be random so the first slides could be id 99 and the next slide could be 158 and so on.

```
$('.Next').click(function(e) {
 e.preventDefault();
 Slide.appendSlide('<img src"<?php echo $img ?>"/><h3> </h3>') 
})

```

How should i approach this? **AND Thanks you so much. :)**