php - drupal db_query not working when trying to insert negative number -



php - drupal db_query not working when trying to insert negative number -

so have code:

$query = "replace {tbl} set a_id = %d, p_id = %d, comment = '%s'"; db_query($query,1321,-1,"lolo");

but when execute it, instead of inserting -1, inserted 0 instead....

using insert same thing...

how can set -1?

using drupal 6 p_id column integer in mysql

i check p_id not flagged unsigned integer

php mysql drupal replace

Comments

Popular posts from this blog

java - How to pass parameters between Request-Scoped Controllers? -

string - what is the difference between "some" == "some\0" and strcmp("some","some\0") in c++? -

actionscript 3 - Flex: moving a point with rotation doesnt change the point XY? -