It works perfectly fine when the values inserted contain only numbers such as "728011955", but it fails to insert if the values contain any letters such as "1lKw7Rcc1iM8WB9c".
Below is the query that fails.
$query = ("INSERT INTO $tbl_name VALUES ($key, $timestamp, $use)");
The mysqlerror() output is below.
Unknown column '1lKw7Rcc1iM8WB9c' in 'field list'
Help! :)