Serban [mailto:[EMAIL PROTECTED]
Sent: Monday, September 13, 2004 4:30 AM
To: [EMAIL PROTECTED]
Subject: [PHP] I don't understand why
-- Forwarded message --
From: Nicolae Serban <[EMAIL PROTECTED]>
Date: Mon, 13 Sep 2004 01:58:38 +0300
Subject: [PHP] I don'
http://www.php.net/manual/ru/faq.databases.php#faq.databases.mysql.php5
---
Alexander Kleshchevnikov,
DirectEDI Developer
email:[EMAIL PROTECTED]
icq: 153617972
---
"Nicolae Serban" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL
-- Forwarded message --
From: Nicolae Serban <[EMAIL PROTECTED]>
Date: Mon, 13 Sep 2004 01:58:38 +0300
Subject: [PHP] I don't understand why
To: [EMAIL PROTECTED]
I just install the PHP 5 !
This is the code
and this is the error messege WHY !!!
Fatal err
I just install the PHP 5 !
This is the code
and this is the error messege WHY !!!
Fatal error: Call to undefined function mysql_connect() in
C:\Apache\Apache2\htdocs\ttt.php on line 3
Thanks
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsu
>You're trying to assign to a function, seriousley messed up. I
reccomend you make sure you know PHP before going any >further.
Leif,
Let's try and be a little more constructive.
Jason,
mysql_query is a function, so you need to "call" it, not "assign to
it". For example.
(is th
Jason Martyn wrote:
Here's kinda what I'm trying to do (not working of course).
[snip unimportant code]
mysql_query = ("select");
while ($result = mysql_fetch_array($sql_uc, MYSQL_ASSOC)
{
mysql_query .= (" ". $season .".".$result['field_name']." as ".$result['dis
Hey,
I'm trying to create a table based on user configurations (saved in mysql db). The
user is able to filter the table view to only the columns he needs.
The tables are setup like this:
each season has its own table.
config table
currentseason table
Each column in the season table = row in th
y_session_var]
> is enough.
>
> Kirk
>
>
> > -Original Message-
> > From: Michael Champagne [mailto:[EMAIL PROTECTED]]
> > Subject: RE: [PHP] I don't understand HTTP_SESSION_VARS
> >
> >
> > YES! That's what it was. You rule ma
Mike, my experiments suggest you can also get rid of the session_register()
statement. Seems that simply assigning to $HTTP_SESSION_VARS[my_session_var]
is enough.
Kirk
> -Original Message-
> From: Michael Champagne [mailto:[EMAIL PROTECTED]]
> Subject: RE: [PHP] I don
YES! That's what it was. You rule man. Why would session_start need to come
before the global variable declaration? You'd think session_start would need
$HTTP_SESSION_VARS declared beforehand to load the session variables into?
Thanks,
Mike
> OK, try this. The session_start() has to come bef
OK, try this. The session_start() has to come before the global statement:
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
Hi,
Go post your globals question at the php forum at www.devshed.com . You
will usually get extremely quick responses to questions about php.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To con
Hi,
The default php setting is with track vars on, and register globals on I
believe. I have never tried anything else. I turned globals off to see if
I could help you with your problem. If you check the manual, they do not
put much explanation into how to use sessions with globals off, thoug
I tried quoting it as well - my last post is where I'm currently at with this.
Still doesn't work, but doesn't crash anything either.
Mike
> Also, you are registering a variable rather than a name. So, unless there
> is a quoted name for the variable value, I don't think that would work. For
>
}
> >
> > Kirk
> >
> >
> > > -----Original Message-
> > > From: Michael Champagne [mailto:[EMAIL PROTECTED]]
> > > Sent: Friday, March 23, 2001 1:32 PM
> > > To: PHP General Mailing List
> > > Subject: [PHP] I don't understand
Also, you are registering a variable rather than a name. So, unless there
is a quoted name for the variable value, I don't think that would work. For
instance,
$a="b"
session_register($a);
actually registers a variable called $b. I made that mistake in my post
too.
--
PHP General Mailing
> > session_register($HTTP_SESSION_VARS['my_session_var']);
> > }
>
> Kirk
>
>
> > -Original Message-
> > From: Michael Champagne [mailto:[EMAIL PROTECTED]]
> > Sent: Friday, March 23, 2001 1:32 PM
> > To: PHP General Mailing List
> > Subj
ON_VARS['my_session_var']);
> > }
>
> Kirk
>
>
> > -Original Message-
> > From: Michael Champagne [mailto:[EMAIL PROTECTED]]
> > Sent: Friday, March 23, 2001 1:32 PM
> > To: PHP General Mailing List
> > Subject: [PHP] I don't un
r']);
> }
Kirk
> -Original Message-
> From: Michael Champagne [mailto:[EMAIL PROTECTED]]
> Sent: Friday, March 23, 2001 1:32 PM
> To: PHP General Mailing List
> Subject: [PHP] I don't understand HTTP_SESSION_VARS
>
>
> I'm still having problems w
I tried this and could not get this working either. Does anyone know which is
the best way to do it? What are the pros and cons of doing this with
track_vars or as globals?
Thanks,
Mike
> Hi,
>
> The php manual at: http://www.php.net/manual/en/ref.session.php
> says:
>
> "If track_vars is enab
Hi,
The php manual at: http://www.php.net/manual/en/ref.session.php
says:
"If track_vars is enabled and register_globals is disabled, only members of
the global associative array $HTTP_SESSION_VARS can be registered as session
variables. "
so, did you try this:
session_register($HTTP_SESSION_V
I'm still having problems with this. I was able to get sessions and session
variables working ok with register_globals=on, but I had read that it was
better not to keep register_globals on so I turned it off and I'm trying to
figure out how this works now.
I'm registering a variable in one funct
22 matches
Mail list logo