Hi Nogdog,
Thank you very much for your reply and information.
the code above is actually not the complete one. i just echo the generate value for testing purpose only, see whether the value can be insert in to the array successfully.
here is my problem :
output from the above coding
Constructor called
Cafe 57
cafe 57, fusion, western cuisine, local delights, bayan lepas, penang, malaysia
end of constructor
output after i remarked the code for all the database connection code inside the constructor and left only two echos (Constructor called, end of constructor)
Constructor called
end of constructor
message from query method
after test method
message from query method
after test method
message from query method
after test method
from the above testing shows that the code with the database connection code stop at the "end of constructor", after i remarked the database connection coding, it seem fine.
So what do you think?