Data will not be shown after entering the required info in the search bar


I have the file dataout.php in which I am trying to enter the locknumber into the field given and have it display on the data from the phpmyadmin database that is included in the lock number. When I get to the page and type in a lock number it goes from http://152.116.203.115/dataout.php to http://152.116.203.115/dataout.php?lock_number=4556 in the URL but nothing is shown. There is data in the database with a lock number that is 4556. Here is my code if you can help that would be great. thank you.



You'll need to grab the value from the lock_number input. To do that you will need to have:



Also it looks like you are using mysqli prepared statements to query, but then also using mysqli_query() and mysqli_fetch_array(). The way you set up your $sql query will not work for the latter 2 methods mentioned.



Try using this if you want to use the latter two methods:



Also read about SQL Injection Here






By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Popular posts from this blog

The Dalles, Oregon

“Thánh nhọ” Lee Kwang Soo chúc thi tốt, sĩ tử Việt Nam... có dám nhận hay không?

眉山市