In the provided PHP code snippet, what does the "ASC LIMIT 0, 100" statement signify and how does it affect the query results?
The "ASC LIMIT 0, 100" statement in the provided PHP code signifies that the query results will be sorted in ascending order and limited to 100 rows. This means that the results will be displayed in ascending order based on the specified column and only the first 100 rows will be returned. To modify this query to display results in descending order and limit to 100 rows, the "DESC" keyword can be used instead of "ASC".
$query = "SELECT * FROM table_name ORDER BY column_name DESC LIMIT 0, 100";
$result = mysqli_query($connection, $query);
if(mysqli_num_rows($result) > 0){
while($row = mysqli_fetch_assoc($result)){
// Process each row of the query result
}
} else {
echo "No results found.";
}