Help me plzz...
I insert data into pohonLatihan table from senarailatihan table. It done!!
But how can i insert the 'user id' that i capture from the 'session' into the same table.?
I insert data into pohonLatihan table from senarailatihan table. It done!!
But how can i insert the 'user id' that i capture from the 'session' into the same table.?
Code:
$no_pekerja = $_SESSION['user_id'];
$id_latihan=$_GET['id_latihan'];
$insert_query= "INSERT INTO pohonLatihan (namalatihan, tempat, t_mula, t_tamat, spesifikasi, jum_jam)
SELECT namalatihan,tempat,t_mula,t_tamat,spesifikasi, jum_jam
FROM senarailatihan WHERE id_latihan='$id_latihan'";
Comment