oci_define_by_name() defines PHP variables for fetches
of SQL-Columns. Be careful that Oracle uses ALL-UPPERCASE column names,
whereby in your select you can also write lowercase.
oci_define_by_name() expects
the column_name to be in uppercase. If you
define a variable that doesn't exists in your select statement, no
error will issued.
If you need to define an abstract datatype (LOB/ROWID/BFILE) you
must allocate it first using
oci_new_descriptor(). See also the
oci_bind_by_name() function.
Example 1. oci_define_by_name() example
<?php /* oci_define_by_name example - thies at thieso dot net (980219) */
$conn = oci_connect("scott", "tiger");
$stmt = oci_parse($conn, "SELECT empno, ename FROM emp");
Note:
In PHP versions before 5.0.0 you must use ocidefinebyname() instead.
This name still can be used, it was left as alias of
oci_define_by_name() for downwards compatability.
This, however, is deprecated and not recommended.
Php oci define by name Function syntax tag
oci define by name php code on this is provided for your study purpose, it will guide you to know how create and design a website using php. use it to practice and train your self online
Php oci define by name syntax tutorial
php tutorial guide and code design are for easy learning and programming. The code practice section provided at the top is for practising of this syntax. Use the code section up to practice your php programming online. Learning php is very easy, all you need is to use the examples on this site and practice them to perfect your skills.