當我執行此代碼時出現此錯誤。我不知道該怎么辦。請幫忙<?php$Q = strtoupper($_GET['q']);$q = ucwords($_GET['q']); $result = mysqli_query($conn, "SELECT src FROM mytable WHERE '%$Q%' NOT LIKE 0 OR SRC LIKE '%$Q%'");$total = mysqli_num_rows($result);$numRows = function() { if($total <= 4){ return 1; } else { return ($total / 4); }};if($row = mysqli_fetch_array($result)){ ?> <h2>Resultados para la búsqueda <?php echo "$q"?></h2> <h3>Número de resultados total: <?php echo "$total"?></h3><?php }
如何解決“可恢復的致命錯誤:類Closure的對象無法在……中轉換為字符串”
慕無忌1623718
2021-04-28 21:18:03