+ 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
5 ответов
+ 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?
+ 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?
+ 4
🦋FEATHER🦋 it should be mived to Line 55?
+ 2
did you try that on pc
cause it may not run here
+ 1
cheak out line number 26