# Php Question

**URL:** <https://www.phphelp.com/t/php-question/18929>\
**Category:** General PHP Help\
**Created:** [November 17, 2012, 5:55am UTC](https://www.phphelp.com/t/php-question/18929 "2012-11-17T05:55:51Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://www.phphelp.com/uploads/default/original/2X/2/243e9ed5d93c5653ce3186f18df16e019ce38445.png) [@system](https://www.phphelp.com/u/system)\
**Post date:** [November 17, 2012, 5:55am UTC](https://www.phphelp.com/t/php-question/18929/1 "2012-11-17T05:55:51Z")

</div>

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]

---

<div class="post-metadata">

**Author:** ![richei](https://www.phphelp.com/letter_avatar_proxy/v4/letter/r/e5b9ba/32.png) [@richei](https://www.phphelp.com/u/richei)\
**Post date:** [November 17, 2012, 8:30am UTC](https://www.phphelp.com/t/php-question/18929/2 "2012-11-17T08:30:41Z")

</div>

[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)
