Re: mysql_real_escape_string
| From: | Larry E . Ullman | Date: | Mon, 04 Aug 2003 14:08:54 +0000 |
| Subject: | Re: mysql_real_escape_string | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-158152@lists.php.net to get a copy of this message | ||
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