Your problem now lies in the fact that you are trying to acces array elements inside a double quoted string. The way you do it is only allowed by php in the simplest cases. You can seperate the variables from your constants (which imo is the best way to do it), or put your array element references between braces.
Also, the l. and c. prefixes are not necessary to access your query result.
Code:
echo "<tr><td>{$rows['id']}</td>"; // ...
Code:
echo '<tr><td>' . htmlspecialchars($rows['id']) . '</td>'; // ...
^^ The latter option being the one I highly recommend to prevent attacks such as cross-site scripting.