hi, i've got a function which insert data into database. so if the transaction is successful, return a value. after that redirect user to another page. here is code:
function AddProduct()
{
$addQuery="INSERT into........
$queryStatus = mysql_query($addQuery);
echo "<meta http-equiv='Refresh' content='3'; URL=../homepg.php'>";
return $queryStatus;
}
right now, the redirect to homepg.php wont happen.
Where should i place my
return $queryStatus
or
echo "<meta http-equiv='Refresh' content='3'; URL=../homepg.php'>"
to make it work?