⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 function.ifx-fieldproperties.html

📁 php的帮助文档,涉及到PHP的案例和基本语法,以及实际应用内容
💻 HTML
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html> <head>  <title>List of SQL fieldproperties</title>  <meta http-equiv="content-type" content="text/html; charset=UTF-8"> </head> <body><div style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="function.ifx-fetch-row.html">ifx_fetch_row</a></div> <div class="next" style="text-align: right; float: right;"><a href="function.ifx-fieldtypes.html">ifx_fieldtypes</a></div> <div class="up"><a href="ref.ifx.html">Informix Functions</a></div> <div class="home"><a href="index.html">PHP Manual</a></div></div><hr /><div id="function.ifx-fieldproperties" class="refentry"> <div class="refnamediv">  <h1 class="refname">ifx_fieldproperties</h1>  <p class="verinfo">(No version information available, might be only in CVS)</p><p class="refpurpose"><span class="refname">ifx_fieldproperties</span> &mdash; <span class="dc-title">List of SQL fieldproperties</span></p> </div>  <div class="refsect1 description">  <h3 class="title">Description</h3>  <div class="methodsynopsis dc-description">   <span class="type">array</span> <span class="methodname"><b><b>ifx_fieldproperties</b></b></span>    ( <span class="methodparam"><span class="type">resource</span> <tt class="parameter">$result_id</tt></span>   )</div>  <p class="para rdfs-comment">   Returns the Informix SQL fieldproperties of every field in the   query as an associative array.  Properties are encoded as:   &quot;SQLTYPE;length;precision;scale;ISNULLABLE&quot; where SQLTYPE = the   Informix type like &quot;SQLVCHAR&quot; etc. and ISNULLABLE = &quot;Y&quot; or &quot;N&quot;.  </p> </div> <div class="refsect1 parameters">  <h3 class="title">Parameters</h3>  <p class="para">   <dl>    <dt>     <span class="term"><i><tt class="parameter">result_id</tt></i></span>     <dd>      <p class="para">       <i><tt class="parameter">result_id</tt></i> is a valid resultid returned by       <a href="function.ifx-query.html" class="function">ifx_query()</a> or       <a href="function.ifx-prepare.html" class="function">ifx_prepare()</a> (select type queries only!).      </p>     </dd>    </dt>   </dl>  </p> </div> <div class="refsect1 returnvalues">  <h3 class="title">Return Values</h3>  <p class="para">   Returns an associative array with fieldnames as key and the SQL    fieldproperties as data for a query with <i><tt class="parameter">result_id</tt></i>.   Returns <b><tt>FALSE</tt></b> on errors.  </p> </div> <div class="refsect1 examples">  <h3 class="title">Examples</h3>  <p class="para">   <div class="example">    <p><b>Example #1 Informix SQL fieldproperties</b></p>    <div class="example-contents"><div class="phpcode"><code><span style="color: #000000"><span style="color: #0000BB">&lt;?php<br />$properties&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">ifx_fieldproperties</span><span style="color: #007700">(</span><span style="color: #0000BB">$resultid</span><span style="color: #007700">);<br />if&nbsp;(!isset(</span><span style="color: #0000BB">$properties</span><span style="color: #007700">))&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #FF8000">/*&nbsp;...&nbsp;error&nbsp;...&nbsp;*/<br /></span><span style="color: #007700">}<br />foreach&nbsp;(</span><span style="color: #0000BB">$properties&nbsp;</span><span style="color: #007700">as&nbsp;</span><span style="color: #0000BB">$fname&nbsp;</span><span style="color: #007700">=&gt;&nbsp;</span><span style="color: #0000BB">$val</span><span style="color: #007700">)&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;echo&nbsp;</span><span style="color: #DD0000">"$fname:\t&nbsp;property&nbsp;=&nbsp;$val\n"</span><span style="color: #007700">;<br />}<br /></span><span style="color: #0000BB">?&gt;</span></span></code></div>    </div>   </div>  </p> </div> <div class="refsect1 seealso">  <h3 class="title">See Also</h3>  <p class="para">   <ul class="simplelist">    <li class="member"><a href="function.ifx-fieldtypes.html" class="function" rel="rdfs-seeAlso">ifx_fieldtypes()</a></li>   </ul>  </p> </div></div><hr /><div style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="function.ifx-fetch-row.html">ifx_fetch_row</a></div> <div class="next" style="text-align: right; float: right;"><a href="function.ifx-fieldtypes.html">ifx_fieldtypes</a></div> <div class="up"><a href="ref.ifx.html">Informix Functions</a></div> <div class="home"><a href="index.html">PHP Manual</a></div></div></body></html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -