$query = "INSERT INTO xxx (XXX, XXX, XXX, XXX, XXX) VALUES('$1', '$2', '$3', '$4', '$5')"; $result = mysql_query($query) or die("query fialed:" . mysql_error());