Search System

Search System

Open($connStr); if ($_SERVER["REQUEST_METHOD"] == "POST") { $search = $_POST['search']; $sql = "SELECT * FROM your_table WHERE Name LIKE '%$search%'"; // Execute the SQL query $rs = $conn->Execute($sql); // Display the search results while (!$rs->EOF) { echo ""; echo ""; echo ""; echo ""; echo ""; $rs->MoveNext(); } // Close the recordset $rs->Close(); } // Close the connection $conn->Close(); ?>
ID Name cnic
" . $rs->Fields('ID')->Value . "" . $rs->Fields('Name')->Value . "" . $rs->Fields('Email')->Value . "