I have a query that takes inputs from the user and searches through the database.
Now depending on the inputs the result size can vary.
Query
$sql = "SELECT * FROM `$drop` WHERE `Stop Name` = '$input'";
$result = mysqli_query($conn, $sql);
Result
$rows = $result->num_rows;
for ($j = 0 ; $j < $rows ; ++$j) {
$result->data_seek($j);
$row = $result->fetch_array(MYSQLI_NUM);
//Display Results
for ($j = 0 ; $j <= 124 ; ++$j) echo "<td>$row[$j]</td>";
}
this gives me an Undefined offset error for when their is less than 124 variables (Most that could possibly be displayed) to show.
Where in the code do I add the @ to ignore these errors.