Please Log in to join the conversation.
Please Log in to join the conversation.
$conn = oci_connect('hr', 'welcome', 'localhost/XE');
if (!$conn) {
$e = oci_error();
trigger_error(htmlentities($e['message'], ENT_QUOTES), E_USER_ERROR);
}
$stid = oci_parse($conn, 'SELECT * FROM employees');
oci_execute($stid);
echo "<table border='1'>\n";
while ($row = oci_fetch_array($stid, OCI_ASSOC+OCI_RETURN_NULLS)) {
echo "<tr>\n";
foreach ($row as $item) {
echo " <td>" . ($item !== null ? htmlentities($item, ENT_QUOTES) : " ") . "</td>\n";
}
echo "</tr>\n";
}
echo "</table>\n";
Please Log in to join the conversation.
Please Log in to join the conversation.
krileon wrote: Looks like you could use a Query field to query for that information instead of a code field. A query action could also be used to push the value to a CB field if you still need storage. If you still want to use the code field then yes you could store it to a field using a field action and substituting in the code field.
Please Log in to join the conversation.
edmundcheong wrote: The query field could connect to Oracle?
Please Log in to join the conversation.