Anthony,
That is an incorrect syntax from what I can see. What are you trying to
do? insert a string into a table's column?
Your execution below is basically doing the following:
"INSERT INTO selecttable values(SELECT FROM table WHERE language= english)"
Which is incorrect.
v.
----------------------------------------------------------------------------------------
This is a PRIVATE message. If you are not the intended recipient, please
delete without copying and kindly advise us by e-mail of the mistake in
delivery. NOTE: Regardless of content, this e-mail shall not operate to
bind CSC to any order or other contract unless pursuant to explicit written
agreement or government initiative expressly permitting the use of e-mail
for such purpose.
----------------------------------------------------------------------------------------
|---------+--------------------------->
| | "anthony" |
| | <awards |
| | @wanadoo.fr> |
| | |
| | 06/05/03 09:14 |
| | AM |
| | |
|---------+--------------------------->
>---------------------------------------------------------------------------------------------------------------|
|
|
| To: [EMAIL PROTECTED]
|
| cc:
|
| Subject: Insert Statment
|
>---------------------------------------------------------------------------------------------------------------|
Hi,
is it possible if I have
$a="SELECT FROM table WHERE language= english";
and I want to put the statment as text into the database like so
INSERT INTO selecttable values(?);
$sth->execute($a);
I'm getting an error so maybe it is not possible. Any help is appreciated.
Anthony