Hi guys,
I'm developing a search engine to retrieve data from the DB based on the search value entered by the user. I have a table that has among other columns, FirstName,SecondName, LastName. Now I'm able to search by name if the user enters a single name but I need to be able to search when the user enters more than one name because that gives more accurate data. I have some code for doing that but the execution takes so long that it gives the following error
"Fatal error: Maximum execution time of 60 seconds exceeded"
here is my code
$whitespace = array("\t", "\n", "\f", "\r", "+", "!", '"', "£", "$", "€", "%", "^", "&", "*", "(", ")", "-", "_", "+", "=", "{", "[", "}", "]", ";", ":", "@", "'", "#", "~", "<", ">", ",", ">", ".", "/", "?", "|", "\\", "¬", "`", "¦");
if (isset($_POST['vselect']))
{
if($_POST['vselect']=="Customer Name")
{
$x=$_POST['svalue'];
$searchV=str_replace($whitespace," ",$x);
$searchV2=explode(" ",$searchV);
$no=count($searchV2);
$count=0;
echo $searchV2[$count];
while ($count < 2);
{
echo $count;
echo $searchV2[0];
$sqlquery=mssql_init("Gssp_GetPrivCustomerDetailsGivenName",$sqlconnect);
mssql_bind($sqlquery,"@CustName",&$searchV2[0],SQLVARCHAR);
$count++;
}
The error comes on the while loop line and Gssp_GetPrivCustomerDetailsGivenName is a stored procedure.
Where I'm I going wrong on this one?