Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: Oracle and PHP question

Re: Oracle and PHP question

From: Mladen Gogala <gogala_at_sbcglobal.net>
Date: Fri, 17 Mar 2006 04:58:37 GMT
Message-Id: <pan.2006.03.17.04.58.36.464666@sbcglobal.net>


On Thu, 16 Mar 2006 21:16:53 +0100, Steff wrote:
> I have a question mark here because I don't know how to do it

That sounds like a good reason to ask a question. You can do it using the same trick I shown you before:

$query="insert into veg_type (id_type) values (:BIGMAC)";  

$stmt=oci_parse($c1,$query);

$ora_bind_by_name($stmt,":BIGMAC",$vegetable);  

oci_execute($stmt);

The other way would be by inserting constants:

$query="insert into veg_type (id_type) values ('castorbean')"

And then you can proceed as you originally did.

-- 
http://www.mgogala.com
Received on Thu Mar 16 2006 - 22:58:37 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US