Hi,
On Wed, Mar 26, 2003 at 02:51:22PM -0500, Serge Paquin wrote:
Do a print $testField; first. I think what might be happing is that you have
register globals turned off (as you should it's a security problem).
Try:
$sql = INSERT INTO testTable values ('', '${_REQUEST['testField']}');
When I enter data into my web page and active my PHP script. The page tells me that
the data has been updated to my database, but when I check the database no data is
entered. A row is created but no data is entered. Can any help?
On 26-Mar-2003 BRYANT, LANCE wrote:
When I enter data into my web page and active my PHP script. The page
tells me that the data has been updated to my database, but when I check
the database no data is entered. A row is created but no data is
entered. Can any help?
I can't see yer code
Here is a copy of the php script that I'm using. I can create tables and query info
just not add data to the database.
?php
//open the connection
$conn = mysql_connect(onyx,doghead,dogleg);
// pick the database to use
mysql_select_db(mydb,$conn);
//create the SQL statement
$sql = INSERT
Do a print $testField; first. I think what might be happing is that you have register
globals turned off (as you should it's a security problem).
Try:
$sql = INSERT INTO testTable values ('', '${_REQUEST['testField']}');
and see if that solves your problem.
Serge.
On Wed, 26 Mar 2003
On 26-Mar-2003 BRYANT, LANCE wrote:
Here is a copy of the php script that I'm using. I can create tables and
query info just not add data to the database.
?php
//open the connection
$conn = mysql_connect(onyx,doghead,dogleg);
// pick the database to use