Login to the server. Trace the code of the printing of the barcode. Make a test server to freely test and debug the code without affecting the live environment. Mimic the SQL query in the SQLYog to get the data. Test and debug the code. Fix the code in the live environment after successful testing on the test environment.