>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
"John W. Holmes" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]
> Five wrote:
> >
> > page1.php
> > > session_start();
> > echo 'page #1';
> >
> > echo $_SESSION[
"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
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
"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
"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,
"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]
> >
"Chris Shiflett" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]
> --- Five <[EMAIL PROTECTED]> wrote:
> > page1.php
> > > session_start();
> > echo 'page #1';
> >
> > echo $_SESSION[
"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]
> >
"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';
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
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
"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
"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
"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
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
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
"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://
"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
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
"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
> 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
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
"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
"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
"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
"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
"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
"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
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
"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
"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
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
33 matches
Mail list logo