PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
I got the adding to work but in doing so I found another problem.
If the $s person is logged in while the transaction is taken place, their echos count is not being displayed. They would have to log out then back in, in order to get that echos that was put into their database. That`s a session problem, right?
beloveddoll wrote:I got the adding to work but in doing so I found another problem.
If the $s person is logged in while the transaction is taken place, their echos count is not being displayed. They would have to log out then back in, in order to get that echos that was put into their database. That`s a session problem, right?
Sorry, I must have misunderstood you. If you are updating data in a database for a user, it makes no difference when the update takes place in relation to a user being logged in. It will matter if that value is stored in a session/cookie variable that is not updated. But if it is in the database, then as soon as it is updated it becomes available to call again (though you could always increment it in the dataset instead of making another call to the database).
It is added to the database. What`s making this even stranger is that if the logged in person gets echos from, say, commenting on a submitted picture, the change is visible. But if someone were to purchase an item from them, the change is not seen.
However in both cases, when the change is made to the database, the database shows it. It`s just that in one case the logged in person doesn`t have to log out to see the changes, whereas the other case they do have to log out and then back in.
Ok, I haven`t worked with debug much except for copying what people put in for me to put in. Maybe if you can brief me on how to use debug I can go around with it in my files and see what turns up.