$numrowspd=$db->num_rows($resultpd);
$numrowspd=$resultpd->num_rows; // this works for sure,since $resultpd is an object too
i use it frequently..hehehehe
After you define $querypd, try echoing it so you can verify that all the variable values are set as you are expecting them to be.
thank you, i found the problems, my array variable ,$kodebukupinjaman is on other part of my script, and the script (the query where i stucked ) got from <a href='peminjaman.php?lanjut=1&var=$namapeminjam,$tanggalpinjam'>
&var=$namapeminjam,$tanggalpinjam // i include two value i need in <a href='peminjaman.php?lanjut=1
now i want to pass $kodebukupinjaman too so it can be read.
i can't do this right?<a href='peminjaman.php?lanjut=1&var=$namapeminjam,$tanggalpinjam,$kodebukupinjaman'>
if i echo $kodebukupinjaman it will print 'array' so $kodebukupinjaman[0]='a', $kodebukupinjaman[1]='r' and so on. why?
what is the best way to pass my variable value? using session will be good but i prefer not to use it except there is no other good way...
my method above is not good for security reason ?
oh yes,could we use two & sign? (curious) how? like ...&var=$val&var2=$val2 (???)