ң

mysql_escape_string

(PHP 4 >= 4.0.3)

mysql_escape_string - /Escape mysql_query.

string mysql_escape_string (string unescaped_string)

unescaped_string , ţ mysql_query() .

: mysql_escape_string() % _.

mysql_real_escape_string() , mysql_real_escape_string() . mysql_escape_string() .

1. mysql_escape_string()
<?php $item = "Zak's Laptop"; $escaped_item = mysql_escape_string($item); printf ("Escaped string: %s\n", $escaped_item); ?>

:

Escaped string: Zak\'s Laptop

. mysql_real_escape_string() , addslashes() magic_quotes_gpc.


ң
mysql_error mysql_fetch_array