<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/ref.mysql.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'en',
  ),
  'this' => 
  array (
    0 => 'function.mysql-field-seek.php',
    1 => 'mysql_field_seek',
    2 => 'Set result pointer to a specified field offset',
  ),
  'up' => 
  array (
    0 => 'ref.mysql.php',
    1 => 'MySQL Functions',
  ),
  'prev' => 
  array (
    0 => 'function.mysql-field-name.php',
    1 => 'mysql_field_name',
  ),
  'next' => 
  array (
    0 => 'function.mysql-field-table.php',
    1 => 'mysql_field_table',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/mysql/functions/mysql-field-seek.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.mysql-field-seek" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">mysql_field_seek</h1>
  <p class="verinfo">(PHP 4, PHP 5)</p><p class="refpurpose"><span class="refname">mysql_field_seek</span> &mdash; <span class="dc-title">Set result pointer to a specified field offset</span></p>

 </div>

 <div id="function.mysql-field-seek-refsynopsisdiv">
  <div class="warning"><strong class="warning">Warning</strong>
   <p class="para">This extension was deprecated in PHP 5.5.0, and it was removed in PHP 7.0.0.
Instead, the <a href="book.mysqli.php" class="link">MySQLi</a> or <a href="ref.pdo-mysql.php" class="link">PDO_MySQL</a> extension should be used.
See also <a href="mysqlinfo.api.choosing.php" class="link">MySQL: choosing an API</a> guide.
Alternatives to this function include:</p>
   <ul class="simplelist">
    <li><span class="function"><a href="mysqli-result.field-seek.php" class="function">mysqli_field_seek()</a></span></li>
    <li>
     <span class="methodname"><a href="pdostatement.fetch.php" class="methodname">PDOStatement::fetch()</a></span> using the
     <code class="parameter">cursor_orientation</code> and
     <code class="parameter">offset</code> parameters
    </li>
   </ul>
  </div>
 </div>

 <div class="refsect1 description" id="refsect1-function.mysql-field-seek-description">
  <h3 class="title">Description</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>mysql_field_seek</strong></span>(<span class="methodparam"><span class="type"><a href="language.types.resource.php" class="type resource">resource</a></span> <code class="parameter">$result</code></span>, <span class="methodparam"><span class="type"><a href="language.types.integer.php" class="type int">int</a></span> <code class="parameter">$field_offset</code></span>): <span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span></div>

  <p class="simpara">
   Seeks to the specified field offset.  If the next call to
   <span class="function"><a href="function.mysql-fetch-field.php" class="function">mysql_fetch_field()</a></span> doesn&#039;t include a field
   offset, the field offset specified in
   <span class="function"><strong>mysql_field_seek()</strong></span> will be returned.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.mysql-field-seek-parameters">
  <h3 class="title">Parameters</h3>
  <dl>
   <dt>
<code class="parameter">result</code></dt><dd><p class="para">The result <span class="type"><a href="language.types.resource.php" class="type resource">resource</a></span> that
is being evaluated. This result comes from a call to
<span class="function"><a href="function.mysql-query.php" class="function">mysql_query()</a></span>.</p></dd>
   <dt>
<code class="parameter">field_offset</code></dt><dd><p class="para">The numerical field offset. The
<code class="parameter">field_offset</code> starts at <code class="literal">0</code>. If
<code class="parameter">field_offset</code> does not exist, an error of level
<strong><code><a href="errorfunc.constants.php#constant.e-warning">E_WARNING</a></code></strong> is also issued.</p></dd>
  </dl>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.mysql-field-seek-returnvalues">
  <h3 class="title">Return Values</h3>
  <p class="simpara">
   Returns <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong> on success or <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong> on failure.
  </p>
 </div>


 <div class="refsect1 seealso" id="refsect1-function.mysql-field-seek-seealso">
  <h3 class="title">See Also</h3>
  <ul class="simplelist">
   <li><span class="function"><a href="function.mysql-fetch-field.php" class="function" rel="rdfs-seeAlso">mysql_fetch_field()</a> - Get column information from a result and return as an object</span></li>
  </ul>
 </div>

</div><?php manual_footer($setup); ?>