I am new to codeigniter and PHP. I have a doubt in PHP. My code is something like this.
public function Test()
$qryResult = $this->GenerateRnd();
if($qryResult == 1)
GenerateRnd will Generate random string and check in DB and return the count. I want help in function test(). I want to generate string again if $qryResult == 1. Otherwise continue process. Wethere the present code will enough or any changes need. Please help me.