hi!
before all the yadda, I just realized you forgot to perform the first "insert into mohon" query: $result = mysql_db_query($dbname, $sql);
but inserting the day-month-year values and the rest which belongs into the "mohon" table should not be done in two steps - the information would not be related!
some details on how the table should be structured:
$sql = "INSERT INTO mohon (hari,bulan,tahun) ...
here I implied that "mohon" is a table with a structure somewhat like this:
TABLE mohon:
FIELD "id" integer, primary key, auto-increment
FIELD "hari" integer
FIELD "bulan" integer
FIELD "tahun" integer
[plus additional fields if you like, which however may be NULL]
under this circumstances you could execute a query like the one I suggested:
$sql = "INSERT INTO mohon (hari,bulan,tahun)
values(".$tarikhprj[0].",".$tarikhprj[1].",".$tarikhprj[2].")";
// don't forget to PERFORM it:
$result = mysql_db_query($dbname, $sql);