[PHP] re: array question

2001-09-18 Thread Scott
Oh, that works wonders and for the first time in 24 hours I am smiling! One more thing to make it complete. Is there a way to loop through the display of that array? In other words, I now have an array called $new_data and can call each element in the array by doing $new_data[0], etc, but I n

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
or, assuming PHP4 is in use, you can do it a little cleaner, and use a foreach loop: foreach ($array as $value) { print $value; } if you wanted the key names, as well as the value, you could use this: foreach ($array as $key => $value) { print "$key of \$array = $value"; } - Origi

[PHP] Call a script without a return

2001-09-18 Thread Alex Shi
Hi, I know my question might be a little bit strange but I am really thinking for the posiblity. Suppose we have a page and on it a button link to a backend script. When click the button, at the server side the scritp will be called. My question is, how can we program the script that just let

Re: [PHP] re: array question

2001-09-18 Thread Scott
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? At 07:43 PM 9/18/2001 -0700, Jason Bell wrote: >or, assuming PHP4 is in use, you can do it a little cleaner, and use a >foreach loop: > >foreach ($array as $value) { > p

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

[PHP] Showing up variables in URL !

2001-09-18 Thread Arcadius A.
Hello ! We all know how to pass value to variable using an URL. So, how can I do the inverse ? I mean , showing the value of a variable in the URL? for instance my page "index.php" is : So, how to make PHP so that when I load my page in the browser(typing "index.php" in the adress bar) , it w

Re: [PHP] Showing up variables in URL !

2001-09-18 Thread Richard Baskett
The question is... "Why would you want to do this?" Rick > Hello ! > We all know how to pass value to variable using an URL. > So, how can I do the inverse ? > I mean , showing the value of a variable in the URL? > > for instance my page "index.php" is : > > $greetings="Hello" ; > echo $gree

Re: [PHP] Showing up variables in URL !

2001-09-18 Thread Alex Shi
Try this: Alex - Original Message - From: "Arcadius A." <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, September 19, 2001 6:14 AM Subject: [PHP] Showing up variables in URL ! > Hello ! > We all know how to pass value to variable using an URL. > So, how can I do the inve

[PHP] One more for the night

2001-09-18 Thread Scott
I promise, this is the last one tonight :) I want to be able to pull up all the items for navigation on the left menu, then each item might have a sub item underneath it, but I only want to call them when you are on that section. The code is below. Example, when you first hit the page you will

[PHP] Passing Variables and the include command

2001-09-18 Thread Andrew V. Romero
I was wondering if it is possible to pass some variables to a php file that will be accessed via the include command? For example, I am working on creating a nicer "hits" counter and would like to just write the code for the counter once and then have each page access that counter.php3 and pass a

Re: [PHP] Passing Variables and the include command

2001-09-18 Thread Rasmus Lerdorf
Included files share the same global symbol table as the parent file. So, simply do: $file = "somefile.txt"; include "counter.php"; And by the way, please don't use "$file". It makes no sense. Just $file. -Rasmus On Tue, 18 Sep 2001, Andrew V. Romero wrote: > I was wondering if it is possi

Re: [PHP] real simple regex

2001-09-18 Thread Frank M. Kromann
The imap_mail() function connects to a SMTP the same way mail() does. It just takes a few paremeters more allowing you to set Reply-To and other headers normaly defined in PHP.INI. In general the imap functions can be used with IMAPĀ¤ and POP3 servers to read mails. - Frank > but can imap repl

[PHP] phpMyAdmin problem that might have you fustered

2001-09-18 Thread Adam
I found that if you were trying to back up a database in this application, and you had a # mark anywhere on an entry, this would cause a fault when you tried to reload the script back into the sql statememnt. you will have to make a find and replace script on page to convert it to a different char

[PHP] Download

2001-09-18 Thread Ashley M. Kirchner
Okay, so since www.php.net and de.php.net are unreachable, I hit us.php.net. Worked. Went to downloads, clicked on the Complete Source link and to my surprise it went back to trying to contact www.php.net. Well, that don't do me any good. Anyone have any suggestions for getti

[PHP] Re: Call a script without a return

2001-09-18 Thread _lallous
check lgwm.org goto reading comprehension section and then double-click or select any word on this page and see what happens! Yes it can be done what you're thinking of. "Alex Shi" <[EMAIL PROTECTED]> wrote in message 005d01c140b6$67c19550$0105050a@pony">news:005d01c140b6$67c19550$0105050a@pony.

Re: [PHP] Download

2001-09-18 Thread David Robley
On Wed, 19 Sep 2001 16:02, Ashley M. Kirchner wrote: > Okay, so since www.php.net and de.php.net are unreachable, I hit > us.php.net. Worked. Went to downloads, clicked on the Complete > Source link and to my surprise it went back to trying to contact > www.php.net. Well, that don't do me any g

<    1   2