samedi 27 janvier 2018

I have a "video_id" column with 100 rows in mysql. How do I select a random row in this column?

[PHP RANDOM] My database has lots of rows and columns in mysql. For example:

id    | title | video_id
========================
1       a1q     1200921
2       atw     1628993
3       trw     2344516
4       poo     9115082
5       a2o     4782181
6       ppq     3336611
7       ntz     8772006
8       ewq     9005678
9       qpp     7582219
.....................
1005    tkk     7223378
.....................
100001  hww     8924467

I want to choose randomly a row. For example, I choose row id is 1. What code do I need to write?




Aucun commentaire:

Enregistrer un commentaire