title: PHP Notice: Undefined index id Not recording in the database
body: <p>Good afternoon, an error in the admin</p>
  
  <p>When I enter the page, it shows errors.</p>
  
  <p>Not recording in the database</p>
  
  <p>Can you fix that code below?</p>
  
  <p>Thank you very much for the help.</p>
  
  <p>PHP Notice:  Undefined index: id in /genel-ayarlar.php on line 41</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;?
  include ("../db.php");
  $id=(int)$_GET['id'];
  $calistir = mysql_query("select * from genelayarlar order by id DESC LIMIT 1") or die("An error occurred! ".mysql_error());
  $sor = mysql_fetch_assoc($calistir);
  ?&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>PHP Notice:  Undefined index: id in /genel-ayarlar.php on line 199</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;?
  include ("../db.php");
  $id=(int)$_GET['id'];
  $calistir = mysql_query("select * from logo order by id DESC LIMIT 1") or die("An error occurred! ".mysql_error());
  $gor = mysql_fetch_assoc($calistir);
  ?&gt;</code></pre>
  </div>
  </div>
  </p>