I am making a custom module which also enables an edit page to edit the special node .
Below the feilds there is an update button ; so i have made a form for all this and
following is my hook_submit for the form
function game_week_edit_form_submit($form_id, &$form_state)
{
$result = db_query("UPDATE {game_week} SET
start_time = %s, open_time = %s , close_time = %s WHERE game_week_id= %d",
$form_state['values']['start_time'], $form_state['values']['open_time'],
$form_state['values']['close_time'],$form_state['values']['game_week_id']);
}
You need to wrap your strings in the query with quotes:
If that’s not it, look in the recent log entries for any db fails – admin/reports/dblog