i need some advise regarding storage of data
is it good to store data in files rather than storing into database? (eg data like comments or additional features of products that users advertise on our website.) will it help for speed optimization.
Take for example simple search process to check how many people earn between 20k-25k. With file approach you need to read the file, temporary store it somewhere, close the file, you need to iterate trough to find results and then do what ever you want. Where in case of database you just write a query and check for results from DB.
Hi, I am a newbie in developing a website. i have tried to connect using mysqli conncetion
Here is my simple code.
// db.php code
//$con = mysqli_connect("localhost","root","","bakery"); ...
If you're in one of those predicaments where cls.__private attributes just aren't enough since they can easily be accessed through inst._cls__private, and you need something a little more secure, here's ...