downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

Our source is open

The syntax highlighted source is automatically generated by PHP from the plaintext script. If you're interested in what's behind the several functions we used, you can always take a look at the source of the following files:

Of course, if you want to see the source of this page, we have it available. You can also browse the SVN repository for this website on svn.php.net.

Source of: /manual/en/mssql.constants.php

<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$PARENTS = array();
include_once
dirname(__FILE__) ."/toc/book.mssql.inc";
$setup = array (
 
'home' =>
  array (
   
0 => 'index.php',
   
1 => 'PHP Manual',
  ),
 
'head' =>
  array (
   
0 => 'UTF-8',
   
1 => 'en',
  ),
 
'this' =>
  array (
   
0 => 'mssql.constants.php',
   
1 => 'Predefined Constants',
  ),
 
'up' =>
  array (
   
0 => 'book.mssql.php',
   
1 => 'Microsoft SQL Server',
  ),
 
'prev' =>
  array (
   
0 => 'mssql.resources.php',
   
1 => 'Resource Types',
  ),
 
'next' =>
  array (
   
0 => 'ref.mssql.php',
   
1 => 'Mssql Functions',
  ),
);
$setup["toc"] = $TOC;
$setup["parents"] = $PARENTS;
manual_setup($setup);

manual_header();
?>
<div>
 <h1>Predefined Constants</h1>

 <p class="simpara">
The constants below are defined by this extension, and
will only be available when the extension has either
been compiled into PHP or dynamically loaded at runtime.
</p>
 <dl>

  <dt class="varlistentry">

   <span class="term">
    <b><tt class="constant">MSSQL_ASSOC</tt></b>
    (<a href="language.types.integer.php" class="type integer">integer</a>)
   </span>

   </dt><dd class="listitem">

    <span class="simpara">
     Return an associative array. Used on
     <a href="function.mssql-fetch-array.php" class="function">mssql_fetch_array()</a>&#039;s
     <i>result_type</i> parameter.
    </span>
   </dd>

 
  <dt class="varlistentry">

   <span class="term">
    <b><tt class="constant">MSSQL_NUM</tt></b>
    (<a href="language.types.integer.php" class="type integer">integer</a>)
   </span>

   </dt><dd class="listitem">

    <span class="simpara">
     Return an array with numeric keys. Used on
     <a href="function.mssql-fetch-array.php" class="function">mssql_fetch_array()</a>&#039;s
     <i>result_type</i> parameter.
    </span>
   </dd>

 
  <dt class="varlistentry">

   <span class="term">
    <b><tt class="constant">MSSQL_BOTH</tt></b>
    (<a href="language.types.integer.php" class="type integer">integer</a>)
   </span>

   </dt><dd class="listitem">

    <span class="simpara">
     Return an array with both numeric keys and
     keys with their field name. This is the
     default value for  <a href="function.mssql-fetch-array.php" class="function">mssql_fetch_array()</a>&#039;s
     <i>result_type</i> parameter.
    </span>
   </dd>

 
  <dt class="varlistentry">

   <span class="term">
    <b><tt class="constant">SQLTEXT</tt></b>
    (<a href="language.types.integer.php" class="type integer">integer</a>)
   </span>

   </dt><dd class="listitem">

    <span class="simpara">
     Indicates the &#039;<i>TEXT</i>&#039; type in MSSQL, used by
     <a href="function.mssql-bind.php" class="function">mssql_bind()</a>&#039;s <i>type</i>
     parameter.
    </span>
   </dd>

 
  <dt class="varlistentry">

   <span class="term">
    <b><tt class="constant">SQLVARCHAR</tt></b>
    (<a href="language.types.integer.php" class="type integer">integer</a>)
   </span>

   </dt><dd class="listitem">

    <span class="simpara">
     Indicates the &#039;<i>VARCHAR</i>&#039; type in MSSQL, used by
     <a href="function.mssql-bind.php" class="function">mssql_bind()</a>&#039;s <i>type</i>
     parameter.
    </span>
   </dd>

 
  <dt class="varlistentry">

   <span class="term">
    <b><tt class="constant">SQLCHAR</tt></b>
    (<a href="language.types.integer.php" class="type integer">integer</a>)
   </span>

   </dt><dd class="listitem">

    <span class="simpara">
     Indicates the &#039;<i>CHAR</i>&#039; type in MSSQL, used by
     <a href="function.mssql-bind.php" class="function">mssql_bind()</a>&#039;s <i>type</i>
     parameter.
    </span>
   </dd>

 
  <dt class="varlistentry">

   <span class="term">
    <b><tt class="constant">SQLINT1</tt></b>
    (<a href="language.types.integer.php" class="type integer">integer</a>)
   </span>

   </dt><dd class="listitem">

    <span class="simpara">
     Represents one byte, with a range of -128 to 127.
    </span>
   </dd>

 
  <dt class="varlistentry">

   <span class="term">
    <b><tt class="constant">SQLINT2</tt></b>
    (<a href="language.types.integer.php" class="type integer">integer</a>)
   </span>

   </dt><dd class="listitem">

    <span class="simpara">
     Represents two bytes, with a range of -32768
     to 32767.
    </span>
   </dd>

 
  <dt class="varlistentry">

   <span class="term">
    <b><tt class="constant">SQLINT4</tt></b>
    (<a href="language.types.integer.php" class="type integer">integer</a>)
   </span>

   </dt><dd class="listitem">

    <span class="simpara">
     Represents four bytes, with a range of -2147483648
     to 2147483647.
    </span>
   </dd>

 
  <dt class="varlistentry">

   <span class="term">
    <b><tt class="constant">SQLBIT</tt></b>
    (<a href="language.types.integer.php" class="type integer">integer</a>)
   </span>

   </dt><dd class="listitem">

    <span class="simpara">
     Indicates the &#039;<i>BIT</i>&#039; type in MSSQL, used by
     <a href="function.mssql-bind.php" class="function">mssql_bind()</a>&#039;s <i>type</i>
     parameter.
    </span>
   </dd>

 
  <dt class="varlistentry">

   <span class="term">
    <b><tt class="constant">SQLFLT4</tt></b>
    (<a href="language.types.integer.php" class="type integer">integer</a>)
   </span>

   </dt><dd class="listitem">

    <span class="simpara">
     Represents an four byte float.
    </span>
   </dd>

 
  <dt class="varlistentry">

   <span class="term">
    <b><tt class="constant">SQLFLT8</tt></b>
    (<a href="language.types.integer.php" class="type integer">integer</a>)
   </span>

   </dt><dd class="listitem">

    <span class="simpara">
     Represents an eight byte float.
    </span>
   </dd>

 
 </dl>

</div>
<?php manual_footer(); ?>
 
show source | credits | sitemap | contact | advertising | mirror sites