Linark
12-22-2006, 09:38 PM
This is my first post for help, so please be nice to me...
I am using xAJAX for my ajax library.
I have this codefunction generateClientList($fn, $sn) {
global $DB, $FUNC, $xAJAX;
$query_extra = array( 'fn' => $fn,
'sn' => $sn );
$DB->exec_cached_query("xajaxEditClientSearch", $query_extra);
$tag = "test";
$html = "Data submitted via xAJAX: $fn / $sn (" . $DB->fetch_num_rows() . ")";
$objResponse = new xajaxResponse();
$objResponse->Assign($tag, "innerHTML", $html);
return $objResponse;
}
The problem with it is that it will return a empty result as positive if you submit the query to the database even though there is no user with those details.
I am using xAJAX for my ajax library.
I have this codefunction generateClientList($fn, $sn) {
global $DB, $FUNC, $xAJAX;
$query_extra = array( 'fn' => $fn,
'sn' => $sn );
$DB->exec_cached_query("xajaxEditClientSearch", $query_extra);
$tag = "test";
$html = "Data submitted via xAJAX: $fn / $sn (" . $DB->fetch_num_rows() . ")";
$objResponse = new xajaxResponse();
$objResponse->Assign($tag, "innerHTML", $html);
return $objResponse;
}
The problem with it is that it will return a empty result as positive if you submit the query to the database even though there is no user with those details.