ң

mysql_real_escape_string

( PHP 4 CVS)

mysql_real_escape_string - SQL ޣ /charset .

string mysql_real_escape_string (string unescaped_string [, resource link_identifier])

/escape unescaped_string , charset , mysql_query() .

: mysql_real_escape_string() % _.

1. mysql_real_escape_string()
<?php $link = mysql_connect('localhost', 'mysql_user', 'mysql_password'); $item = "Zak's and Derick's Laptop"; $escaped_item = mysql_real_escape_string($item); printf ("Escaped string: %s\n", $escaped_item); ?>

:

Escaped string: Zak\'s and Derick\'s Laptop

. mysql_escape_string() , mysql_character_set_name() .


ң
mysql_query mysql_result