<br /><b>Warning</b>: Undefined variable $strKeyword in <b>C:\xampp4\hton line <docs\Test1\searched.php</b> b>22</b><br />
อันนี้errorในช่องพิมค้นหาค่ะ
Warning: Undefined variable $result in C:\xampp4\htdocs\Test1\searched.php on line 58
Warning: Trying to access array offset on value of type null in C:\xampp4\htdocs\Test1\searched.php on line 58
อันนี้errorในตารางแต่ละค่ะ ตั้งแต่line58ถึง63ค่ะ
$Connect = mysql_connect("localhost","root","root") or die("Error Connect to Database");
$dbName = mysql_select_db("mydatabase");
// Search By Name or Email
$sql = "SELECT * FROM ir_provider WHERE 1 ";
if($_POST["ir_provider"] != "" and $_POST["txtKeyword"] != '')
{
$sql .= " AND (".$_POST["ir_provider"]." LIKE '%".$_POST["txtKeyword"]."%' ) ";
}