this is my code and tablename:table1
database:tesync
i tried the php code for generating random numbers and i get that but how can i get
the inserted that into sql database
What I have tried:
<?php
$connection = mysqli_connect('localhost', 'root', '');
if (!$connection){
die("Database Connection Failed" . mysqli_error($connection));
}
$select_db = mysqli_select_db($connection, 'tesync');
if (!$select_db){
die("Database Selection Failed" . mysqli_error($connection));
}
for ($i=1;$i<=100;$i++)
{
$randomNumber= rand(1111111111,9999999999);
echo $randomNumber.'<br>';
}
?>