Could someoen help me with this please.
[php]mysql_query(“INSERT INTO licences (active, expires, serial)
VALUES (‘1’, '”. mysql_escape_string($thirtydays)", ‘". mysql_escape_string($serial) ."’)");[/php]
[php]mysql_query(“INSERT INTO licences (active, expires, serial) VALUES (‘1’, '”. mysql_real_escape_string($thirtydays)", ‘". mysql_real_escape_string($serial) ."’)");[/php]
If those are plain numbers, then you don’t need quotes. (and stored in the db as int)