source: www/manuals/PHP_manual/function.mssql-next-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.6 KB
Line 
1<HTML
2><HEAD
3><TITLE
4>mssql_next_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="Microsoft SQL Server functions"
13HREF="ref.mssql.html"><LINK
14REL="PREVIOUS"
15TITLE="mssql_min_message_severity"
16HREF="function.mssql-min-message-severity.html"><LINK
17REL="NEXT"
18TITLE="mssql_num_fields"
19HREF="function.mssql-num-fields.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.mssql-min-message-severity.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.mssql-num-fields.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.mssql-next-result"
75></A
76>mssql_next_result</H1
77><DIV
78CLASS="refnamediv"
79><A
80NAME="AEN48140"
81></A
82><P
83> (PHP 4 &#62;= 4.0.5)</P
84>mssql_next_result&nbsp;--&nbsp;Move the internal result pointer to the next result</DIV
85><DIV
86CLASS="refsect1"
87><A
88NAME="AEN48143"
89></A
90><H2
91>Description</H2
92>bool <B
93CLASS="methodname"
94>mssql_next_result</B
95> ( int result_id)<BR
96></BR
97><P
98>&#13; When sending more than one SQL statement to the server or
99 executing a stored procedure with multiple results, it will cause
100 the server to return multiple result sets. This function will
101 test for additional results available form the server. If an
102 additional result set exists it will free the existing result set
103 and prepare to fetch the rows from the new result set. The
104 function will return <TT
105CLASS="constant"
106><B
107>TRUE</B
108></TT
109> if an additional result set was
110 available or <TT
111CLASS="constant"
112><B
113>FALSE</B
114></TT
115> otherwise.
116 </P
117><TABLE
118WIDTH="100%"
119BORDER="0"
120CELLPADDING="0"
121CELLSPACING="0"
122CLASS="EXAMPLE"
123><TR
124><TD
125><DIV
126CLASS="example"
127><A
128NAME="AEN48154"
129></A
130><P
131><B
132>Pøíklad 1. <B
133CLASS="function"
134>mssql_next_result()</B
135> example</B
136></P
137><TABLE
138BORDER="0"
139BGCOLOR="#E0E0E0"
140CELLPADDING="5"
141><TR
142><TD
143><PRE
144CLASS="php"
145>&#60;?php
146 $link = mssql_connect ("localhost", "userid", "secret");
147 mssql_select_db("MyDB", $link);
148 $SQL = "Select * from table1 select * from table2";
149 $rs = mssql_query($SQL, $link);
150 do {
151 while ($row = mssql_fetch_row($rs)) {
152 }
153 } while (mssql_next_result($rs));
154 mssql_free_result($rs);
155 mssql_close ($link);
156?&#62;</PRE
157></TD
158></TR
159></TABLE
160></DIV
161></TD
162></TR
163></TABLE
164></DIV
165><DIV
166CLASS="NAVFOOTER"
167><HR
168ALIGN="LEFT"
169WIDTH="100%"><TABLE
170SUMMARY="Footer navigation table"
171WIDTH="100%"
172BORDER="0"
173CELLPADDING="0"
174CELLSPACING="0"
175><TR
176><TD
177WIDTH="33%"
178ALIGN="left"
179VALIGN="top"
180><A
181HREF="function.mssql-min-message-severity.html"
182ACCESSKEY="P"
183>Pøedcházející</A
184></TD
185><TD
186WIDTH="34%"
187ALIGN="center"
188VALIGN="top"
189><A
190HREF="index.html"
191ACCESSKEY="H"
192>Domù</A
193></TD
194><TD
195WIDTH="33%"
196ALIGN="right"
197VALIGN="top"
198><A
199HREF="function.mssql-num-fields.html"
200ACCESSKEY="N"
201>Dal¹í</A
202></TD
203></TR
204><TR
205><TD
206WIDTH="33%"
207ALIGN="left"
208VALIGN="top"
209>mssql_min_message_severity</TD
210><TD
211WIDTH="34%"
212ALIGN="center"
213VALIGN="top"
214><A
215HREF="ref.mssql.html"
216ACCESSKEY="U"
217>Nahoru</A
218></TD
219><TD
220WIDTH="33%"
221ALIGN="right"
222VALIGN="top"
223>mssql_num_fields</TD
224></TR
225></TABLE
226></DIV
227></BODY
228></HTML
229>
Note: See TracBrowser for help on using the repository browser.