Re: [PHP] Re: array question

2001-07-19 Thread Ryan Fischer
You wrote: > Also, consider using print or echo as opposed to printf. And lastly, you > really don't need to use mysql_free_result, PHP does this automagically > after the script dies. Sorry for picking on you, you may have your > reasons. ;-) Really? Then why was it that, when I neglected to

RE: [PHP] re: array question

2001-09-18 Thread Jack Dempsey
perhaps i'm misunderstanding you, but why not use a for loop? for($i=0;$imailto:[EMAIL PROTECTED]] Sent: Tuesday, September 18, 2001 10:11 PM To: [EMAIL PROTECTED] Subject: [PHP] re: array question Oh, that works wonders and for the first time in 24 hours I am smiling! One more thing to make i

RE: [PHP] re: array question

2001-09-18 Thread Scott
Jack- Thanks for the response, but I don't want to echo the array, I want to bundle it into a new variable that will be called as part of a str_replace. The array is created from a loop through all the navigation items in a database. The code is below, if I echo the code is formatted in the wron

Re: [PHP] re: array question

2001-09-18 Thread Jason Bell
= $value"; } - Original Message - From: "Jack Dempsey" <[EMAIL PROTECTED]> To: "Scott" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Tuesday, September 18, 2001 7:29 PM Subject: RE: [PHP] re: array question > perhaps i'm misunderstanding you,

Re: [PHP] re: array question

2001-09-18 Thread Scott
;[EMAIL PROTECTED]> >To: "Scott" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> >Sent: Tuesday, September 18, 2001 7:29 PM >Subject: RE: [PHP] re: array question > > > > perhaps i'm misunderstanding you, but why not use a for loop? > > > > fo

RE: [PHP] re: array question

2001-09-18 Thread Hoover, Josh
If you want to store all the values in the array in one variable (just as a string with delimiters maybe?) Try this: foreach ($array as $value) { $temp .= $value . "|"; } Josh Hoover KnowledgeStorm, Inc. [EMAIL PROTECTED] Searching for a new IT solution for your company? Need to improve

Re: [PHP] re: array question

2001-09-18 Thread David Robley
On Wed, 19 Sep 2001 12:28, Scott wrote: > That works, thank you, but it prints at the top of my page, is there > a way to store that array into a single variable? > Yes - implode() -- David Robley Techno-JoaT, Web Maintainer, Mail List Admin, etc CENTRE FOR INJURY STUDIES Flinders Uni

Re: [PHP] re: array question

2001-09-18 Thread Scott
Thank YOU! It worked wonderful, I used a blank to separate the content like this: $displn = implode("",$new_data); Thank you again and thank you to everyone for helping me through this! At 01:15 PM 9/19/2001 +0930, David Robley wrote: >On Wed, 19 Sep 2001 12:28, Scott wrote: > > That works, t