I want to use my total rows in mysql tabel for loop's counter, so I need to count the rows in my table right?
This is my obviously wrong code:
$result = mysqli_query($con,"SELECT * FROM pemain_winger");
$rows = mysqli_num_rows($result);
for($a=1;$a<=$rows;$a++) {
echo ...
}
Its always give Undefined offset: 3 error, pls help me :(