Sophie

Sophie

distrib > Mageia > 4 > i586 > by-pkgid > f800694edefe91adea2624f711a41a2d > files > 6474

php-manual-en-5.5.7-1.mga4.noarch.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Fetch a result field</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="function.udm-get-doc-count.html">udm_get_doc_count</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="function.udm-get-res-param.html">udm_get_res_param</a></div>
 <div class="up"><a href="ref.mnogosearch.html">mnoGoSearch Functions</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="function.udm-get-res-field" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">udm_get_res_field</h1>
  <p class="verinfo">(PHP 4 &gt;= 4.0.5, PHP 5 &lt;= 5.0.5, PECL mnogosearch &gt;= 1.0.0)</p><p class="refpurpose"><span class="refname">udm_get_res_field</span> &mdash; <span class="dc-title">Fetch a result field</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-function.udm-get-res-field-description">
  <h3 class="title">Description</h3>
  <div class="methodsynopsis dc-description">
   <span class="type">string</span> <span class="methodname"><strong>udm_get_res_field</strong></span>
    ( <span class="methodparam"><span class="type">resource</span> <code class="parameter">$res</code></span>
   , <span class="methodparam"><span class="type">int</span> <code class="parameter">$row</code></span>
   , <span class="methodparam"><span class="type">int</span> <code class="parameter">$field</code></span>
   )</div>

  <p class="para rdfs-comment">
   Fetch a mnoGoSearch result field.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.udm-get-res-field-parameters">
  <h3 class="title">Parameters</h3>
  <p class="para">
   <dl>

    <dt>

     <span class="term"><em><code class="parameter">res</code></em></span>
     <dd>

      <p class="para">
       <em><code class="parameter">res</code></em> - a link to result identifier, received
       after call to  <span class="function"><a href="function.udm-find.html" class="function">udm_find()</a></span>.
      </p>
     </dd>

    </dt>

    <dt>

     <span class="term"><em><code class="parameter">row</code></em></span>
     <dd>

      <p class="para">
       <em><code class="parameter">row</code></em> - the number of the link on the current page.
       May have values from 0 to
       <em><code class="parameter">UDM_PARAM_NUM_ROWS-1</code></em>.
      </p>
     </dd>

    </dt>

    <dt>

     <span class="term"><em><code class="parameter">field</code></em></span>
     <dd>

      <p class="para">
       <em><code class="parameter">field</code></em> - field identifier, may have the following values:
      <ul class="itemizedlist">
       <li class="listitem">
        <span class="simpara">
         <strong><code>UDM_FIELD_URL</code></strong> - document URL field
        </span>
       </li>
       <li class="listitem">
        <span class="simpara">
         <strong><code>UDM_FIELD_CONTENT</code></strong> - document
         <em>Content-type</em> field (for example, <em>text/html</em>).
        </span>
       </li>
       <li class="listitem">
        <span class="simpara">
         <strong><code>UDM_FIELD_CATEGORY</code></strong> - document category field. Use
          <span class="function"><a href="function.udm-cat-path.html" class="function">udm_cat_path()</a></span> to get full path to current category
         from the categories tree root. (This parameter is available only in PHP
         4.0.6 or later).
        </span>
       </li>
       <li class="listitem">
        <span class="simpara">
         <strong><code>UDM_FIELD_TITLE</code></strong> - document title field.
        </span>
       </li>
       <li class="listitem">
        <span class="simpara">
         <strong><code>UDM_FIELD_KEYWORDS</code></strong> - document keywords field (from META KEYWORDS tag).
        </span>
       </li>
       <li class="listitem">
        <span class="simpara">
         <strong><code>UDM_FIELD_DESC</code></strong> - document description field (from META DESCRIPTION tag).
        </span>
       </li>
       <li class="listitem">
        <span class="simpara">
         <strong><code>UDM_FIELD_TEXT</code></strong> - document body text (the first couple of lines to give an
         idea of what the document is about).
        </span>
       </li>
       <li class="listitem">
        <span class="simpara">
         <strong><code>UDM_FIELD_SIZE</code></strong> - document size.
        </span>
       </li>
       <li class="listitem">
        <span class="simpara">
         <strong><code>UDM_FIELD_URLID</code></strong> - unique URL ID of the link.
        </span>
       </li>
       <li class="listitem">
        <span class="simpara">
         <strong><code>UDM_FIELD_RATING</code></strong>  - page rating (as calculated by mnoGoSearch).
        </span>
       </li>
       <li class="listitem">
        <span class="simpara">
         <strong><code>UDM_FIELD_MODIFIED</code></strong> - last-modified field in unixtime format.
        </span>
       </li>
       <li class="listitem">
        <span class="simpara">
         <strong><code>UDM_FIELD_ORDER</code></strong> - the number of the current document in set of found documents.
        </span>
       </li>
       <li class="listitem">
        <span class="simpara">
         <strong><code>UDM_FIELD_CRC</code></strong> - document CRC.
        </span>
       </li>
      </ul>
      </p>
     </dd>

    </dt>

   </dl>

  </p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.udm-get-res-field-returnvalues">
  <h3 class="title">Return Values</h3>
  <p class="para">
    <span class="function"><strong>udm_get_res_field()</strong></span> returns result field value on
   success, <strong><code>FALSE</code></strong> on error.
  </p>
 </div>


</div><hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="function.udm-get-doc-count.html">udm_get_doc_count</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="function.udm-get-res-param.html">udm_get_res_param</a></div>
 <div class="up"><a href="ref.mnogosearch.html">mnoGoSearch Functions</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>