Click here to Skip to main content
15,176,561 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
	while($x<=$pinNo) {
		$pinsql="INSERT INTO `pin_list`(`userid`, `pin`, `pinAmt`, `pinNo`, `status`) VALUES ('$userid', '$pint', '100', '$pinNo', '1')";

          alert('E-pin Generated successfully');

	//Function for pin Generate
	function pin_generate() {
		global $db;
		$pint=mt_rand(10000, 9999999);
		$sql="SELECT * FROM pin_list where pin='$pint'";
		if(mysqli_num_rows($run)>0); {
		else {
			return $pint;

What I have tried:

i tried but same error occurs i can't understand the error any one help me to solve this issue.
Updated 30-Aug-20 9:52am

It looks like there is a spurious semicolon in this line:
if(mysqli_num_rows($run)>0); {
if(mysqli_num_rows($run)>0); {
                           ^ remove semicolon here

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900