I've been wondering for the longest time WHY I actually need a live resource to SQL connected in order to use mysql_real_escape_string ( string $unescaped_string [, resource $link_identifier ] )
Does this function not simply escape the data? What's the point of connecting? I want to use the function without a connection, I'm debating creating an account with no privileges just so I can do this.
I call a wrapper function runSQL(user, statement)
and return an array with either the data or boolean status.
I've been thinking of making this runSQL(user, statement, arguments-and-validation-data)
I just want a reason. I can't find a "why" on the man page.