<?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 => 'tr',
  ),
  'this' => 
  array (
    0 => 'function.mysql-field-flags.php',
    1 => 'mysql_field_flags',
    2 => 'Get the flags associated with the specified field in a result',
  ),
  'up' => 
  array (
    0 => 'ref.mysql.php',
    1 => 'MySQL İşlevleri',
  ),
  'prev' => 
  array (
    0 => 'function.mysql-fetch-row.php',
    1 => 'mysql_fetch_row',
  ),
  'next' => 
  array (
    0 => 'function.mysql-field-len.php',
    1 => 'mysql_field_len',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/mysql/functions/mysql-field-flags.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.mysql-field-flags" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">mysql_field_flags</h1>
  <p class="verinfo">(PHP 4, PHP 5)</p><p class="refpurpose"><span class="refname">mysql_field_flags</span> &mdash; <span class="dc-title">Get the flags associated with the specified field in a result</span></p>

 </div>

 <div id="function.mysql-field-flags-refsynopsisdiv">
  <div class="warning"><strong class="warning">Uyarı</strong>
   <p class="para">
Bu eklentinin kullanımı PHP 5.5.0 itibariyle önerilmemekte olup
PHP 7.0.0&#039;da kaldırılmıştır. Bu eklentinin yerine ya
<a href="book.mysqli.php" class="link">mysqli</a> ya da
<a href="ref.pdo-mysql.php" class="link">PDO_MySQL</a> eklentisi kullanılmalıdır.
MySQL API seçerken <a href="mysqlinfo.api.choosing.php" class="link">MySQL API&#039;ye
Bakış</a> belgesi yardımcı olabilir. Bu işlevin yerine
kullanılabilecekler:</p>
   <ul class="simplelist">
    <li><span class="function"><a href="mysqli-result.fetch-field-direct.php" class="function">mysqli_fetch_field_direct()</a></span> [flags]</li>
    <li><span class="methodname"><a href="pdostatement.getcolumnmeta.php" class="methodname">PDOStatement::getColumnMeta()</a></span> [flags]</li>
   </ul>
  </div>
 </div>

 <div class="refsect1 description" id="refsect1-function.mysql-field-flags-description">
  <h3 class="title">Açıklama</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>mysql_field_flags</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"><span class="type"><a href="language.types.string.php" class="type string">string</a></span>|<span class="type"><a href="language.types.singleton.php" class="type false">false</a></span></span></div>

  <p class="simpara">
   <span class="function"><strong>mysql_field_flags()</strong></span> returns the field flags of
   the specified field. The flags are reported as a single word
   per flag separated by a single space, so that you can split the
   returned value using <span class="function"><a href="function.explode.php" class="function">explode()</a></span>.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.mysql-field-flags-parameters">
  <h3 class="title">Bağımsız Değişkenler</h3>
  <dl>
   
<dt><code class="parameter">sonuç</code></dt><dd><p class="para">
<span class="type"><a href="language.types.resource.php" class="type resource">resource</a></span> türünde sorgu sonucu.  Bu sonuç bir
<span class="function"><a href="function.mysql-query.php" class="function">mysql_query()</a></span> çağrısının sonucudur.
</p></dd>
   
<dt><code class="parameter">alan_konumu</code></dt><dd><p class="para">
Alanın sayısal konumu. <code class="literal">0</code>&#039;dan başlar. Eğer bir alan
konumu yoksa  <strong><code><a href="errorfunc.constants.php#constant.e-warning">E_WARNING</a></code></strong> seviyesinde bir hata üretilir.
</p></dd>
  </dl>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.mysql-field-flags-returnvalues">
  <h3 class="title">Dönen Değerler</h3>
  <p class="simpara">
   Returns a string of flags associated with the result başarısızlık durumunda <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong> döner.
  </p>
  <p class="simpara">
   The following flags are reported, if your version of MySQL
   is current enough to support them: <code class="literal">&quot;not_null&quot;</code>,
   <code class="literal">&quot;primary_key&quot;</code>, <code class="literal">&quot;unique_key&quot;</code>,
   <code class="literal">&quot;multiple_key&quot;</code>, <code class="literal">&quot;blob&quot;</code>,
   <code class="literal">&quot;unsigned&quot;</code>, <code class="literal">&quot;zerofill&quot;</code>,
   <code class="literal">&quot;binary&quot;</code>, <code class="literal">&quot;enum&quot;</code>,
   <code class="literal">&quot;auto_increment&quot;</code> and <code class="literal">&quot;timestamp&quot;</code>.
  </p>
 </div>


 <div class="refsect1 examples" id="refsect1-function.mysql-field-flags-examples">
  <h3 class="title">Örnekler</h3>
  <div class="example" id="example-1">
   <p><strong>Örnek 1 A <span class="function"><strong>mysql_field_flags()</strong></span> example</strong></p>
   <div class="example-contents">
<div class="phpcode"><code><span style="color: #000000"><span style="color: #0000BB">&lt;?php<br />$result </span><span style="color: #007700">= </span><span style="color: #0000BB">mysql_query</span><span style="color: #007700">(</span><span style="color: #DD0000">"SELECT id,email FROM people WHERE id = '42'"</span><span style="color: #007700">);<br />if (!</span><span style="color: #0000BB">$result</span><span style="color: #007700">) {<br />    echo </span><span style="color: #DD0000">'Could not run query: ' </span><span style="color: #007700">. </span><span style="color: #0000BB">mysql_error</span><span style="color: #007700">();<br />    exit;<br />}<br /></span><span style="color: #0000BB">$flags </span><span style="color: #007700">= </span><span style="color: #0000BB">mysql_field_flags</span><span style="color: #007700">(</span><span style="color: #0000BB">$result</span><span style="color: #007700">, </span><span style="color: #0000BB">0</span><span style="color: #007700">);<br /><br />echo </span><span style="color: #0000BB">$flags</span><span style="color: #007700">;<br /></span><span style="color: #0000BB">print_r</span><span style="color: #007700">(</span><span style="color: #0000BB">explode</span><span style="color: #007700">(</span><span style="color: #DD0000">' '</span><span style="color: #007700">, </span><span style="color: #0000BB">$flags</span><span style="color: #007700">));<br /></span><span style="color: #0000BB">?&gt;</span></span></code></div>
   </div>

   <div class="example-contents"><p>
Yukarıdaki örnek şuna benzer bir çıktı üretir:</p></div>
   <div class="example-contents screen">
<div class="examplescode"><pre class="examplescode">not_null primary_key auto_increment
Array
(
    [0] =&gt; not_null
    [1] =&gt; primary_key
    [2] =&gt; auto_increment
)</pre>
</div>
   </div>
  </div>
 </div>


 <div class="refsect1 notes" id="refsect1-function.mysql-field-flags-notes">
  <h3 class="title">Notlar</h3>
  <blockquote class="note"><p><strong class="note">Bilginize</strong>: 
   <span class="simpara">
    Geriye uyumluluk adına, kullanımı önerilmese
de şu takma ad kullanılabilir: 
    <span class="function"><strong>mysql_fieldflags()</strong></span>
   </span>
  </p></blockquote>
 </div>


 <div class="refsect1 seealso" id="refsect1-function.mysql-field-flags-seealso">
  <h3 class="title">Ayrıca Bakınız</h3>
  <ul class="simplelist">
   <li><span class="function"><a href="function.mysql-field-type.php" class="function" rel="rdfs-seeAlso">mysql_field_type()</a> - Get the type of the specified field in a result</span></li>
   <li><span class="function"><a href="function.mysql-field-len.php" class="function" rel="rdfs-seeAlso">mysql_field_len()</a> - Belirtilen alanın uzunluğunu d&ouml;nd&uuml;r&uuml;r</span></li>
  </ul>
 </div>


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