PROTECTED]]
> Date: lundi, 4. mars 2002 18:27
> À:[EMAIL PROTECTED]
> Objet:Re: [PHP-WIN] cannot write to mySQL database
>
>
> "Nicole Amashta" <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > Could
In that case, you probably could have accessed your variables like so:
$HTTP_POST_VARS["action"]
or $HTTP_GET_VARS["me"]
Depending on how the variables were submitted (POST or GET).
Nicole
www.aeontrek.com
Pilotdave <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED].;
> Woohoo, the
Woohoo, the problem seems to have been register_globals being off. In
reading the php.ini info about it, it sounds like having it on can be
dangerous. I tried following the instructions in the manual about using
variables with register_globals off but couldnt get it to work so i just
turned it o
ubject: Re: [PHP-WIN] cannot write to mySQL database
Ok, making progress. My updated code is below. with full error checking, i
get no errors on loading the page. I do get an error when i attempt to
submit. It does not recognize $action as being a variable:
[Mon Mar 04 13:46:33 2002] [error] PHP
Ok, making progress. My updated code is below. with full error checking, i
get no errors on loading the page. I do get an error when i attempt to
submit. It does not recognize $action as being a variable:
[Mon Mar 04 13:46:33 2002] [error] PHP Warning: Undefined variable: action
in c:\homepa
Also, for the sake of testing, replace with the actual
script name.
Nicole
www.aeontrek.com
"Nicole Amashta" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED].;
> Another thing I suggest is, instead of relying on the value from $submit
> (your submit button), create a hidden field an
Sorry, i lost the { in my code. Below it is corrected.
If ( $action == "submit" )
{
## do your insert query here
}
else {
## display the form
}
"Nicole Amashta" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED].;
> Another thing I suggest is, in
Another thing I suggest is, instead of relying on the value from $submit
(your submit button), create a hidden field and call it "action" or whatever
you want that makes sense to you. This hidden field will store the value of
the action you will take when the form is submitted. For example, you ca
OK, go to your php.ini file
and change your error_reporting level to this:
error_reporting = E_ALL & ~E_NOTICE
See if that at least yields different "error" or "warning" messages.
Let me know what happens.
Nicole
www.aeontrek.com
"Pilotdave" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PR
"Nicole Amashta" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED].;
> Could you post the code you are trying to use to do this? It may just be a
> coding issue and not MySQL at all.
>
Sure. The database is called movies1db, username is movies, password is
database. This definitely
Could you post the code you are trying to use to do this? It may just be a
coding issue and not MySQL at all.
Nicole
www.aeontrek.com
"Pilotdave" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED].;
> I don't think that's it. Here's more info if it helps... I can input
data
> from the
:[EMAIL PROTECTED]]
Sent: Saturday, March 02, 2002 9:01 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP-WIN] cannot write to mySQL database
I don't think that's it. Here's more info if it helps... I can input data
from the mysql command line, just not through web pages. I have tr
I don't think that's it. Here's more info if it helps... I can input data
from the mysql command line, just not through web pages. I have tried a
number of different scripts and they all work to view data from the
database, but none seem to be able to send data back to the database. I get
no e
You probably have Mysql set as 'Read Only' Look at the doc.
A+
Alain
-Original Message-
From: pilotdave [mailto:[EMAIL PROTECTED]]
Sent: Saturday, March 02, 2002 5:06 PM
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] cannot write to mySQL database
I am just setting up my first php/mySQL/Apac
14 matches
Mail list logo