echo mysql_real_escape_string($dbc, "string");
Produces the warning:
Warning: mysql_real_escape_string() expects parameter 1 to be string, object
given in **...**
So even when I give the function what seem to be obviously string objects it's not seeing them as strings.
What's going on here?
See Question&Answers more detail:os