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

sussed it had a 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.

Typo? Ok. But the function does nothing. Again, what is your intention?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.