Note that there are some explanatory texts on larger screens.

plurals
  1. POusing CMS to open page
    primarykey
    data
    text
    <p>this is the index.php </p> <pre><code> &lt;table align="center" border="0" cellpadding="0" cellspacing="0"&gt; &lt;tbody&gt; &lt;?php include 'header.php'; ?&gt; &lt;tr&gt; &lt;td class="row_2"&gt; &lt;!-- header_eof //--&gt; &lt;!-- body //--&gt; &lt;table class="main_table" border="0" cellpadding="0" cellspacing="0"&gt; &lt;tbody&gt; &lt;tr&gt; &lt;?php if($cond) include 'left.php'; ?&gt; &lt;!-- body_text //--&gt; &lt;?php get_page(); ?&gt; &lt;!-- body_text_eof //--&gt; &lt;?php if($cond) include 'right.php'; ?&gt; &lt;/tr&gt; &lt;tr&gt; &lt;?php if(!$cond) include 'contents/contact_us.php';?&gt; &lt;/tr&gt; &lt;/tbody&gt; &lt;/table&gt; &lt;!-- body_eof //--&gt; &lt;!-- footer //--&gt; &lt;/td&gt; &lt;/tr&gt; &lt;?php include 'footer.php'; ?&gt; &lt;/tbody&gt; &lt;/table&gt; </code></pre> <p>This is header.php . I have created link from database </p> <pre><code> &lt;?php $menus = db_query("select * from menus where type=0 order by weight"); $sr = 0; while($menu = mysql_fetch_object($menus)) { ?&gt; &lt;?php if(($sr++) &gt; 0){ ?&gt; &lt;td class="menu_separator"&gt;&lt;img src="&lt;?php echo SROOT;?&gt;images/menu_separator.png" alt="" class="png" width="2" border="0" height="49"&gt;&lt;/td&gt; &lt;?php } ?&gt; &lt;td id="&lt;?php echo get_id($menu-&gt;page_name); ?&gt;" &lt;?php echo get_event($menu-&gt;page_name); ?&gt; onClick="document.location='&lt;?php echo SROOT . $menu-&gt;page_name;?&gt;'" nowrap="nowrap"&gt;&lt;?php echo $menu-&gt;title; ?&gt;&lt;/td&gt; &lt;?php } ?&gt; </code></pre> <p>this is the get_page function </p> <pre><code>function get_page() { $page = arg(0); $page = (empty($page)) ? 'home' : $page; $cat = db_query("select * from mb_category where title='".$page."'"); $page = (mysql_num_rows($cat)) ? 'brands' : $page; include 'contents/'. $page .'.php'; } </code></pre> <p>I have everything in the right place.The same code is working for my friend but we are unable to understand the problem here. I get error cannot find page. His is working fine.</p> <p>When i click link it says cannot find page..but his goes to page</p> <p>Can anyone please help and tell me what i am doing wrong</p>
    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.
    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