Facebook
Banner
XMPP JavaScript Library READ MORE

How to create Cake PHP like database multidimensional result set

PHP, Sachin Puri, 2014-06-12 00:52:21


for($row=0; $row<mysql_num_rows($res); $row++){
    for($i=0; $i<mysql_num_fields($res); $i++){
        $fieldName=mysql_field_name($res,$i);
        $tableName=mysql_field_table($res,$i);
        $result[$row][$tableName][$fieldName]=mysql_result($res,0,$i);
    }
}

 

Add Your Comment
   
    Yes! I want to receive all comments by email

  by Victoria Tegg on 26-Feb-2019 10:04 am
Type your comment...Thanks for sharing the movie chart with us. I have been using crackle. Nowadays I have started searching to some other options. There is a site onlinemoviespro .me that offers free movies without any ad or popup. I really like it and want to stick with it further
  • Reply
  •  2 Like
  •  2 Dislike
  • Report
  by Eve Hunt on 12-Feb-2019 11:25 am
I really appreciate this post. I¡¦ve been looking all over for this! Thank goodness I found it on Bing. You have made my day! Thank you again
  • Reply
  •  3 Like
  •  3 Dislike
  • Report
  by mywifiext.net login and password on 13-Dec-2018 03:14 pm
Thanks.
  • Reply
  •  3 Like
  •  3 Dislike
  • Report
  by Manoj on 01-Jun-2015 12:36 pm
Nice one
  • Reply
  •  5 Like
  •  3 Dislike
  • Report
  by Arjun on 21-May-2015 09:54 pm
Thanks for the code
  • Reply
  •  4 Like
  •  3 Dislike
  • Report
  by the north face on 30-Jul-2019 12:07 pm
Whether you need screen-printed t-shirts, embroidered workwear, custom sportswear or branded promotional products, we always exceed expectations.
  • Reply
  •  2 Like
  •  2 Dislike
  • Report