rhyspaterson Posted July 6, 2007 Share Posted July 6, 2007 Hey guys, Running some queries and get an array returned that looks like this: Array ( [0] => Array ( [max] => 4 ) ) Just wondering how to access '4'. Been trying simple echo commands (echo $maxID; echo $maxID[0]; echo $maxID[1]; echo $maxID['max']; but cant get anything. Obviously its something stupid im not realizing, just need a shove in the right direction. Cheers Quote Link to comment Share on other sites More sharing options...
rhyspaterson Posted July 6, 2007 Author Share Posted July 6, 2007 Hey guys, Running some queries and get an array returned that looks like this: Array ( [0] => Array ( [max] => 4 ) ) Just wondering how to access '4'. Been trying simple echo commands (echo $maxID; echo $maxID[0]; echo $maxID[1]; echo $maxID['max']; but cant get anything. Obviously its something stupid im not realizing, just need a shove in the right direction. Cheers EDIT: echo $maxID[0]['max']; works, sorry 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.