hi!
Im working on a php page that will retrieve data into a database.
My problem is the data is displayed already when i run the page.
I want the data to display only when push the submit button..
heres my simple code..btw im using adodb.
$search = $_POST['searchbox'];
$sql = "SELECT main_entry,part_of_speech,synonyms,antonyms FROM thesauri where synonyms LIKE '%$search%'";
$rs = &$db->Execute($sql);
if (!$rs) {
print $db->ErrorMsg(); // Displays the error message if no results could be returned
}
thanks!