Re: [PHP] Re: change value of session variable?

2004-07-21 Thread Five
>Sounds like an old bug in PHP. What version are you using? I've been trying to get it to work at: http://members.lycos.co.uk/primeooze/info.php I also have ( apache/php 4.3.4/mysql ) installed on my computer and I get much more satisfactory results on it. I have made progress and some of my con

Re: [PHP] Re: change value of session variable?

2004-07-21 Thread Five
"John W. Holmes" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Five wrote: > > > > page1.php > > > session_start(); > > echo 'page #1'; > > > > echo $_SESSION[

Re: [PHP] Re: change value of session variable?

2004-07-21 Thread Five
"Chris Shiflett" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > --- Five <[EMAIL PROTECTED]> wrote: > > My problem isn't the logic of when and where to output variable > > values. It's figuring out when a session variable will ac

Re: [PHP] Re: change value of session variable?

2004-07-21 Thread Five
The problem is > that the session variable won't accept a new value just any old >where in the code on the second page (apparently.) Or on the first one for that matter. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: change value of session variable?

2004-07-21 Thread Five
"John W. Holmes" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Chris Shiflett wrote: > > > --- Five <[EMAIL PROTECTED]> wrote: > >>That did it! I wonder if there is a way, then, to have it work even if > >>the variable is initial

Re: [PHP] Re: change value of session variable?

2004-07-21 Thread Five
"Chris Shiflett" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > --- Five <[EMAIL PROTECTED]> wrote: > > That did it! I wonder if there is a way, then, to have it work even if > > the variable is initialized after it is echoed. > > You see,

Re: [PHP] Re: change value of session variable?

2004-07-21 Thread Five
"Justin Patrin" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On Wed, 21 Jul 2004 18:43:12 -0400, Five <[EMAIL PROTECTED]> wrote: > > > > "Justin Patrin" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > >

Re: [PHP] Re: change value of session variable?

2004-07-21 Thread Five
"Chris Shiflett" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > --- Five <[EMAIL PROTECTED]> wrote: > > page1.php > > > session_start(); > > echo 'page #1'; > > > > echo $_SESSION[&#

Re: [PHP] Re: change value of session variable?

2004-07-21 Thread Five
"Justin Patrin" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On Wed, 21 Jul 2004 17:50:36 -0400, Five <[EMAIL PROTECTED]> wrote: > > > > "Five" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > >

[PHP] Re: change value of session variable?

2004-07-21 Thread Five
"Five" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > page1.php > session_start(); > echo 'page #1'; > > echo $_SESSION['favcolor']; > $_SESSION['favcolor'] = 'green'; > > echo 'page 2';

[PHP] Re: change value of session variable?

2004-07-21 Thread Five
page1.php '; echo $_SESSION['favcolor']; $_SESSION['favcolor'] = 'green'; echo 'page 2'; ?> page2.php '; echo $_SESSION['favcolor']; $_SESSION['favcolor'] = 'blue'; echo 'page 1'; ?> -- PHP General Mailing List (http://www.php.net/) To uns

[PHP] change value of session variable?

2004-07-21 Thread Five
Is it possible to assign a value to a session variable on say, page1.php: $_SESSION['favcolor'] = 'blue'; and then on another page, say page2.php reassign the value: $_SESSION['favcolor'] = 'green'; ? So far experimentation says no. -- PHP General Mailing List (http://www.php.net/) To unsubsc

Re: [PHP] upload an image and store it in mysql

2004-07-16 Thread Five
"Raditha Dissanayake" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > The approach that an overwhelming majority of PHP developers (and other > developers for that matter) use is to simply store the image on the > file system. If these images are part of a web application you can t

Re: [PHP] upload an image and store it in mysql

2004-07-16 Thread Five
"Ed Lazor" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > You're seeing raw data and need to specify the mime type with headers. Search the > mailing list archive, there's a few example scripts in there. Just keep in mine that you need to create a separate script that handles th

Re: [PHP] upload an image and store it in mysql

2004-07-14 Thread Five
"John W. Holmes" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Five wrote: > > I have php code that takes text input from a webpage and and stores it in a mysql > > data base. > > I tried uploading small images (jpg) using basically the sa

[PHP] upload an image and store it in mysql

2004-07-14 Thread Five
I have php code that takes text input from a webpage and and stores it in a mysql data base. I tried uploading small images (jpg) using basically the same syntax but they don't make it into the data base. Does anyone know of a simple tutorial that shows how to do this? -- PHP General Mailing Li

[PHP] mysql - can't use the copy/paste function

2004-03-30 Thread Five
Windows 98 se When using the dos window command line for mysql commands everything works fine except if I try to use the paste function to paste pre-typed commands, the window freezes. This is aaannnoooyyyiiinnnggg. advance thanks Dale -- PHP General Mailing List (http://www.php.net/) To unsub

Re: [PHP] Re: string function that inserts a char

2004-03-20 Thread Five
"Jason Giangrande" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Five wrote: > > "Five" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > > >>I just finished looking through string functions > >>http://

[PHP] Re: string function that inserts a char

2004-03-20 Thread Five
"Five" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I just finished looking through string functions > http://us2.php.net/manual/en/ref.strings.php > and can't find one that inserts a character, not replaces one. > > If there's a string

[PHP] string function that inserts a char

2004-03-20 Thread Five
I just finished looking through string functions http://us2.php.net/manual/en/ref.strings.php and can't find one that inserts a character, not replaces one. If there's a string that's over 50 chars long without a space, I want to insert a space without replacing or losing any of the original char

Re: Re[2]: [PHP] Re: Javascript Mouseover Help

2004-03-18 Thread Five
"Tom Rogers" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi, > > Friday, March 19, 2004, 1:11:52 AM, you wrote: > > > F> Doesn't $name = "blah blah"; define it enough? > > > Not if it comes after $table_1 = "".$name.""; > at this point $name does not exist. Try turning on E_A

Re: [PHP] Re: Javascript Mouseover Help

2004-03-18 Thread Five
> F> F> $table_1 = "".$name.""; > F> $table_2 = "".$message.""; > > F> $name = "blah blah"; > > F> if(blah blah){ > F> echo $table_1;} > F> else{ > F> echo $table_2;} > ?>> > > You have to define variable $name before you try to use it. > The only other way would be to eval the string but

[PHP] Re: Javascript Mouseover Help

2004-03-18 Thread Five
I would be very interested in a solution to this problem because I have a similar one. I stored tables on a page. examp: $table_1 = "".$name.""; $table_2 = "".$message.""; etc... and included the page and used the variables (echo $table_1;) The table displayed as it should, however the variabl

Re: [PHP] how to convert array into integer

2004-03-13 Thread Five
"Firman Wandayandi" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi Kenneth, > > You can implode an array first, and convert it to integer, see below. > > $number = (int) implode('', $yourarray); > > Good Luck, > Firman > > - Original Message - > From: "Kenneth" <[EMA

Re: [PHP] Re: Are $_POST and $_GET interchangable? MORE

2004-03-10 Thread Five
"Jay Blanchard" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] [snip] stuff [/snip] >From http://www.w3.org/TR/html4/interact/forms.html#h-17.13.1 17.13.1 Form submission method The method attribute of the FORM element specifies the HTTP method used to send the form to the p

Re: [PHP] Re: Are $_POST and $_GET interchangable?

2004-03-10 Thread Five
"Jay Blanchard" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] [snip] for $_GET[], I found indirect references (documentation of other subjects that use $_GET[] and $_POST[] ) but no documentation focusing directly on either. Is there on line documentation specifically dedicated to

[PHP] Re: Are $_POST and $_GET interchangable?

2004-03-10 Thread Five
"David Jackson" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I understand the difference between how they process from data. > Most application seem to reply on $_GET which display the > session/from/cookie values in the URL windows. > > What I'm not clear on are there times when

[PHP] Re: php/mysql run on Microsoft Personal Web Server 4.0 ?

2004-03-05 Thread Five
"Five" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I've been learning php/mysql by uploading my scripts to a php/mysql enabled website. > It's getting to be a drag uploading each script change to check if it works. > I think this can be don

[PHP] Re: php/mysql run on Microsoft Personal Web Server 4.0 ?

2004-03-05 Thread Five
"Five" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I've been learning php/mysql by uploading my scripts to a php/mysql enabled website. > It's getting to be a drag uploading each script change to check if it works. > I think this can be don

[PHP] php/mysql run on Microsoft Personal Web Server 4.0 ?

2004-03-05 Thread Five
I've been learning php/mysql by uploading my scripts to a php/mysql enabled website. It's getting to be a drag uploading each script change to check if it works. I think this can be done but wanted to double check before starting instalation. Will "Microsoft Personal Web Server 4.0" running on W

Re: [PHP] Re: Get MySQL table field names

2004-02-29 Thread Five
"Jason Wong" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On Monday 01 March 2004 10:04, Five wrote: > > "Michael Kunze" <[EMAIL PROTECTED]> wrote in message > > news:[EMAIL PROTECTED] > > > > > Matt Palermo wrote

[PHP] Re: Get MySQL table field names

2004-02-29 Thread Five
"Michael Kunze" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Matt Palermo wrote: > > > How can I get the field names from a specified MySQL table? I don't need > > the data, I just want to get an array of the tables field names. > > use 'DESC table_name;' > > -- > Michael Kunze

[PHP] Re: Text cleaning?

2004-02-27 Thread Five
You mean something like this? $message = ereg_replace( "\n", " ", $message); It seems to replace all new line instances with a blank space. "Karl Timmermann" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Does anyone have some PHP code to remove incorrect carriage returns? > > E