Undefined variable in pagination script
<p>this my script.When i do this,it works fine</p>

<pre><code>$query = "select * FROM aboutusx order by title desc";
</code></pre>

<p>but when i do this </p>

<pre><code>$query = "select * FROM aboutusx WHERE myaccountid='$myid' order by title desc";
</code></pre>

<p>then i get this</p>

<blockquote>
  <p>Notice: Undefined variable: <code>start</code> in D:\xampp\htdocs\kwa\admin\userindex\inc\ps_pagination.php on line 176</p>
</blockquote>

<p>i need this piece of code myaccountid='$myid' in order to select data input by user with that id .Am building a cms that require user specific data shown to specific users with specific user id </p>

<p>Here is my code:</p>

<pre><code>$count_num_str='50';
$query = "select * FROM aboutusx WHERE myaccountid='$myid' order by title desc";
$pager = new ps_pagination($conn,$query,50,50);
$rs = $pager-&gt;paginate();
while($row = mysql_fetch_assoc($rs))

{
    $id = $row['id'];
    $page = $row['title'];
    $category =  substr($row['pagecontent'],0, $count_num_str);
    $isshow = $row['isshow'];

    echo"
    &lt;table width='100%' border='0' cellspacing='1' cellpadding='1'&gt;
    &lt;tr bgcolor='#FFECD9'&gt;
    &lt;td width='7%' align=center class=fonts&gt;&lt;a href=aboutusx.php?nav=edit&amp;id=$id&amp;page=$page&amp;category=$category&gt;&lt;img src='img/icon/edit.gif' width='18' height='18' border='0' /&gt;&lt;/a&gt;&lt;/td&gt;
    &lt;td width='25%' align='left' class='bodyTxt'&gt;&amp;nbsp;$page&lt;/td&gt;
    &lt;td width='25%' align='justify' class='bodyTxt'&gt;&amp;nbsp;$category ...&lt;/td&gt;
    &lt;td width='25%' align='center' class='bodyTxt'&gt;&amp;nbsp;$isshow&lt;/td&gt;
    &lt;td width='7%' align='center'&gt;&lt;a href=delete.php?nav=del&amp;id=$id&gt;
&lt;img src='img/icon/delete.gif' width='18' height='18' border='0' /&gt;&lt;/a&gt;&lt;/td&gt;                            
                    &lt;/tr&gt;
                    &lt;tr bgcolor=#FF9933 align=center&gt;
                      &lt;td colspan=14&gt;&lt;div align=center&gt;&lt;img src=/img/spacer.gif width=1 height=1&gt;&lt;/div&gt;&lt;/td&gt;
                    &lt;/tr&gt;
                    ";  
                    }
            //Display the full navigation in one go
            echo"&lt;tr&gt;&lt;td class='bodyTxt' colspan='14' align='center'&gt;&lt;br&gt;" .$pager-&gt;renderFullNav(). "&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;";
</code></pre>
