Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9280955
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T17:59:57+00:00 2026-06-18T17:59:57+00:00

i made a slider as you can see here . That will be like

  • 0

i made a slider as you can see here.

That will be like opinions, where my clients will can say something.

Now the code where displays text is:

        <div>
            <p class="depoimento"><font color="#bdbdbd">Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.</font></p><p class="cliente"><font color="#99CB1E">Paulo Henrique, São Paulo - SP</font></p>
        </div>
        <div>
            <p><font color="#bdbdbd">Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.</font></p>
        </div>

All is working now, but will be really hard add every opinion here, so what i was thinking?
I can create a mysql and just randomize and call every slider.

I just don’t know how to.

I need something like this:

[COMMAND TO MYSQL RANDOM MY OPINION]

<p class="depoimento"> PRINT OPINION HERE </p><p class="cliente"> PRINT CLIENT NAME INFORMATION HERE </p>

As you can see i have 2 P here, one for opinion and another for client.
I was testing here and i created a mysql DB and a table named: “tdepo” and two columns: Depo and Client

Someone have any idea how i can do it?
Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T17:59:59+00:00Added an answer on June 18, 2026 at 5:59 pm

    If number of opinions is small, you can use slow, but reliable version:

    SELECT opinion_text
    FROM opinions
    ORDER BY random()
    LIMIT 1
    

    If you want faster version, another solution assumes that table opinions has INTEGER PRIMARY KEY column opinion_id, and that this column is using all values from 1 to number of rows:

    SELECT opinion_text
    FROM opinions
    WHERE opinion_id = ceil(random()*
        (SELECT max(opinion_id) FROM opinions))
    

    If you have holes, this query may give empty result and you will need to repeat it. But, advantage of it that it is very fast.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Can a jQuery UI Slider be made to look like this? If so how?
I made a settings panel for my app with a slider that you can
I've made a slider that uses the left and right arrow keys to move
I made the following content sliding section: http://jsfiddle.net/JaMYJ/ As you can see, the height
I'm looking for a slider that can autoscale the images, to a specific screen
Hi Guys! It's the first time I see an image slider like status bar
I have this slider which displays in a lightbox/modal. There are 2 buttons that
I have made a UISlider work just like the slide to unlock slider. What
I'm trying to bring nivo slider caption to top but i can't. i made
Have this self-made slider: http://jsfiddle.net/wyc3P/4/ What it does: takes min and max values in

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.