# \[PHP/MySQL\] Query Question

**URL:** <https://forum.kirupa.com/t/php-mysql-query-question/219171>\
**Category:** programming\
**Created:** [March 14, 2007, 1:45pm UTC](https://forum.kirupa.com/t/php-mysql-query-question/219171 "2007-03-14T13:45:56Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Esherido](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/esherido/32/2158_2.png) [@Esherido](https://forum.kirupa.com/u/Esherido)\
**Post date:** [March 14, 2007, 1:45pm UTC](https://forum.kirupa.com/t/php-mysql-query-question/219171/1 "2007-03-14T13:45:56Z")

</div>

I’m not exactly sure if this is possible and I don’t know where to check to see if it is. ☹ Anyway, is it possible, using only SQL, to check to see if a row exists, if it does add one to a value on that row, and if the row doesn’t exist make a new row? :q: Or will I have to use PHP to do that?

[RIGHT]Thanks,  
:kommie: Esherido  
[/RIGHT]
