select max(vi_id) as max_vi_id from g4_visit

145 : Table './dui0415/g4_visit' is marked as crashed and should be repaired

error file : /module/img_gallery/php/img_gallery.php
Warning: Unknown: open(../../../data/session/sess_e602adfb74630b8080c120787f71e86f, O_RDWR) failed: No such file or directory (2) in Unknown on line 0

Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (../../../data/session) in Unknown on line 0