Note that there are some explanatory texts on larger screens.

plurals
  1. POPaging in php mysql
    primarykey
    data
    text
    <p>I'm trying to make a website with movies in it, everything is fine but i have just 1 little problem,when ever i make a website, i do all work in my local computer test it then I upload the web, the code below is for paging with query it works fine in WAMP (locally). But when I upload the paging code to my web server it says NOT EXIST. it shows the else part,whats the problem?</p> <pre><code>&lt;?php $per_page = 35; $page = 1; if (isset($_GET['page'])) { $page = intval($_GET['page']); if($page &lt; 1) $page = 1; } $start_from = ($page - 1) * $per_page; $con= mysql_connect("localhost","sarya_asad","Thisisfor123"); mysql_select_db('saryaal_com_movies',$con); $current_items = mysql_query( "SELECT * FROM `english` LIMIT $start_from, $per_page"); if( mysql_num_rows($current_items) &gt; 0) { while($item = mysql_fetch_assoc($current_items)) { ?&gt; &lt;tr&gt; &lt;td&gt; &lt;strong&gt;&lt;a href="english/english-preview.php?id=&lt;?php echo$item['id']?&gt;" &gt;&lt;?php echo $item['title'] ;?&gt;&lt;/a&gt; &lt;/strong&gt;&lt;/td&gt; &lt;td&gt; &lt;strong&gt; &lt;?php echo $item['year'] ;?&gt; &lt;/strong&gt;&lt;/td&gt; &lt;td&gt; &lt;strong&gt; &lt;?php echo $item['quality'] ;?&gt; &lt;/strong&gt; &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt;&lt;td&gt; &lt;?php } } else { echo 'this page does not exists'; } $total_rows = mysql_query("SELECT COUNT(*) FROM `english`"); $total_rows = mysql_fetch_row($total_rows); $total_rows = $total_rows[0]; $total_pages = $total_rows / $per_page; $total_pages = ceil($total_pages); # 19/5 = 3.8 ~=~ 4 for($i = 1; $i &lt;= $total_pages; ++$i) { echo "&lt;a href='temp2.php?page=$i' class='pagNumActive'&gt;$i&lt;/a&gt; &amp;nbsp;&amp;nbsp;"; } ?&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload