A
A
AlPaco2017-02-23 20:11:19
PHP
AlPaco, 2017-02-23 20:11:19

Problem with sessions when registering PHP?

Wrote a website from scratch. I start sessions in an include with connection of a database.
Wrote registration, did everything as it should, everything works.
When you register the first account, log in - everything is fine.
But when you register a second account, you log in through the second one, then on the site all the information is displayed from the first account, but actions with the database occur with the second account. That is, if you change the email in the settings on the site, then it changes for the second account in the database.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
AlPaco, 2017-02-23
@AlPaco

Understood. Forgot about WHERE.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question