I'm currently working on creating a Real Estate Ads Script On the User Show page, I wanted to show the user-added ads, and I ran into a problem, which was to show only the first ad added by the user. The problem is not in a query mysqli nor while, I was print array using print_r function was printed first advertisement only, and I calculated the number of query results by mysqli_num_rows() function which is 8, and i used functions mysqli_fetch_array and mysqli_fetch_assoc and mysqli_fetch_row and all of them did not solve my problem Please solve this problem because I am late on the client in creating the site Code https://evotecpro.com/code.html
1 Answer
you need used to mysqli_fetch_all()
.
And you can see this tutorial more info about the fetch_all()
function
PHP mysqli_fetch_all() Function - W3Schools
-
-
@Alon Eitan i try to include the code, but i could not include it Commented Oct 28, 2017 at 20:22
mysqli_fetch_array()