example correction

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@83426 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Friedhelm Betz 2002-05-25 15:27:19 +00:00
parent a3d033146b
commit 493e1d38bb

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.3 $ -->
<!-- $Revision: 1.4 $ -->
<!-- splitted from ./en/functions/mysql.xml, last change in rev 1.62 -->
<refentry id="function.mysql-escape-string">
<refnamediv>
@ -32,13 +32,12 @@
</simpara>
</note>
<example>
<title><function>mysql_real_escape_string</function> example</title>
<title><function>mysql_escape_string</function> example</title>
<programlisting role="php">
<![CDATA[
<?php
$link = mysql_connect('localhost', 'mysql_user', 'mysql_password');
$item = "Zak's Laptop";
$escaped_item = mysql_real_escape_string($item);
$escaped_item = mysql_escape_string($item);
printf ("Escaped string: %s\n", $escaped_item);
?>
]]>