I need help with the coding of a Search Engine. This is my code so far:
$dbConnection=ifx_connect();
if(!$dbConnection) {
die("Could not connect");
}
$keywordQuery=ifx_query("select keyword, desc, url from webSearch where keyword LIKE '%$query%'", $dbConnection);
if (!$keywordQuery) {
die("Query Error");
}
ifx_htmltbl_result($keywordQuery, "border=\"0\"");
ifx_free_result($keywordQuery);
$dbConnection=ifx_close();
My question is I want to query the database that is going to store the following fields:
keyword desc url
I want to format the output of the query like:
keyword
desc
url
Could someone help me move forward with the logic.
dr