Thread
:
mysql / php thing
View Single Post
klippy
AlliedModders Donor
Join Date: May 2013
Location: Serbia
08-14-2018 , 17:18 Re: mysql / php thing
#
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.
__________________
AMXXPawn for VSCode
|
AlliedModders Dark Theme
|
Syntax Highlight for [ code ] blocks
In memory of Papa Franku
klippy
View Public Profile
Send a private message to klippy
Find More Posts by klippy