This is puzzling.
If I run
$sql = "INSERT INTO customer
(custid,usernam e,password,titl e,firstname,las tname,street,to wncity,postcode ,telno,mobile,e mail,glasses)
VALUES
('$custid','$us ername','$passw ord','$title',' $firstname','$l astname','$stre et',
'$towncity','$p ostcode','$teln o','$mobile','$ email','$glasse s')";INSERT
INTO orders(custid,p id)VALUES('$cus tid','$pid')";
$result = mysql_query($sq l);
nothing happens.
So I do a
print "$sql";
and copy the result into a phpmyadmin SQL window
The query works just fine. Anyone know why?
--
Geoff Berrow
It's only Usenet, no one dies.
My opinions, not the committee's, mine.
Simple RFDs http://www.ckdog.co.uk/rfdmaker/
If I run
$sql = "INSERT INTO customer
(custid,usernam e,password,titl e,firstname,las tname,street,to wncity,postcode ,telno,mobile,e mail,glasses)
VALUES
('$custid','$us ername','$passw ord','$title',' $firstname','$l astname','$stre et',
'$towncity','$p ostcode','$teln o','$mobile','$ email','$glasse s')";INSERT
INTO orders(custid,p id)VALUES('$cus tid','$pid')";
$result = mysql_query($sq l);
nothing happens.
So I do a
print "$sql";
and copy the result into a phpmyadmin SQL window
The query works just fine. Anyone know why?
--
Geoff Berrow
It's only Usenet, no one dies.
My opinions, not the committee's, mine.
Simple RFDs http://www.ckdog.co.uk/rfdmaker/
Comment