hi all i have duplicated a script i had created and adapted it to something else i want and now im getting a Fatal error: Call to undefined function get_interests_data_from_post() in /home/jktempla/public_html/checkboxes/check.php on line 8

can someone help with this heres the coding for that section

<?php 

include("connection.php");



$interests = get_interests_data_from_post() ;

/*
echo $interests . '<br/>';
*/

$query = 'insert into checkbox set name = "'.$interests  ;

//echo $query ;

$insert = mysqli_query ( $mysqli,$query ) or die(mysqli_error($mysqli)) ;

if($insert)
{
    //echo "added" ;
    header("location: addedinterests.php");
    exit;   
}


function get_ltm_data_from_post(){
}

Thankyou in advance

Edited 10 Months Ago by janicemurby: typo

So, where is this function defined? I don't see a definition anywhere in your code.
Also, please make clear what your intentions for this are.

This question has already been answered. Start a new discussion instead.