haii....i had lot of different school datas and when i want to login into the data i want to get only the specified data according to the username and password..username and password is different for different schools can you please help me thanks in advance and iam waiting for your answer
mohammed_22
0
Light Poster
Recommended Answers
Jump to PostHello Mohammed, helping people is the job of a forum, but you need to show us your efforts first. With your codes we will help you find your way out of the concerned problem.
Jump to PostHello Mohammed, the only flaws I see in your codes are you are using mysql PHP database connection layer which is deprecated. I recommend you to use mysqli or PDO database connection layer. Also your codes are not escaped which makes it very open to sql injection.
Now coming to …
Jump to PostGoing on what @Gideon_1 first said, here is the
mysqli_*
version of his example (I haven't had a chance to test it at all yet, but I think it should work). Hope this helps:<?php session_start(); // database connection $mysqli = new mysqli('host','username','password','database_name'); ... Check connection …
All 11 Replies
Gideon_1
15
Junior Poster
mohammed_22
0
Light Poster
mohammed_22
0
Light Poster
mohammed_22
0
Light Poster
mohammed_22
0
Light Poster
Gideon_1
15
Junior Poster
mattster
195
Practically a Master Poster
Featured Poster
Gideon_1
15
Junior Poster
mohammed_22
0
Light Poster
mattster
195
Practically a Master Poster
Featured Poster
mohammed_22
0
Light Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.