Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Increase counter #31

Closed
srgzah opened this issue Mar 19, 2016 · 1 comment
Closed

Increase counter #31

srgzah opened this issue Mar 19, 2016 · 1 comment

Comments

@srgzah
Copy link

srgzah commented Mar 19, 2016

Hi,

How can I perform this query:
UPDATE table SET count = count + 1 WHERE id = ?

Thanks.

@FaaPz
Copy link
Owner

FaaPz commented Mar 24, 2016

Hi @srgzah, you could perform your query using raw PDO, because Slim-PDO is merely a wrapper.

$slimPdo->query("UPDATE `table` SET `count` = `count` + 1 WHERE `id` = ?");

Good luck!

@FaaPz FaaPz closed this as completed Mar 24, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants