Ok I got my answer
if($char)
{
$results = $wpdb->get_results( "SELECT * FROM teacher_directory where Name LIKE '$char%'", ARRAY_A );
if(!empty($results))
{
//Printing the table here
}
}
Ok I got my answer
if($char)
{
$results = $wpdb->get_results( "SELECT * FROM teacher_directory where Name LIKE '$char%'", ARRAY_A );
if(!empty($results))
{
//Printing the table here
}
}