Is it possible to load this IF statement into a new popup window. If yes how can I go about it.
if($radiogo =="excel")
{header("Content-Type: application/vnd.ms-excel");
$query = "SELECT store ,date ,equipmentid ,quantity ,enteredby FROM shiplist WHERE store='$quicksearch' and quantity > '0'
ORDER BY store";
$result = mysql_query($query);
$fieldcounts = mysql_num_fields($result);
for($i = 0; $i < $fieldcounts; $i++) {
$fieldtype = mysql_fetch_field($result, $i);
echo "$fieldtype->name \t";
}
echo "\n";
while ($myrow = mysql_fetch_array($result)) {
extract($myrow);
$get2="select * from main where equipmentid='$equipmentid'";
$getresult2=mysql_query($get2, $link) or print(mysql_error());
$getline2=mysql_fetch_array($getresult2, MYSQL_ASSOC) or print(mysql_error());
// for($i = 0; $i < $fieldcounts; $i++) {
//
// $fieldname = mysql_field_name($result, $i);
// echo "$myrow[$fieldname]\t";
echo "$store\t";
echo "$date\t";
echo "$getline2[equipment]\t";
echo "$quantity\t";
echo "$enteredby\t";