Jump to content

TheVoice

New Members
  • Posts

    4
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

TheVoice's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. o ya, please tell me what you think of the navigation bar effects as well. You can just generally mess around with it and see what effect it has on you (if any at all ). Thanks!
  2. the code is below: <title></title> <?php $start=1; $tube=1; // this variable represents the current page that the customer is on $repz=$start+9; $derka=14; // the total number of products $box_per_page=9; $pages=ceil($derka/$box_per_page); $sugar = array(1=>one,2=>two,3=>three,4=>four,5=>five,6=>six,7=>seven,8=>eight,9=>nine,10=>ten,11=>eleven,12=>twelve,13=>thirteen,14=>fourteen); //if ($tube == 1){ // $start=10; //} // code to create number of individual pages! //for ($p=0;$p<$pages;$p++){ //$tube++; echo "<html>"; echo "Catalog on tube $tube"; echo "<table height='70%' width='70%' align='center'>"; // code for each individual product to be arranged correctly per page for ($n=$start;$n < $repz;$n++){ if ($n==$start){ echo "<tr>"; } echo "<td>$sugar[$n]</td>"; if (is_int($n/3) and $n>1){ echo "</tr><tr>"; } if (is_int($n/$box_per_page) and $n>1){ echo "</table>"; $end=$n; if ($tube > 1 and (($tube - 1) != 0)) { $url = "test_Catalog.php?tube=" . $tube - 1; echo "<a href=\"$url\">Previous</a>\n"; } // page numbering links now for ($i = 0; $i < $pages; $i++) { $url = "test_Catalog.php?tube=" . $i; echo " | <a href=\"$url\">$i</a> | "; } if ($tube < $pages) { $url = "test_Catalog.php?tube=" . $tube + 1; echo "<a href=\"$url\">Next</a>\n"; echo "</html>"; } if ($start < $derka){ $start=$end+1; echo "the variable start equals $start"; } } } //} ?>
  3. http://tinyurl.com/3yc8wa/test_Catalog.php Hi. I have been trying to design a simple php catalog forever. I just wanted about 14 items in an array to be listed like google search results would be listed for instance. I made the code so that nine "products" would be align in a 3x3 arrangement. There would also be links at the bottom of the page, but the problem is that the links that the php code creates go to a different php page (as you can see from viewing the address bar after clicking the links) which still starts from the first item in the list of the array and not the 10 item (as should happen when moving to what should be the second page of this very basic catalog). I eventually want to use this code to list things from my MYSQL database which we won't have to talk about in this topic right now. Is there any open source website that offers a catalog that lists results in this ways that is readily "tweakable". I have tried for weeks and still cannot come up with how to change between products listed in my array. Your help would be much appreciated. Thank you all.
  4. Hi guys. Just signed up on this forum and need your honest opinion about the design/layout of my site. And maybe you can give it an appeal rating on a scale from 1 to 10? It is located at http://tinyurl.com/3yc8wa/ Thanks alot guys! I appreciate it.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.