tom             Wed Feb 27 14:05:45 2002 EDT

  Modified files:              
    /phpdoc/en/chapters security.xml 
  Log:
  reformatted code for a better html-reading
  
Index: phpdoc/en/chapters/security.xml
diff -u phpdoc/en/chapters/security.xml:1.44 phpdoc/en/chapters/security.xml:1.45
--- phpdoc/en/chapters/security.xml:1.44        Wed Feb 27 02:35:51 2002
+++ phpdoc/en/chapters/security.xml     Wed Feb 27 14:05:44 2002
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.44 $ -->
+<!-- $Revision: 1.45 $ -->
  <chapter id="security">
   <title>Security</title>
 
@@ -784,7 +784,9 @@
      <informalexample>
       <programlisting role="php">
 <![CDATA[
-$query  = "SELECT * FROM products WHERE id LIKE '%a%' exec master..xp_cmdshell 'net 
user test testpass /ADD'--";
+$query  = "SELECT * FROM products
+                    WHERE id LIKE '%a%'
+                    exec master..xp_cmdshell 'net user test testpass /ADD'--";
 $result = mssql_query($query);
 ]]>
       </programlisting>
@@ -853,10 +855,11 @@
          <programlisting role="php">
 <![CDATA[
 settype($offset, 'integer');
-$query  = "SELECT id, name FROM products ORDER BY name LIMIT 20 OFFSET $offset;";
+$query = "SELECT id, name FROM products ORDER BY name LIMIT 20 OFFSET $offset;";
 
 // please note %d in the format string, using %s would be meaningless
-$query  = sprintf("SELECT id, name FROM products ORDER BY name LIMIT 20 OFFSET %d;", 
$offset);
+$query = sprintf("SELECT id, name FROM products ORDER BY name LIMIT 20 OFFSET %d;",
+                 $offset);
 ]]>
          </programlisting>
         </example>


Reply via email to