Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $stmt->bind_result($pageID, $permGrpID, $permGrpName);
- $arr = array();
- while ($r = $stmt->fetch()) {
- $arr[] = array("PageID " . $pageID, "PermGrpID " . $permGrpID, "PermGrpName " . $permGrpName); $permGrpName);
- }
- print_r($arr);
- outputs this............
- Array
- (
- [0] => Array
- (
- [0] => PageID 1
- [1] => PermGrpID 1
- [2] => PermGrpName Admin
- )
- [1] => Array
- (
- [0] => PageID 1
- [1] => PermGrpID 2
- [2] => PermGrpName WebUser
- )
- Desired format is .......................
- Array
- (
- [0] => Array
- (
- [PageID] => 1
- [PageTitle] => CCOP
- [PageDescription] => CCOP Main Page
- [PageURI] => /index.php
- )
- [1] => Array
- (
- [PageID] => 8
- [PageTitle] => CCOP Components
- [PageDescription] => CCOP Components
- [PageURI] => /components.php
- )
Add Comment
Please, Sign In to add comment