how do i display the data for 1st page onwards? the allowpaging is set to true

this is the pageindexchanging code

Protected Sub solist_PageIndexChanging(ByVal sender As Object, _
           ByVal e As System.Web.UI.WebControls.GridViewPageEventArgs) Handles solist.PageIndexChanging
        solist.PageIndex = e.NewPageIndex
        solist.DataBind()

    End Sub

this is the data code

Protected Sub solist_RowCommand(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewCommandEventArgs) Handles solist.RowCommand
        If e.CommandName = "SendEmail" Then
            Dim sendMail As New EmailModule
            Dim SO_No As String = e.CommandArgument.ToString()

            Dim dtTemp As New Data.DataTable
            Dim daTemp As New Data.SqlClient.SqlDataAdapter
            Dim cmd As New Data.SqlClient.SqlCommand
            cmd.Connection = New Data.SqlClient.SqlConnection(solist_SqlDataSource.ConnectionString)
            cmd.CommandText = "SELECT DISTINCT Master_Customer_PIC.CustPIC_Email FROM SO_Main, Master_Customer,Master_Customer_PIC WHERE SO_main.so_custid=master_customer.Cust_ID AND Master_Customer.Cust_ID=Master_Customer_Pic.CustPIC_CustID and SO_Main.SO_No=SO_No "
            Dim pic_email As String = ""
            cmd.Parameters.AddWithValue("CustPIC_Email", pic_email)
            daTemp.SelectCommand = cmd
            daTemp.Fill(dtTemp)

            Dim hfEmail As String = ""
            If dtTemp.Rows.Count = 1 Then
                hfEmail = dtTemp.Rows(0)("CustPIC_Email").ToString
            ElseIf dtTemp.Rows.Count > 1 Then
                For i As Integer = 0 To dtTemp.Rows.Count - 2
                    If i = 0 Then
                        hfEmail = dtTemp.Rows(i)("CustPIC_Email").ToString
                    Else
                        hfEmail &= "," & dtTemp.Rows(i)("CustPIC_Email").ToString
                    End If
                Next
                Response.Write("<script type='text/javascript'>alert('Email sent!');location='Outstanding.aspx'</script>")
            Else
                Response.Write("<script type='text/javascript'>alert('Invalid Request!');location='Outstanding.aspx'</script>")
            End If

            sendMail.send_email(hfEmail, "Your credit limit has exceeded. Please increase the credit limit or the SO cannot be process." & vbCrLf & "SO No: " & SO_No, "Infoline")

        ElseIf e.CommandName = "RejectSO" Then

            Dim SO_No As String = e.CommandArgument.ToString()

            Dim dtTemp As New Data.DataTable
            Dim daTemp As New Data.SqlClient.SqlDataAdapter
            Dim cmd As New Data.SqlClient.SqlCommand
            cmd.Connection = New Data.SqlClient.SqlConnection(solist_SqlDataSource.ConnectionString)

            cmd.CommandText = "UPDATE SO_Main SET SO_Status='REJECT' WHERE SO_No='" & SO_No & "' "

            If cmd.Connection.State = Data.ConnectionState.Closed Then
                cmd.Connection.Open()
            End ...

the answer you posted is the question i has not raise yet but thanks for giving ahead start.. before i could reach the approve,reject or email routine, i need to display the panel from imgbtnView.

How to get the imgbtnView image button in gridview to display the row of data? i try to use modelpopupextender but the targetid is invalid because the image button is in the gridview. when click on imgbtnView, solistPanel will be display now i cant display the solistPanel. please help

<table cellpadding="5" cellspacing="5">
        <tr>
            <td>
                <asp:GridView ID="outstandingList" runat="server" CellPadding="2" AutoGenerateColumns="False" DataKeyNames="Cust_No" DataSourceID="outstandingList_SqlDataSource" AllowPaging="True" EmptyDataText="No Outstanding Found" PageSize="20">
                    <Columns>
                        <asp:BoundField DataField="Cust_No" HeaderText="Customer No" SortExpression="Cust_No" />
                        <asp:BoundField DataField="Cust_Name" HeaderText="Customer Name" SortExpression="Cust_Name" />
                        <asp:BoundField DataField="Cust_CreditLimit" HeaderText="Credit Limit" SortExpression="Cust_CreditLimit" />           
                        <asp:BoundField DataField="Total Cost" HeaderText="Total Cost" SortExpression="Total Cost" />               
                        <asp:BoundField DataField="Outstanding" HeaderText="Outstanding" SortExpression="Ouststanding" />
                        <asp:TemplateField>
                            <ItemTemplate>
                                <asp:ImageButton ID="imgbtnView" runat="server" CommandArgument='<%#EVAL("Cust_No") %>' ImageUrl="~/Image/view.gif" />
                                <asp:Button ID="test" runat ="server" />
                            </ItemTemplate>
                        </asp:TemplateField>
                    </Columns>

                </asp:GridView>
                <asp:SqlDataSource ID="outstandingList_SqlDataSource" runat="server" ConnectionString="<%$ ConnectionStrings:PoInvoiceConnectionString %>"
                    SelectCommand="SELECT Master_Customer.Cust_No,Master_Customer.Cust_Name,Master_Customer.Cust_CreditLimit,SUM(SO_Detail.SOD_Cost*SO_Detail.SOD_Qty) AS [Total Cost], Master_Customer.Cust_CreditLimit-Master_Customer.Cust_Outstanding-SUM(SO_Detail.SOD_Cost*SO_Detail.SOD_Qty)AS [Outstanding] FROM SO_Main JOIN Master_Customer ON master_customer.CUst_id=so_main.SO_custID JOIN SO_Detail ON SO_Detail.SOD_SOID=SO_Main.SO_ID GROUP BY Master_Customer.Cust_No,Master_Customer.Cust_Name ,Master_Customer.Cust_Outstanding, Master_Customer.Cust_CreditLimit HAVING Master_Customer.Cust_CreditLimit-Master_Customer.Cust_Outstanding-SUM(SO_Detail.SOD_Cost*SO_Detail.SOD_Qty)<0 "> 
                    <SelectParameters>
                        <asp:Parameter Name="SO_SP" />      
                    </SelectParameters>
                </asp:SqlDataSource>
            </td>
        </tr>
    </table>

    <asp:Panel ID="solistPanel" runat="server" BackColor="white" BorderColor="Black" BorderStyle="Double" width="5" Visible ="false" >
        <table cellpadding="5" cellspacing="5">
        <tr>
            <td> <h4>SO List of Outstanding Customer</h4>
                <asp:GridView ID="solist" runat="server" CellPadding="2" AutoGenerateColumns="False" DataKeyNames="SO_No" DataSourceID="solist_SqlDataSource" AllowPaging="True" EmptyDataText="NO DATA" PageSize="10">
                    <Columns>   
                        <asp:BoundField DataField="Customer" HeaderText="Customer" SortExpression="Customer" />
                        <asp:BoundField DataField="SO_No" HeaderText="SO No" SortExpression="SO_No" />           
                        <asp:BoundField DataField="Total" HeaderText="Total" SortExpression="Total" />               
                        <asp:TemplateField>
                            <ItemTemplate>
                                <asp:ImageButton ID="imgbtnApprove" runat="server" CommandArgument ='<%#EVAL("SO_No") %>'  height="20px" Width="25px" ImageUrl="~/Image/up.png" ToolTip ="Approve SO" OnClientClick ="imgbtnApprove_Click" />
                                <asp:ImageButton ID="imgbtnReject" runat="server" CommandArgument ='<%#EVAL("SO_No") %>'  height="20px" Width="25px" ImageUrl="~/Image/down.png" ToolTip ="Reject SO" OnClientClick ="imgbtnReject_Click"/>
                                <asp:ImageButton ID="imgbtnEmail" runat="server" CommandArgument ='<%#EVAL("SO_No") %>'  height="20px" Width="25px" ImageUrl="~/Image/email.png" ToolTip ="Send email to customer to ...

thank you tinstaafl

how do i convert this code to VB? i am new in VB.Pls help.

ABC (int xyz)
{
    If xyz==0
    {
    return(0)
    }
    else
    {
    return (xyz + ABC(xyz-1));
    }
}

i have two forms on 1 page. but the 2nd form keep going to 1st form action.. 2nd form suppose to go to approve.php..how do i solve this?
when i click Approve it suppose to go to approve.php and execute the query there..but now when i click it give errors:
Notice: Undefined index: odate in /home/lh026/public_html/COMP1161/astockoutlet.php on line 7

Notice: Undefined index: outlet in /home/lh026/public_html/COMP1161/astockoutlet.php on line 8

here is astockoutlet.php

<?php
include_once 'admin-class.php';
$admin = new itg_admin();
$admin->_authenticate();

$date =  date("Y-m-d",time() + (8 * 3600));
$orderdate=$_POST['odate'];
$outlet = $_POST['outlet'];
$con=mysql_connect("studb.cms.gre.ac.uk","lh026","fizztm7F");
mysql_select_db("mdb_lh026", $con);
$id=$_SESSION['admin_login'];
$result2 = mysql_query("SELECT orderdb.odate,orderdb.itemcode,orderdb.quantity,orderdb.saiz,orderdb.remark,  
 pstaff.outlet  
FROM orderdb ,pstaff  
WHERE  orderdb.staff_id =pstaff.staff_id
AND pstaff.outlet='$outlet'
AND orderdb.odate='$orderdate' ORDER BY odate DESC");
$nume=mysql_num_rows($result2);

$pdate = mysql_query("SELECT odate 
FROM orderdb 
WHERE odate='$orderdate'
");
list($page_date) = mysql_fetch_row($pdate);

$poutlet = mysql_query("SELECT outlet 
FROM pstaff 
WHERE outlet='$outlet'
");
list($page_outlet) = mysql_fetch_row($poutlet);
?>

<!DOCTYPE html>
<html lang="en">
<head>
    <title><?php echo $page_date.'|'.$page_outlet; ?></title>
    <meta charset="utf-8">
    <link rel="stylesheet" href="css/reset.css" type="text/css" media="all">
    <link rel="stylesheet" href="css/grid.css" type="text/css" media="all">
    <link rel="stylesheet" href="css/style.css" type="text/css" media="all">
    <!--[if lt IE 9]>
        <script type="text/javascript" src="js/html5.js"></script>
    <![endif]-->
    <script>
function validate()
{
    if (document.forms["contact-form"]["outlet"].value=="") { 
    alert("Please choose an outlet");
    return false; 
    }
    else if (document.forms["contact-form"]["odate"].value=="") { 
    alert("Please choose a date");
    return false; 
    }

}
    function printDiv(content2) {
     var printContents = document.getElementById(content2).innerHTML;
     var originalContents = document.body.innerHTML;

     document.body.innerHTML = printContents;

     window.print();

     document.body.innerHTML = originalContents;
}

    </script>

</head>

<body>
    <header>
        <nav>
            <div class="container">
                <div class="wrapper">
                    <a href="aindex.php"><img src="images/logo.png" alt="OFO logo" /></a>
                    <ul>
                        <li><a href="astock.php" class="current">View Order</a></li>
                        <li><a href="astockview.php">View Pending</a></li>
                        <li><a href="index-2.html">industries</a></li>
                        <li><a href="index-3.html">contacts</a></li>
                    </ul>
                </div>
            </div> 
            <li style="color:#CCC" ...
$qoutlet=("SELECT outlet  
FROM pstaff  
WHERE  staff_id='$id'
");
$outlet1=mysql_query($qoutlet);
while($row = mysql_fetch_array($outlet1))
            {

                echo $row['outlet'];
            }

$orderdate=$_POST['orderdate'];
$outlet=isset($row['outlet']);

$filename=("$orderdate.pdf");
header('Content-type:application/pdf');
header("Content-disposition: inline; filename=file.pdf");
readfile($filename);

how do i call the value?

not working too..

$filename=("../{$orderdate}_{$outlet}.pdf");
header('Content-type:application/pdf');
header("Content-disposition: inline; filename=file.pdf");
readfile($filename);

yea..its not displaying the pdf file

it this what u mean?

<?php
include_once 'admin-class.php';
$admin = new itg_admin();
$admin->_authenticate();

$con=mysql_connect("#","#","#");
mysql_select_db("mdb_lh026", $con);
$id=$_SESSION['admin_login'];
$outlet=("SELECT outlet  
FROM pstaff  
WHERE  staff_id='$id'
");
$outlet1=mysql_query($outlet);
while($row = mysql_fetch_array($outlet1))
            {
                echo $row['odate'];
                echo $row['outlet'];
            }

$orderdate=$_POST['orderdate'];

$filename=("../{$orderdate}_{$outlet}.pdf");
header('Content-type:application/pdf');
readfile($filename);

?>
<?php
include_once 'admin-class.php';
$admin = new itg_admin();
$admin->_authenticate();

$con=mysql_connect("#","#","#");
mysql_select_db("mdb_lh026", $con);
$id=$_SESSION['admin_login'];
$outlet=("SELECT outlet  
FROM pstaff  
WHERE  staff_id='$id'
");
$orderdate=$_POST['orderdate'];

$filename=("../{$orderdate}_{$outlet}.pdf");
header('Content-type:application/pdf');
readfile($filename);

?>

cannot..fail to load pdf document

I want to display pdf file in browser.
odo1.php has the file to select the date.
read.php will read the date from odo1.php.
i have this files 2013-03-26_SAP.pdf, 2013-03-05_SAP and more to come.
the name of this file is combination of date and outlet.
when i change the readfile($filename); to 2013-03-05_SAP.pdf it work well.
pls help.

file:odo1.php

<form id="contact-form" action="read.php" onsubmit="return validate()" method="post" enctype="multipart/form-data">
                      <fieldset>
                          <h4>
                        Order Date: <input type="date" name="orderdate">

                    </h4>

                        </fieldset>
                        <p></p>
                      <input type="submit" name="submit" value="View Delivery Order" />

                </form>

read.php

<?php
include_once 'admin-class.php';
$admin = new itg_admin();
$admin->_authenticate();

$con=mysql_connect("#","#","#");
mysql_select_db("mdb_lh026", $con);
$id=$_SESSION['admin_login'];
$outlet=("SELECT outlet  
FROM pstaff  
WHERE  staff_id='$id'
");
$orderdate=$_POST['orderdate'];

$filename=('../'.'$orderdate'.'_'.'$outlet'.'.pdf');
header('Content-type:application/pdf');
readfile($filename);

?>

Sorry but no data too..by the way thanks alot to LastMitch and pixelsoul..

ok..added or die('Could not connect: ' . mysql_error());
nothing wrong with the query..
i guess the problem is the white space or other things..

i hate to say this but same result.no data

Rows Returned: 12013-03-26SAP
Array
(
    [view] => no
    [odate] => 2013-03-26
    [outlet] => SAP
)
1
Not View Yet View

First file

<?php
include_once 'admin-class.php';
$admin = new itg_admin();
$admin->_authenticate();
$odate=isset($row['odate']); 
$outlet=isset($row['outlet']);
$con=mysql_connect("#","#","#");
mysql_select_db("mdb_lh026", $con);

$id=$_SESSION['admin_login'];
$result2 = mysql_query("SELECT odate,itemcode, quantity, saiz, remark FROM orderdb ORDER BY odate DESC");
$nume=mysql_num_rows($result2);

?>
 <?php 

          if($nume==0)
          {  echo "You currently have no item to show"; }
          else if(isset($_GET['msg']))
          {
            $msg = $_GET['msg'];
            if($msg!='')
            { 
            echo '<table border="1">
                <tr>
                <td><font color="red">'.$msg.'</font></td>
                </tr>
                </table>';
            }
        } 
            ?></font></strong></p>

            <table width="680px" cellspacing="0" cellpadding="5">
                        <tr bgcolor="#ddd">
                            <th width="220" align="left">Date </th> 
                            <th width="200" align="left">Outlet </th> 
                            <th width="130" align="left">Status</th> 
                            <th width="70"> </th>
                        </tr>
        <?php

        $start=(isset($_GET['start'])) ? (int)$_GET['start']:0;

            if(strlen($start) > 0 and !is_numeric($start))
            {
                echo "Data Error";
                exit;
            }

            $eu = ($start - 0); 
            $limit = 5;                           
            $this1 = $eu + $limit; 
            $back = $eu - $limit; 
            $next = $eu + $limit; 

            $result = mysql_query("SELECT DISTINCT orderdb.view,orderdb.odate,pstaff.outlet FROM orderdb,pstaff WHERE pstaff.outlet='SAP' AND orderdb.odate='2013-03-26' ORDER BY orderdb.odate ") or die(mysql_error());

            while($row = mysql_fetch_array($result))
            {

                echo "<td>" .$row['odate']. "</td>";
                echo "<td>" .$row['outlet']. "</td>";

                if($row['view']=='no'){
                    echo "<pre>";
echo print_r($row);
echo "</pre>";
                    echo "<td>Not View Yet</td>";
                    echo "<td align='center'> <a href='astockview2.php?outlet=".$row['odate'].$row['outlet']."'>View</a> </td>";
echo"<input type='hidden' name='odate' value='". $row['odate'] ."' />";
echo"<input type='hidden' name='outlet' value='". $row['outlet'] ."' />";
                    }

                echo "</tr>";
            }

        mysql_close($con);
                        ?>
                        </table>

Second file

<?php
include_once 'admin-class.php';
$admin = new itg_admin();
$admin->_authenticate();
$odate=isset($row['odate']); 
$outlet=isset($row['outlet']);
$con=mysql_connect("#","#","#");
mysql_select_db("mdb_lh026", $con);
$id=$_SESSION['admin_login'];
$result2 = mysql_query("SELECT orderdb.odate,orderdb.itemcode,orderdb.quantity,orderdb.saiz,orderdb.remark,  
 pstaff.outlet  
FROM orderdb ,pstaff  
WHERE  orderdb.staff_id =pstaff.staff_id
AND pstaff.outlet='$outlet'
AND orderdb.odate='$odate' ORDER BY odate DESC");
$nume=mysql_num_rows($result2);

?>
<?php 

          if($nume==0)
          {  echo "You currently have no item to show"; }
          else if(isset($_GET['msg']))
          {
            $msg = $_GET['msg'];
            if($msg!='')
            { 

             '<table border="1">
                <tr>
                <td><font color="red">'.$msg.'</font></td> ...

@pixelsoul..done as you said but same result

f448651097286c0cd67cc9ee8ba7c7b6

after click no data..

Host server.. first file is to display date and outlet so that second file can display details data from the date and outlet.

d4fdb0f87deb2c55ab0e36aec5d009c9 1ec896d0372ea11835c0055762a6b05c

i have run my code in the database itself..the data is display..but not in the web.

9c6af6dedbfd14fc6e49a8f64eb1c890 7feadfaf665b893a3da62b19840c5039

still not working..data not shown..

$result = mysql_query("SELECT DISTINCT orderdb.view,orderdb.odate,pstaff.outlet FROM orderdb,pstaff WHERE pstaff.outlet='SAP' AND orderdb.odate='2013-03-26' ORDER BY orderdb.odate  limit $eu, $limit") or die(mysql_error());

            $odate=isset($row['odate']); 
$outlet=isset($row['outlet']);

            while($row = mysql_fetch_array($result))
            {

                echo "<td>" .$row['odate']. "</td>";
                echo "<td>" .$row['outlet']. "</td>";

                if($row['view']=='no'){
                    echo "<pre>";
echo print_r($row);
echo "</pre>";
                    echo "<td>Not View Yet</td>";
                    echo "<td align='center'> <a href='astockview2.php?outlet=".$row['odate'].$row['outlet']."'>View</a> </td>";
echo"<input type='hidden' name='odate' value='". $row['odate'] ."' />";
echo"<input type='hidden' name='outlet' value='". $row['outlet'] ."' />";
                    }

                echo "</tr>";
            }

i have tried your method to replace with

echo "<td align='center'> <a href='astockview2.php?outlet=".$odate.$outlet."'>View</a> </td>";

this is the full code for atockview.php where the unseen data is shown.

<?php
include_once 'admin-class.php';
$admin = new itg_admin();
$admin->_authenticate();
$orderdate=isset($row['odate']); 
$outlet=isset($row['outlet']);
$con=mysql_connect("#","#","#");
mysql_select_db("#", $con);

$id=$_SESSION['admin_login'];
$result2 = mysql_query("SELECT odate,itemcode, quantity, saiz, remark FROM orderdb WHERE staff_id='$id' ORDER BY odate DESC");
$nume=mysql_num_rows($result2);

?>
<!DOCTYPE html>
<html lang="en">
<head>
    <title></title>
    <meta charset="utf-8">
    <link rel="stylesheet" href="css/reset.css" type="text/css" media="all">
    <link rel="stylesheet" href="css/grid.css" type="text/css" media="all">
    <link rel="stylesheet" href="css/style.css" type="text/css" media="all">
    <!--[if lt IE 9]>
        <script type="text/javascript" src="js/html5.js"></script>
    <![endif]-->
</head>

<body>
    <header>
        <nav>
            <div class="container">
                <div class="wrapper">
                    <h1><a href="index.html"><strong>Industrial</strong>Services</a></h1>
                    <ul>
                        <li><a href="astock.php">View Order</a></li>
                        <li><a href="astockview.php">View Pending</a></li>
                        <li><a href="index-2.html" class="current">industries</a></li>
                        <li><a href="index-3.html">contacts</a></li>
                    </ul>
                </div>
            </div> 
            <li style="color:#CCC" style="font-size:medium"><?php
if(isset($_SESSION['admin_login'])){
    echo( 'Welcome    '.$admin->get_name().' >>>'.'<a href="logout.php">Logout</a>');}
?> </li>
        </nav>
        <section class="adv-content">
            <div class="container">
                <ul class="breadcrumbs">
                    <li>Industries</li>
                </ul>
                <form action="" id="search-form">
                    <fieldset>
                        <input type="text" value=""><input type="submit" value="">
                    </fieldset>
                </form>
            </div>
        </section><div class="ic">More Website Templates at TemplateMonster.com!</div>
    </header>
    <section id="content">
        <div class="top">
            <div class="container">
                <div class="clearfix">
                  <div class="grid9 first">
                        <h2>Stock Order</h2>
                        <h3><div id="content2" class="float_r">
                          <h1>&nbsp;</h1>
                          <div id="content" class="float_r">

          <p><strong><font color="red">
          <?php 

          if($nume==0)
          {  echo "You currently have no item to show"; }
          else if(isset($_GET['msg']))
          {
            $msg = $_GET['msg'];
            if($msg!='')
            { 
            echo '<table border="1">
                <tr>
                <td><font color="red">'.$msg.'</font></td>
                </tr>
                </table>';
            }
        } 
            ?></font></strong></p>

            <table width="680px" cellspacing="0" cellpadding="5">
                        <tr bgcolor="#ddd">
                            <th width="220" align="left">Date </th> 
                            <th width="200" align="left">Outlet </th> 
                            <th width="130" align="left">Status</th> 
                            <th width="70"> </th>
                        </tr>
        <?php

        $start=(isset($_GET['start'])) ? (int)$_GET['start']:0;

            if(strlen($start) > 0 and !is_numeric($start))
            {
                echo "Data Error";
                exit;
            }

            $eu = ($start - 0); 
            $limit = 5;                           
            $this1 = $eu + $limit; 
            $back = $eu - $limit; 
            $next = $eu + ...

How to solve the undefined index error? i have tried to make hidden field but not working also..

 <?php 

          if($nume==0)
          {  echo "You currently have no item to show"; }
          else if(isset($_GET['msg']))
          {
            $msg = $_GET['msg'];
            if($msg!='')
            { 
            echo '<table border="1">
                <tr>
                <td><font color="red">'.$msg.'</font></td>
                </tr>
                </table>';
            }
        } 
            ?></font></strong></p>

            <table width="680px" cellspacing="0" cellpadding="5">
                        <tr bgcolor="#ddd">
                            <th width="220" align="left">Date </th> 
                            <th width="200" align="left">Outlet </th> 
                            <th width="130" align="left">Status</th> 
                            <th width="70"> </th>
                        </tr>
        <?php

        $start=(isset($_GET['start'])) ? (int)$_GET['start']:0;

            if(strlen($start) > 0 and !is_numeric($start))
            {
                echo "Data Error";
                exit;
            }

            $eu = ($start - 0); 
            $limit = 5;                           
            $this1 = $eu + $limit; 
            $back = $eu - $limit; 
            $next = $eu + $limit; 

            $result = mysql_query("SELECT DISTINCT orderdb.view,orderdb.odate,pstaff.outlet FROM orderdb,pstaff WHERE pstaff.outlet='SAP' AND orderdb.odate='2013-03-26' ORDER BY orderdb.odate  limit $eu, $limit");

            while($row = mysql_fetch_array($result))
            {
                echo"<input type='hidden' name='odate' value='". $row['odate'] ."' />";
                echo"<input type='hidden' name='outlet' value='". $row['outlet'] ."' />";
                echo "<td>" .$row['odate']. "</td>";
                echo "<td>" .$row['outlet']. "</td>";

                if($row['view']=='no'){
                    echo "<td>Not View Yet</td>";
                    echo "<td align='center'> <a href='astockoutlet.php?outlet=".$row['odate']."'>View</a> </td>";

                    }

                echo "</tr>";
            }

        mysql_close($con);
                        ?>
             </table>

*Notice: Undefined index: odate in /home/lh026/public_html/pro1/astockoutlet.php on line 5

Notice: Undefined index: outlet in /home/lh026/public_html/pro1/astockoutlet.php on line 6*

Wow..it really works..you are genius..thank you so much pixelsoul =)

I still have time for one week.. thanks in advance.. its my lucky day to have ur guidance..

After following your advice to hidden the field the errors did reduce..

<td><input type="checkbox" name="itemcode" id="checkbox[]" value="<? $row['itemcode']; ?>">
    <input type="hidden" name="saiz" value="<?php $row['saiz']; ?>" />
    <input type="hidden" name="odate" value="<?php $row['odate']; ?>" />
    <input type="hidden" name="quantity" value="<?php $row['quantity']; ?>" />
    <input type="hidden" name="remark" value="<?php $row['remark']; ?>" />
    <input type="hidden" name="staff_id" value="<?php $row['staff_id']; ?>" />
    <input type="hidden" name="checkbox" value="<?php $row['checkbox']; ?>" />
    <input type="hidden" name="delete" value="<?php $row['delete']; ?>" />
    </td>

but how do i settle this?

Warning: Invalid argument supplied for foreach() in /home/lh026/public_html/pro1/ostock.php on line 166

Notice: Undefined variable: delete in /home/lh026/public_html/pro1/ostock.php on line 175

Even more errors. I'm really having a hard time figuring out these errors.

<td><input type="checkbox" name="itemcode" id="checkbox[]" value="<? $row['itemcode']; ?>">
    <input type="hidden" name="saiz" value="<?php $row['saiz']; ?>" />
    <input type="hidden" name="odate" value="<?php $row['odate']; ?>" /></td>
    <td><?php echo $row['odate'];?></td>

Notice: Undefined index: quantity in /home/lh026/public_html/pro1/ostock.php on line 154

Notice: Undefined index: checkbox in /home/lh026/public_html/pro1/ostock.php on line 155

Warning: Invalid argument supplied for foreach() in /home/lh026/public_html/pro1/ostock.php on line 159

Notice: Undefined variable: delete in /home/lh026/public_html/pro1/ostock.php on line 168

i have change to $_POST but the errors are still the same.

I want to have this table and user will be able t delete row of data if they wish to with the checkbox. But the errors i don't know how to solve:

Notice: Undefined index: itemcode in /home/lh026/public_html/pro1/ostock.php on line 153

Notice: Undefined index: saiz in /home/lh026/public_html/pro1/ostock.php on line 154

Notice: Undefined index: quantity in /home/lh026/public_html/pro1/ostock.php on line 155
1 Records deleted Successfully.

The data is not deleted in database but message show 1 Records deleted Successfully...Please help.

<form name="form1" method="POST" action="">
                        <div id="content2" class="float_r">
                          <h1> </h1>
                          <h4><a href="addstock.php"><img src= "img/add.png" /><strong> Add Items</strong></a></h4>
                          <p><strong><font color="red">
                            <?php 

          if($nume==0)
          {  echo "You currently have no item to show"; }
          else if(isset($_GET['msg']))
          {
            $msg = $_GET['msg'];
            if($msg!='')
            { 
            echo '<table border="1">
                <tr>
                <td><font color="red">'.$msg.'</font></td>
                </tr>
                </table>';
            }
        } 
            ?>
                            </font></strong></p>
                          <table width="747" cellspacing="0" cellpadding="5">
                            <tr bgcolor="#ddd">
                            <th width="61"> </th>
                              <th width="98" align="left">Date </th>
                              <th width="87" align="left">Item Code </th>
                              <th width="76" align="left">Quantity</th>
                              <th width="39" align="left">Size </th>
                              <th width="270" align="left">Remark</th>
                              <th width="44" align="left">ID </th>

                            </tr>
                            <?php

        $start=(isset($_GET['start'])) ? (int)$_GET['start']:0;

            if(strlen($start) > 0 and !is_numeric($start))
            {
                echo "Data Error";
                exit;
            }

            $eu = ($start - 0); 
            $limit = 5;                           
            $this1 = $eu + $limit; 
            $back = $eu - $limit; 
            $next = $eu + $limit; 
            $date =  date("Y-m-d",time() + (8 * 3600)); 

            $result = mysql_query("SELECT orderdb.odate,orderdb.itemcode,orderdb.quantity,orderdb.saiz,orderdb.remark,  
 pstaff.staff_id  
FROM orderdb ,pstaff  
WHERE  orderdb.staff_id =pstaff.staff_id
AND orderdb.staff_id='$id'
AND orderdb.odate='$date'");
            ?>
            <?php
 while($row=mysql_fetch_array($result))
 {
?>

 <tr>

    <td><input name="checkbox[]" type="checkbox" id="checkbox[]" value="<? echo $row['odate'].$row['itemcode'].$row['saiz']; ?>"></td>
    <td><?php echo $row['odate'];?></td>
    <td><?php echo $row['itemcode'];?></td>
    <td><?php echo $row['quantity'];?></td>
    <td><?php echo $row['saiz'];?></td>
    <td><?php echo $row['remark'];?></td>
     <td><?php ...