Good Day all
I created Php file and imported it to my website. I need to do searching function for sertificates like this https://www.certmetrics.com/cisco/public/verification.aspx
All data (users with link to certificates) stored in MySQL in bank table
Please, help to do this
My current code:
<form action="" method="post">
<input type="text" name="search">
<input type="submit" name="submit" value="Search">
</form>
<?php
global $wpdb;
$search_value=$_POST["search"];
$con=$wpdb;
if($con->connect_error){
echo 'Connection Failed: '.$con->connect_error;
}else{
$sql="select * from $wpdb->bank where ITACAD like '%$search_value%'";
$res=$con->query($sql);
while($row=$res->fetch_assoc()){
echo 'Name: '.$row["Name"];
}
}
?>