Skip to main content


This topic contains 1 reply, has 2 voices, and was last updated by  Beverleyh 5 months, 2 weeks ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #279752



    I need some help please.

    I have part of code:

    How can I randomise .jpg number in w way that there will be no same picture showed few times and data-image will be the same as img src

    Please help.



    I’m assuming that because you posted this question in the backend forum, you want to do this with PHP?

    If that’s the case, try generating a number via mt_rand() and then assign it to a variable. You can then echo the same variable/number into your src and data-image.

    More info on mt_rand() here

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.

icon-link icon-logo-star icon-search icon-star