Random number generate with database check

We Are Professional

Random number generate with database check

PHP code for Random number generate with database check:
$mysqli = mysqli_connect(“localhost”, “root”, “”, “php_rand”);
function ranf(){
$mysqli = mysqli_connect(“localhost”, “root”, “”, “php_rand”);
$qqqqq = (rand(1,10));
$dbccccc = mysqli_query($mysqli,”SELECT * FROM rand WHERE no = $qqqqq”);
if (mysqli_num_rows($dbccccc) > 0) {
$ppppppp = ranf();
return $ppppppp;
}
else{
return $qqqqq;
}
}

Information

WebinBangla is a leading web solution provider and we work globally. Wel make sure our clients and customers avail maximum benefits by using our high quality services and complete packages.

  • Address: Pahartoli, Raozan, Chittagong.
  • Email: mamun005cse@gmail.com
  • Phone: +880 1738 914871

Working Hours

  • Monday - Friday - 9am to 5pm
  • Saturday - 9am to 2pm
  • Sunday - Closed