Skip to content
Advertisement

Tag: increment

Decrement operator for strings bug in PHP?

There is an inconsistency in increment/decrement operator function regarding strings in -at least- my version of PHP. Here is what I mean: Is this an expected behavior? Should I file a bug report or something? Do you know of a workaround? edit: filed bug#80212 Answer Here is what I finally went with: Wouldn’t call it elegant but I’d call it

How do I increment a value with mysql update query (php)

I have a query that looks like this: I want to increment the value as easily as possible. I have tried: I don’t get error messages, but the value in my db does not increase either. Answer If you use the single quotes ‘, you’re telling the enclosed value to be interpreted as a string You were probably thinking about

Advertisement