Ask your own question, for FREE!
Computer Science 8 Online
OpenStudy (shaik0124):

If anyone want help in html css javascript php mysql jquery ajax json i can help u.Please feel free to contact me

OpenStudy (harsha19111999):

Hey I need some help with php and MySQL. I like to store database values in a php array. But I do not know the maximum size of an array which is allowed in PHP? I want to use this as a cache so that I need not access the database many times. And I have many rows in my database (say about 100000)

OpenStudy (shaik0124):

once u fetch the values usingwhile($fetch= mysqli_fetch_array()) u write the statement like this $namesarr=array($_fetch[column name]); all the values will be stored in the array name namesarr.

OpenStudy (harsha19111999):

Yes. That's correct. But can a php array store all those 100000 rows?

OpenStudy (harsha19111999):

I mean will the memory be sufficient or will it throw an exception? Is there any constraint for the memory of an array?

OpenStudy (shaik0124):

i think there should not be an exception try to store ur 10000 records in an arrayand print using var_dump($arrayname); u will get to know whether there is exception r not

OpenStudy (harsha19111999):

Okay. Will try it. Thanks

OpenStudy (shaik0124):

welcome

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Latest Questions
Arriyanalol: i need help
1 day ago 7 Replies 1 Medal
Arriyanalol: CONGRATS to me
1 day ago 8 Replies 2 Medals
Legomaster346: What colleges are good that are near Arab Alabama?
1 week ago 5 Replies 0 Medals
Arriyanalol: i need help
1 week ago 6 Replies 2 Medals
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!