[Solved] A Parse error with the PHP mysql Class function of insert method


This line of code isn’t closed:

$this->query("INSERT INTO testing_Rand (number1, // etc

and you are missing a ; after this line:

$newRand.=implode(',', $varNum)

If I get it, you meant to write this instead:

public function insert_SQL($varNum )
{
    $this->query("INSERT INTO testing_Rand 
        (number1, number2, number3, number4, number5, number6, number7, number8, number9, number10) 
        VALUES (".implode(',', $varNum).")");
}

solved A Parse error with the PHP mysql Class function of insert method