Why don't make a button to repair ?
Code:
<?php
session_start();
mysql_connect("adress", "user", "password");
mysql_select_db("do_es");
mysql_query("UPDATE `cuentas` SET `hp` = 1000 WHERE `usuario` = '".$_SESSION['username']."'");
?>
I'm not sure of $_SESSION etc... but i think you could edit it yourself

And you can check if ship life is lower than 0 to prevent hacks (like using charles to repeat action and get unlimited life)