View Single Post
klippy
AlliedModders Donor
Join Date: May 2013
Location: Serbia
Old 08-14-2018 , 17:18   Re: mysql / php thing
Reply With Quote #12

In your previous posts the error contained mysql_fetch_array yet there isn't a single call of that function in the provided code. Stop omitting important parts.
If you are passing $records to that function call as well it may be happen that $records is FALSE because the query failed. Read the documentation and check for possible errors.
Also don't just plainly assign user-provided data to a query, your code is an easy target for SQL Injection as is. Use prepared statements.
__________________
klippy is offline