mark1111 Posted May 19, 2007 Share Posted May 19, 2007 hi, im pretty new to using PHP with oracle, im running the following script <?php // set server access variables kjl require('_includes/connect.inc'); //Connection details // if id provided, then delete that record if (isset($_GET['COTTAGE_NAME'])) { // create query to delete record $query = "DELETE FROM COTTAGE WHERE COTTAGE_NAME = ".$_GET['COTTAGE_NAME']; //Parsing with some error reporting $stmt = parse_execute($connection,$query); When running this im getting the following error Fatal error: Call to undefined function parse_execute() in /study/comp/c3035544/webpages/Bronte/_admin/mark.php on line 18 any help with this is very much appreciated. Quote Link to comment Share on other sites More sharing options...
Illusion Posted May 25, 2007 Share Posted May 25, 2007 $query = "DELETE FROM COTTAGE WHERE COTTAGE_NAME = ".$_GET['COTTAGE_NAME']; as you are concatination the string with out giving the quotes, it is just like COTTAGE_NAME=Name so change the code such that you have quotes for that one. Quote Link to comment Share on other sites More sharing options...
Feenix566 Posted July 3, 2007 Share Posted July 3, 2007 Well, there is no function called "parse_execute()", so that could be why it's telling you it's not defined. Try OCIParse() and OCIExecute(). Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.