Jump to content

Recommended Posts

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

 

    $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.

  • 1 month later...
This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.