[wdvltalk] Issues with PHP arrays

2008-10-17 Thread Matthew Macdonald-Wallace
Hi all, It's been too quiet on this list for too long, so here's one to wake you all up on a friday afternoon! I've a number of functions that return arrays to the variable that calls them. The issue I have is that the Array appears to be populated twice - I'm printing them out using

Re: [Bulk] [wdvltalk] Issues with PHP arrays

2008-10-17 Thread Portman
Hi, It has been too quiet on here for too long! :-) Can you send a little more code? Maybe a few lines before and after this and the print command code? Riva On 10/17/2008 9:42 AM, Matthew Macdonald-Wallace wrote: Hi all, It's been too quiet on this list for too long, so here's one to

Re: [Bulk] [wdvltalk] Issues with PHP arrays

2008-10-17 Thread Ross Clutterbuck
An example of one of the functions that populates the variables would be good to see... 2008/10/17 Portman [EMAIL PROTECTED]: Hi, It has been too quiet on here for too long! :-) Can you send a little more code? Maybe a few lines before and after this and the print command code? Riva On

RE: [wdvltalk] Issues with PHP arrays

2008-10-17 Thread Chrome
Hi all, It's been too quiet on this list for too long, so here's one to wake you all up on a friday afternoon! I've a number of functions that return arrays to the variable that calls them. The issue I have is that the Array appears to be populated twice - I'm printing them out using

Re: [Bulk] [wdvltalk] Issues with PHP arrays

2008-10-17 Thread Matthew Macdonald-Wallace
Quoting Portman [EMAIL PROTECTED]: Hi, It has been too quiet on here for too long! :-) Can you send a little more code? Maybe a few lines before and after this and the print command code? These are in different files, however it's the relevant code: function get_user_details($userId) {

RE: [wdvltalk] Issues with PHP arrays

2008-10-17 Thread Matthew Macdonald-Wallace
Quoting Chrome [EMAIL PROTECTED]: If that is the case try MYSQL_ASSOC or MYSQL_NUM... E.g.: mysql_fetch_array(SELECT * FROM table, MYSQL_ASSOC); HTH Absolute bloody magic - virtual beers to the man in the corner... :o) M. -- Matthew Macdonald-Wallace [EMAIL PROTECTED]

RE: [wdvltalk] Issues with PHP arrays

2008-10-17 Thread Chrome
Quoting Chrome [EMAIL PROTECTED]: If that is the case try MYSQL_ASSOC or MYSQL_NUM... E.g.: mysql_fetch_array(SELECT * FROM table, MYSQL_ASSOC); HTH Absolute bloody magic - virtual beers to the man in the corner... :o) A just what I need on a Friday with work drawing to a