+ 6

Problem with database query

Hallo, can someone tell me what I’m doing wrong here? It is a code to query an MySQL db and return either the entered values or an alert that there is no such entry with the input given by the user. Thanks https://code.sololearn.com/ws1ue7z21oVk/?ref=app

30th Jan 2019, 11:53 PM
pap
pap - avatar
5 odpowiedzi
+ 5
🦋FEATHER🦋 there was a typo (additional SPACE after the opening _END) this is why it’s not working. now its fine. can you tell me are the if/else are properrly placed?
31st Jan 2019, 3:29 PM
pap
pap - avatar
+ 4
Emma - the localhost works fine. this file is forth in roll (welcome.db > login.php > search.php > query.php). The first 3 files works fine (the login also). 🦋FEATHER🦋 - i wrote and test this code on a pc. the last corrections i made here (<<<_END _END; statements) im not sure if those work, but they should. my biggest problem is that i’m not where and how to add the if/else in the query and can inmake the query with prepared statments?
31st Jan 2019, 8:31 AM
pap
pap - avatar
+ 4
🦋FEATHER🦋 it should be mived to Line 55?
4th Feb 2019, 5:25 AM
pap
pap - avatar
+ 2
did you try that on pc cause it may not run here
31st Jan 2019, 3:01 AM
🦋FEATHER🦋
🦋FEATHER🦋 - avatar
+ 1
cheak out line number 26
4th Feb 2019, 3:09 AM
🦋FEATHER🦋
🦋FEATHER🦋 - avatar