Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Binding questions

Status
Not open for further replies.

TheKidd

IS-IT--Management
May 17, 2000
167
US
Can someone tell me what is wrong with this code? I get no errors and no output. Thanks.

<?php
if (isset($_POST['submit'])) {
$lastname=htmlentities($_POST['lastname']);
}
$c = oci_connect('user', 'password', '//server/DB');
$s = oci_parse($c, "select EMP_KEY, EMP_FIRST_NAME, EMP_LAST_NAME from EMP where EMP_LAST_NAME=:lastname");
ocibindbyname($s, ":lastname", $lastname);
oci_execute($s);
while (ocifetch($s)) {
echo ociresult($s, "EMP_KEY");
echo ociresult($s, "EMP_FIRST_NAME");
echo ociresult($s, "EMP_LAST_NAME");
}
oci_free_statement($s);
include "default.html";
?>
 
I have no idea. Are your notices, warnings and errors configured to be shown?

+++ Despite being wrong in every important aspect, that is a very good analogy +++
Hex (in Darwin's Watch)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top