The following function is from Larry Ullman's PHP and mySQL on page 217 -
script 6.8 - in which there is a connection to a mySQL database using PHP.


My question is that I'm not sure of the global variable $dbc.

Hello Anthony,


The mysql_real_escape_string() requires a connection to the database. The connection identifier is defined in another script so it's brought in using the global statement.

Hope that helps,
Larry


-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to