I am trying to get a single value from the database. Somehow it does not echo out. I know about the security deprecation and will use PDO later on this is just as test. I filled in the correct table. When I use the sql I have in phpmyadmin it correctly gives me the value i want.
  <?php
    include 'connectdb.php';
    $result = mysql_query("SELECT id FROM table ORDER BY id DESC LIMIT 1");
    $row = mysql_fetch_row($result);
    echo $row["id"];
    mysql_close();
   ?>
 
     
     
    