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. Link to comment https://forums.phpfreaks.com/topic/52143-undefined-function-help/ 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. Link to comment https://forums.phpfreaks.com/topic/52143-undefined-function-help/#findComment-261582 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(). Link to comment https://forums.phpfreaks.com/topic/52143-undefined-function-help/#findComment-288872 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.