vendredi 30 avril 2021

How can I automatically generate numbers and store them in a database?

I am trying to create a system that auto-generate 10 numbers between 1-60 using php/MySQL database.

<?php
    $n=range(1,60);
    shuffle($n);
        for ($x=1; $x< 11; $x++)     {
             echo $n[$x].' ';
             }
        echo "\n"
?>

The system auto-refresh every 5 mins but the problem is how do I store previous generated numbers in a database with a unique query number automatically when numbers are generated?

It has a 300 sec auto-reload on the meta-tag

<meta http-equiv="refresh" content="10">

Thank you.




Aucun commentaire:

Enregistrer un commentaire