sindhant-bahuddeshiy-seva-bhavi-santha-aurangabad PHP warning

PHP warning

Undefined array key 2

/home3/searchdo/public_html/profiles/profile.php(2)

01 <?php $uri_segments = explode('/', parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH));
02 $folder=str_replace(".php","",$uri_segments[2]);   
03 require_once(dirname(__FILE__) . '/../protected/config/settings.php'); 
04 $user = mysqli_fetch_assoc(mysqli_query($GLOBALS["mysqli_con"], "SELECT * FROM `reg_ngo` WHERE (`userfolder` = '".$folder."' AND `status` = 1) LIMIT 1")); 
05 if (!empty($user['userfolder'])) {  
06 $keyw = $user['cname'] . ' NGO in ' . $user['state'] . ', office address- ' . $user['address'] . ' ' . $user['mobile'] . ' ' . $user['email']; $page = empty($_GET['lst']) ? "index" : $_GET['lst']; ?> 
07 <!DOCTYPE html>
08 <html lang="en">
09 <head>
10    <meta charset="utf-8" /> <meta http-equiv="X-UA-Compatible" content="IE=Edge" />  <title> <?php echo $keyw; ?> </title> <script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-5709559386219769" crossorigin="anonymous"></script> <meta name="keywords" content="<?php echo $keyw; ?>" /> <meta name="description" content="<?php echo 'Get complete details of ' . $keyw . ' on searchdonation.com'; ?>" /> <!-- Favicon --> <link rel="shortcut icon" type="image/x-icon" href="/images/favicon.ico" /> <link rel="canonical" href="https://www.searchdonation.com<?php echo $_SERVER['REQUEST_URI']; ?>" /> <meta property="og:site_name" content="searchdonation.com"> <meta property="og:url" content="https://www.searchdonation.com<?php echo $_SERVER['REQUEST_URI']; ?>" /> <meta property="og:type" content="searchdonation.com" /> <meta property="og:title" content="<?php echo $keyw; ?>" /> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" /><meta property="og:description" content="<?php echo 'Get complete details of ' . $keyw . ' on searchdonation.com'; ?>" /> <meta property="og:image" content="https://www.searchdonation.com/images/clients-images/<?php echo $user['coverpage']; ?>" /> <link rel="apple-touch-icon" href="https://www.searchdonation.com/images/clients-images/<?php echo $user['coverpage']; ?>"> <!-- Main CSS --> <link rel="stylesheet" href="https://www.searchdonation.com/css/rajcss.css" /> <script async src="https://platform-api.sharethis.com/js/sharethis.js#property=5d5f8a17f0c30b0012259240&product=sticky-share-buttons"></script> <script src="<?php echo REDIRECT; ?>js/jquery-2.2.4.min.js" type="text/javascript"></script> <style> .banner { background: url('https://www.searchdonation.com/images/clients-images/<?php echo $user['coverpage']; ?>') no-repeat 0px 0px; height: 280px; background-size: cover; position: relative; width:100%; } </style> <!-- Global site tag (gtag.js) - Google Analytics --> <script async src="https://www.googletagmanager.com/gtag/js?id=UA-59195645-1"></script> <script> window.dataLayer = window.dataLayer || [];    function gtag() { dataLayer.push(arguments); } gtag('js', new Date()); gtag('config', 'UA-59195645-1'); </script> <script src="<?php echo REDIRECT; ?>js/jquery-2.2.4.min.js" type="text/javascript"></script> 
11  </head>
12 <body>
13     <div id="wrapper">
14         <header>

Stack Trace

#0
+
 /home3/searchdo/public_html/profiles/index.php(18): require_once("/home3/searchdo/public_html/profiles/profile.php")
13     break;
14     case "job": require_once(dirname(__FILE__) . '/job.php');  
15     break;
16     case "grants": require_once(dirname(__FILE__) . '/grants.php');  
17     break; 
18     default: require_once(dirname(__FILE__) . '/profile.php');  
19 } 
#4
+
 /home3/searchdo/public_html/index.php(11): CApplication->run()
06 $yii = dirname(__FILE__) . '/beta_thora_bachke_rahna/kya_hal_hai_beta/framework/yii.php';
07         $config = dirname(__FILE__) . '/protected/config/main.php';
08         defined('YII_DEBUG') or define('YII_DEBUG', TRUE);
09         defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL', 0);
10         require_once($yii);
11         Yii::createWebApplication($config)->run(); 
12         ?>
2025-04-23 21:44:09 Apache Yii Framework/1.1.10