Skip to content
Advertisement

My php fetch from an SQL query doesn’t return the ID

My Login Function which Returns the Value $FoundAcc

JavaScript

My PHP login page should save the fetched Row from my DB and save it in a Session Variable (UserID) but It doesn’t, It Does however save the (Username)variable from the Row… What is wrong?

JavaScript

Advertisement

Answer

The sql query should be like this:

JavaScript
User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement