HubsInfo Network
Toggle navigation
Home
Search
Calendar
Login
Register
Login
or
Register
to remove ads!
You're browsing our forum and website as a
Guest
meaning you can only see a portion of the forum in read-only mode.
HubsInfo Network
General discussions
Servers and Networking [IT & Datacenter]
PHP
PHP Warning mysqli_real_escape_string expects exactly 2 parameters
PHP
MySQL
Linux
Material Design
Web Hosting
Online Games
SimCity BuildIt
Pages: [
1
]
PHP Warning mysqli_real_escape_string expects exactly 2 parameters
0 Replies
583 Views
PHP Warning mysqli_real_escape_string expects exactly 2 parameters
«
on:
December 07, 2020, 09:58:18 AM »
How to fix "
PHP Warning: mysqli_real_escape_string() expects exactly 2 parameters, 1 given in
"
Wrong:
Code:
[Select]
$Id = mysqli_real_escape_string($_GET['Id']);
Correct:
Code:
[Select]
$Id = mysqli_real_escape_string($conn, $_GET['Id']);
Pages: [
1
]
HubsInfo Network
General discussions
Servers and Networking [IT & Datacenter]
PHP
PHP Warning mysqli_real_escape_string expects exactly 2 parameters
Follow us on 𝕏
YouTube
Partners
Web Design and SEO
SimCity BuildIt Database
Gaming Sites, Private Servers
Lineage 2 servers | L2 Scarlet
Lineage 2 Fafurion server
WoW Database and Guides