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

iphone - Dismissing a UIAlertView -

c# - Can ProtoBuf-Net deserialize to a flat class? -

javascript - Change element in each JQuery tab to dynamically generated colors -