Sponsored Content
Full Discussion: A Sad Day for Smarty Jones!
The Lounge What is on Your Mind? A Sad Day for Smarty Jones! Post 51972 by RTM on Monday 7th of June 2004 08:25:44 AM
Old 06-07-2004
My wife's family grew up with horses - jumping and some racing. I've since learned to appreciate it but anytime you have a human involved, I have to wonder about the outcome of a race as big as the third leg of the triple crown. Smarty had no problem with a last minute charge in the Preakness, so it's strange he couldn't do the same in the Belmont. Too much $$$ to pay out if Smarty won?
 

3 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Script to find previous month last day minus one day timestamp

Hi All, I need to find the previous month last day minus one day, using shell script. Can you guys help me to do this. My Requirment is as below: Input for me will be 2000909(YYYYMM) I need the previous months last day minus 1 day timestamp. That is i need 2000908 months last day minus ... (3 Replies)
Discussion started by: girish.raos
3 Replies

2. What is on Your Mind?

Does modernity make you sad?

One more "on my mind" question ('cause it's constantly on my mind): does modern technology style make you sad and wishing PCs were like they used to be in 90's? I mean we had awesome UIs like motif, win3.1, warp3/4, cde, etc... HDDs used to load with sound. Web used to be a text on a white... (7 Replies)
Discussion started by: guest115
7 Replies

3. AIX

Sad me - or Happy me? Undecided re: AIX 7.2

AIX 7.2 - needs POWER7 or later With AIX 6.1 it was POWER4 or later - then I was "Happy Me!" because I already had a POWER4 system. With AIX 7.2 - for now I am "sad me" because I do not have a POWER7. However, next week I am going to be speaking at the POWER TechU in Cannes (look me up if you... (8 Replies)
Discussion started by: MichaelFelt
8 Replies
DB2_NEXT_RESULT(3)							 1							DB2_NEXT_RESULT(3)

db2_next_result - Requests the next result set from a stored procedure

SYNOPSIS
resource db2_next_result (resource $stmt) DESCRIPTION
A stored procedure can return zero or more result sets. While you handle the first result set in exactly the same way you would handle the results returned by a simple SELECT statement, to fetch the second and subsequent result sets from a stored procedure you must call the db2_next_result(3) function and return the result to a uniquely named PHP variable. PARAMETERS
o $stmt - A prepared statement returned from db2_exec(3) or db2_execute(3). RETURN VALUES
Returns a new statement resource containing the next result set if the stored procedure returned another result set. Returns FALSE if the stored procedure did not return another result set. EXAMPLES
Example #1 Calling a stored procedure that returns multiple result sets In the following example, we call a stored procedure that returns three result sets. The first result set is fetched directly from the same statement resource on which we invoked the CALL statement, while the second and third result sets are fetched from state- ment resources returned from our calls to the db2_next_result(3) function. <?php $conn = db2_connect($database, $user, $password); if ($conn) { $stmt = db2_exec($conn, 'CALL multiResults()'); print "Fetching first result set "; while ($row = db2_fetch_array($stmt)) { var_dump($row); } print " Fetching second result set "; $res = db2_next_result($stmt); if ($res) { while ($row = db2_fetch_array($res)) { var_dump($row); } } print " Fetching third result set "; $res2 = db2_next_result($stmt); if ($res2) { while ($row = db2_fetch_array($res2)) { var_dump($row); } } db2_close($conn); } ?> The above example will output: Fetching first result set array(2) { [0]=> string(16) "Bubbles " [1]=> int(3) } array(2) { [0]=> string(16) "Gizmo " [1]=> int(4) } Fetching second result set array(4) { [0]=> string(16) "Sweater " [1]=> int(6) [2]=> string(5) "llama" [3]=> string(6) "150.00" } array(4) { [0]=> string(16) "Smarty " [1]=> int(2) [2]=> string(5) "horse" [3]=> string(6) "350.00" } Fetching third result set array(1) { [0]=> string(16) "Bubbles " } array(1) { [0]=> string(16) "Gizmo " } PHP Documentation Group DB2_NEXT_RESULT(3)
All times are GMT -4. The time now is 08:18 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy