hi... thanks for replying.
basically it goes something like,
$conn = ocilogon ("f75030", "pass", $d😎;
$sql = "SELECT * FROM modules WHERE mid = $etemp";
$stmts = ociparse($conn, $sql);
ociexecute ($stmts, OCI_DEFAULT);
while (ocifetch($stmts)) {
$mid = ociresult ($stmts, 1);
$modno = ociresult ($stmts, 2);
ocilogoff ($conn);
$conn = ocilogon ("f75030", "pass", "sid3.comp.nus.edu.sg");
$title = $modno." Exam";
$sql = "INSERT INTO Event VALUES (running.NEXTVAL, '$userid', '$title', '$day', $dayW";
$sql = $sql.", $Stime, $Etime, 'N', 'N', NULL, NULL, NULL)";
echo $sql;
$stmte = ociparse ($conn, $sql);
ociexecute ($stmte, OCI_COMMIT_ON_SUCESS);
ocilogoff ($conn);
okay... here is the problem in detail. all the code of fetching from one table and inserting into another table is within a for-loop. sometimes, it complains that the error of fetching out of space... then sometimes it doesn't at all...
so when it doesn't complain, i assumed that it was okay, but i select * from events, it seems that the values were never inserted in.... do you have any idea why this is so?