mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
example correction
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@83426 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
a3d033146b
commit
493e1d38bb
1 changed files with 3 additions and 4 deletions
|
@ -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);
|
||||
?>
|
||||
]]>
|
||||
|
|
Loading…
Reference in a new issue