Celtar Posted September 20, 2007 Share Posted September 20, 2007 I have a recodset : How can I get the value out of the recordset. Like echo $JobId gives 266640 Thanks a lot ! Quote Link to comment Share on other sites More sharing options...
Wuhtzu Posted September 20, 2007 Share Posted September 20, 2007 That is simply to abstract.... what do you have and what do you wanna do? Quote Link to comment Share on other sites More sharing options...
Jessica Posted September 20, 2007 Share Posted September 20, 2007 $JobID = $recordset[0]['JobID']; Quote Link to comment Share on other sites More sharing options...
Wuhtzu Posted September 20, 2007 Share Posted September 20, 2007 Is this a common graphical representation of a multidimensional array? Quote Link to comment Share on other sites More sharing options...
Jessica Posted September 20, 2007 Share Posted September 20, 2007 I've never seen it before, but I think that's what they have, a multidimensional array. Quote Link to comment Share on other sites More sharing options...
Wuhtzu Posted September 20, 2007 Share Posted September 20, 2007 A part of it looks like an array which contains another array (multidimensional array) but what about the "recordset box"? But your interpretation of the image seems logical Quote Link to comment Share on other sites More sharing options...
Jessica Posted September 20, 2007 Share Posted September 20, 2007 I think the data there instead of the 0, means that the value of $recordset is an array. If it said 0 instead of array, I would think recordset is an array. *shrug* weird. Quote Link to comment Share on other sites More sharing options...
Shamrox Posted September 20, 2007 Share Posted September 20, 2007 Jesirose, with your above example would it be possible to pull the first 3 rows from the recordset by doing... $JobID1 = $recordset[0]['JobID']; $JobID2 = $recordset[1]['JobID']; $JobID3 = $recordset[2]['JobID']; ?? Quote Link to comment Share on other sites More sharing options...
Jessica Posted September 20, 2007 Share Posted September 20, 2007 I guess. It'd make more sense to me to loop through these arrays perhaps in a foreach, but that's me. Quote Link to comment Share on other sites More sharing options...
Shamrox Posted September 20, 2007 Share Posted September 20, 2007 example? Quote Link to comment Share on other sites More sharing options...
Jessica Posted September 20, 2007 Share Posted September 20, 2007 Okay try putting in a little effort first. There are a BAJILLION examples out there for looping through an array. Cmon. Quote Link to comment Share on other sites More sharing options...
Celtar Posted September 21, 2007 Author Share Posted September 21, 2007 This is an recordset representation in AMFPHP (Flash/Flex remoting). I advise you to use it, it is simple great, simple and very powerfull. Of course I put effort. I have been looping through millions of array myself. But this is the first time i have this recordset probleme. Recordset is a collection of Array. $JobID = $recordset[0]['JobID']; does not work it return 'empty string'. I keep you informed. Thanks for try to help. Quote Link to comment Share on other sites More sharing options...
Shamrox Posted September 21, 2007 Share Posted September 21, 2007 Celtar, I think the effort "arrow" was aimed at me... Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.