Anarchist
02-21-2005, 04:24 PM
Hello,
The script I am using is writing all but one fields to my database correctly, the email field however is not being written in it's entirety.
If I enter an email address of terry.jones@bt.com, the address written is something like terry.com instead.
I havent got a clue as to what could be causing this but here is the portion of code:
$dbh->do(
"INSERT INTO cust_order (Forename,Surname,House_Number,Street,Locality,Town,County,Postcode,Email) VALUES ('Graham','Smith','3','Doncaster Cresent','Parkfield','Stockton','Cleveland','RD45Ul5','caddf@vfvvb.net')",
undef,
(
$q->param('Forename'),
$q->param('Surname'),
$q->param('House_Number'),
$q->param('Street'),
$q->param('Locality'),
$q->param('Town'),
$q->param('County'),
$q->param('Postcode'),
$q->param('Email'),
)
);
$dbh->disconnect();
Cheers Anarchist
The script I am using is writing all but one fields to my database correctly, the email field however is not being written in it's entirety.
If I enter an email address of terry.jones@bt.com, the address written is something like terry.com instead.
I havent got a clue as to what could be causing this but here is the portion of code:
$dbh->do(
"INSERT INTO cust_order (Forename,Surname,House_Number,Street,Locality,Town,County,Postcode,Email) VALUES ('Graham','Smith','3','Doncaster Cresent','Parkfield','Stockton','Cleveland','RD45Ul5','caddf@vfvvb.net')",
undef,
(
$q->param('Forename'),
$q->param('Surname'),
$q->param('House_Number'),
$q->param('Street'),
$q->param('Locality'),
$q->param('Town'),
$q->param('County'),
$q->param('Postcode'),
$q->param('Email'),
)
);
$dbh->disconnect();
Cheers Anarchist