Any texts about creating a login screen? php and mysql | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
+ 1

Any texts about creating a login screen? php and mysql

How to store data to mysql and keep a user logged throughout few pages.

19th Dec 2016, 1:06 AM
Davor
1 Réponse
+ 1
Hi Davor! So I'm just gonna give you some keywords ( mentioned between "") to look for cuz I'm kinda falling asleep now and feel too lazy to write an appropriate answer. u usually need to create a database first so I assume you're using wamp or xamp or something similar so u can utilise "Phpmyadmin" for that(very intuitive and easy to understand imo). u then need to establish a connection to the database. here, you'll have to look for the PHP "PDO" or "mysqli"(mysqli_connect) extensions. to store data within a database check MySQL "INSERT" statement . to retrieve data from a database check MySQL "SELECT" statement. to keep the user logged, refer to PHP "sessions" (which end when the browser is closed or when they are willingly destroyed) and "cookies"(which can last very long). Again these were some keywords so that you know what to search for. logging tutorials are plenty on YouTube or elsewhere so you should have plenty of resources to check and learn from. Peace.
19th Dec 2016, 3:05 AM
CHMD
CHMD - avatar