XMPP JavaScript Library

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 William Lane on 24-Aug-2019 09:52 pm
I found so many interesting stuff in your blog especially its discussion. From the tons of comments on your articles, I guess I am not the only one having all the enjoyment here! keep up the good work... best porn sites list
  • Reply
  •  0 Like
  •  0 Dislike
  • Report
  by DJ on 24-Aug-2019 06:38 pm
Going to graduate school was a positive decision for me. I enjoyed the coursework, the presentations, the fellow students, and the professors. And since my company reimbursed 100% of the tuition, the only cost that I had to pay on my own was for books and supplies. Otherwise, I received a free master’s degree. All that I had to invest was my time. Ontwerp tuin
  • Reply
  •  0 Like
  •  0 Dislike
  • Report
  by DJ on 24-Aug-2019 04:18 pm
I think about it is most required for making more on this get engaged Kinderkleding kopen online
  • Reply
  •  0 Like
  •  0 Dislike
  • Report
  by Harry Cook on 24-Aug-2019 03:31 pm
Thanks for sharing this information. I really like your blog post very much. You have really shared a informative and interesting blog post with people.. vintage oaks custom home builders
  • Reply
  •  0 Like
  •  0 Dislike
  • Report
  by DJ on 24-Aug-2019 02:19 pm
You re in point of fact a just right webmaster. The website loading speed is amazing. It kind of feels that you're doing any distinctive trick. Moreover, The contents are masterpiece. you have done a fantastic activity on this subject! Kinderkleding online
  • Reply
  •  0 Like
  •  0 Dislike
  • Report
  by DJ on 24-Aug-2019 12:33 pm
Going to graduate school was a positive decision for me. I enjoyed the coursework, the presentations, the fellow students, and the professors. And since my company reimbursed 100% of the tuition, the only cost that I had to pay on my own was for books and supplies. Otherwise, I received a free master’s degree. All that I had to invest was my time. Kinderkleding kopen
  • Reply
  •  0 Like
  •  0 Dislike
  • Report
  by IBM SEO on 22-Aug-2019 06:23 pm
Today, I was just browsing along and came upon your blog. Just wanted to say good blog and this article helped me a lot, due to which I have found exactly I was looking. Burj Khalifa Dubai Tour
  • Reply
  •  0 Like
  •  0 Dislike
  • Report
  by DJ on 22-Aug-2019 05:54 pm
Going to graduate school was a positive decision for me. I enjoyed the coursework, the presentations, the fellow students, and the professors. And since my company reimbursed 100% of the tuition, the only cost that I had to pay on my own was for books and supplies. Otherwise, I received a free master’s degree. All that I had to invest was my time. golden goose sneakers sale
  • Reply
  •  0 Like
  •  0 Dislike
  • Report
  by DJ on 22-Aug-2019 02:46 pm
I want to say thanks to you. I have bookmark your site for future updates. Burj Khalifa Dubai Tour
  • Reply
  •  0 Like
  •  0 Dislike
  • Report
  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
  •  1 Like
  •  1 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
  •  2 Like
  •  2 Dislike
  • Report
  by mywifiext.net login and password on 13-Dec-2018 03:14 pm
Thanks.
  • Reply
  •  2 Like
  •  2 Dislike
  • Report
  by Manoj on 01-Jun-2015 12:36 pm
Nice one
  • Reply
  •  4 Like
  •  2 Dislike
  • Report
  by Arjun on 21-May-2015 09:54 pm
Thanks for the code
  • Reply
  •  2 Like
  •  2 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
  •  1 Like
  •  1 Dislike
  • Report