Code is
function insert_thumb_path($options)
{
global $config;
$vid = $options[‘vid’];
$index = intval( ($vid – 1) / $config[‘max_thumb_folders’] );
$tmb_folder = ‘tmb’;
if ($index !== 0) {
$tmb_folder = ‘tmb’.$index;
}
$get_posts= “SELECT * FROM description WHERE ‘$vid’ “;
$run_posts = mysqli_query($con,$get_posts);
$output = $get_posts;
return $output;
}
but i am getting error
my sql databse is
look at my vid