- Sep 14, 2017
- Reaction score
I am developing a ship tracking website for a client and I was not the one that wrote the code from scratch, so the problem I am having with this is that when someone enters a wrong tracking number(a number that has not been registered in the database) it displays a shipment but with empty fields. I want it to tell the user that it could not find the tracking number or that the number does not exist in the database, instead of returning something empty. If maybe user mistakenly makes a typo it will display an empty track details and before user discovers that he made a mistake he would think the wrong number was sent to him, i want it to tell them that it is incorrect when they make a mistake. This is the code via pastebin https://pastebin.com/yzESZP4g .