source: www/manuals/PHP_manual/function.odbc-result.html@ 1

Last change on this file since 1 was 1, checked in by george, 17 years ago

Prvotní import všeho

File size: 3.7 KB
Line 
1<HTML
2><HEAD
3><TITLE
4>odbc_result</TITLE
5><META
6NAME="GENERATOR"
7CONTENT="Modular DocBook HTML Stylesheet Version 1.7"><LINK
8REL="HOME"
9TITLE="Manuál PHP"
10HREF="index.html"><LINK
11REL="UP"
12TITLE="Unified ODBC functions"
13HREF="ref.odbc.html"><LINK
14REL="PREVIOUS"
15TITLE="odbc_result_all"
16HREF="function.odbc-result-all.html"><LINK
17REL="NEXT"
18TITLE="odbc_rollback"
19HREF="function.odbc-rollback.html"><META
20HTTP-EQUIV="Content-type"
21CONTENT="text/html; charset=ISO-8859-2"></HEAD
22><BODY
23CLASS="refentry"
24BGCOLOR="#FFFFFF"
25TEXT="#000000"
26LINK="#0000FF"
27VLINK="#840084"
28ALINK="#0000FF"
29><DIV
30CLASS="NAVHEADER"
31><TABLE
32SUMMARY="Header navigation table"
33WIDTH="100%"
34BORDER="0"
35CELLPADDING="0"
36CELLSPACING="0"
37><TR
38><TH
39COLSPAN="3"
40ALIGN="center"
41>Manuál PHP</TH
42></TR
43><TR
44><TD
45WIDTH="10%"
46ALIGN="left"
47VALIGN="bottom"
48><A
49HREF="function.odbc-result-all.html"
50ACCESSKEY="P"
51>Pøedcházející</A
52></TD
53><TD
54WIDTH="80%"
55ALIGN="center"
56VALIGN="bottom"
57></TD
58><TD
59WIDTH="10%"
60ALIGN="right"
61VALIGN="bottom"
62><A
63HREF="function.odbc-rollback.html"
64ACCESSKEY="N"
65>Dal¹í</A
66></TD
67></TR
68></TABLE
69><HR
70ALIGN="LEFT"
71WIDTH="100%"></DIV
72><H1
73><A
74NAME="function.odbc-result"
75></A
76>odbc_result</H1
77><DIV
78CLASS="refnamediv"
79><A
80NAME="AEN61010"
81></A
82><P
83> (PHP 3&#62;= 3.0.6, PHP 4 )</P
84>odbc_result&nbsp;--&nbsp;Get result data</DIV
85><DIV
86CLASS="refsect1"
87><A
88NAME="AEN61013"
89></A
90><H2
91>Description</H2
92>string <B
93CLASS="methodname"
94>odbc_result</B
95> ( resource result_id, mixed field)<BR
96></BR
97><P
98>&#13; Returns the contents of the field.
99 </P
100><P
101>&#13; <TT
102CLASS="parameter"
103><I
104>field</I
105></TT
106> can either be an integer containing
107 the column number of the field you want; or it can be a string
108 containing the name of the field. For example:
109 <DIV
110CLASS="informalexample"
111><A
112NAME="AEN61027"
113></A
114><P
115></P
116><TABLE
117BORDER="0"
118BGCOLOR="#E0E0E0"
119CELLPADDING="5"
120><TR
121><TD
122><PRE
123CLASS="programlisting"
124>$item_3 = odbc_result ($Query_ID, 3);
125$item_val = odbc_result ($Query_ID, "val");</PRE
126></TD
127></TR
128></TABLE
129><P
130></P
131></DIV
132>
133 </P
134><P
135>&#13; The first call to <B
136CLASS="function"
137>odbc_result()</B
138> returns the
139 value of the third field in the current record of the query
140 result. The second function call to
141 <B
142CLASS="function"
143>odbc_result()</B
144> returns the value of the field
145 whose field name is "val" in the current record of the query
146 result. An error occurs if a column number parameter for a field
147 is less than one or exceeds the number of columns (or fields) in
148 the current record. Similarly, an error occurs if a field with a
149 name that is not one of the fieldnames of the table(s) that
150 is(are) being queried.
151 </P
152><P
153>&#13; Field indices start from 1. Regarding the way binary or
154 long column data is returned refer to
155 <A
156HREF="function.odbc-binmode.html"
157><B
158CLASS="function"
159>odbc_binmode()</B
160></A
161> and
162 <A
163HREF="function.odbc-longreadlen.html"
164><B
165CLASS="function"
166>odbc_longreadlen()</B
167></A
168>.
169
170
171
172 </P
173></DIV
174><DIV
175CLASS="NAVFOOTER"
176><HR
177ALIGN="LEFT"
178WIDTH="100%"><TABLE
179SUMMARY="Footer navigation table"
180WIDTH="100%"
181BORDER="0"
182CELLPADDING="0"
183CELLSPACING="0"
184><TR
185><TD
186WIDTH="33%"
187ALIGN="left"
188VALIGN="top"
189><A
190HREF="function.odbc-result-all.html"
191ACCESSKEY="P"
192>Pøedcházející</A
193></TD
194><TD
195WIDTH="34%"
196ALIGN="center"
197VALIGN="top"
198><A
199HREF="index.html"
200ACCESSKEY="H"
201>Domù</A
202></TD
203><TD
204WIDTH="33%"
205ALIGN="right"
206VALIGN="top"
207><A
208HREF="function.odbc-rollback.html"
209ACCESSKEY="N"
210>Dal¹í</A
211></TD
212></TR
213><TR
214><TD
215WIDTH="33%"
216ALIGN="left"
217VALIGN="top"
218>odbc_result_all</TD
219><TD
220WIDTH="34%"
221ALIGN="center"
222VALIGN="top"
223><A
224HREF="ref.odbc.html"
225ACCESSKEY="U"
226>Nahoru</A
227></TD
228><TD
229WIDTH="33%"
230ALIGN="right"
231VALIGN="top"
232>odbc_rollback</TD
233></TR
234></TABLE
235></DIV
236></BODY
237></HTML
238>
Note: See TracBrowser for help on using the repository browser.