custom search query database in child theme

I am trying to display searched data from database in wordpress child theme.
It does work on localhost but when I apply the code in wordpress only this is appearing. Please help me solve this. Its been one week i have been doing research to solve this.
enter image description here

<form name=”frmSearch” method=”post” action=””>
<div class=”search-box”>
<p><input type=”text” placeholder=”Batch No” name=”search[batch_no]”
class=”demoInputBox” value=”<?php echo $batch_no; ?>” />
<br/>
<input type=”text” placeholder=”RFID Chip No”
name=”search[rfid_chip_no]” class=”demoInputBox” value=”<?php echo
$rfid_chip_no; ?>” />
<input type=”submit” name=”go” class=”btnSearch” value=”Search”>
<input type=”reset” class=”btnSearch” value=”Reset”
onclick=”window.location=””></p>
</div>
</form>

here is the code search query and display data code:
https://pastebin.com/6WCgC3Qg

Read more here:: custom search query database in child theme

Leave a Reply

Your email address will not be published. Required fields are marked *