I'm doing two buttons Next and previous i have this line of code in the php file and the function defined in another php fixer, the one that has to do the function is to go to the taula where I am and select the next product. The problem is that the button does nothing.
I tried to put the ide in another way but it does not do anything when I hit the button
public static function botoSeguent(){
if(isset($_POST['Seguent'])){
$Ordre=$_POST['Ordre']+1;
$sql= "SELECT * FROM" .self::$tablename. " WHERE Ordre='$Ordre";
$query = Executor::doit($sql);
}
}
The button doesn't do anything.
This is the line I used in PHP file:
<button class="btn btn-primary" type="button" id="botoSeguent()"> <i class="fa fa-search"></i> Següent</button>