Jump to content

ThEMakeR

New Members
  • Posts

    5
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

ThEMakeR's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. I might have to start from scratch because I cant get it to work. Anyone got a script they use that will work with a link system?
  2. Hi again, I have developed some code for a PHP navigation system, similar to a tutorial I recently looked at, but I'm not sure how I make the appropriate cat_x.php page appear when a link, <a href.... </a>, is clicked. The code 'script' I am using is: Script: [code]<?php if ($p == "") { include "v3/catalogue.php"; } elseif ($p == "cat_1.php") { include "v3/cat_1.php"; } elseif ($p == "cat_2.php") { include "v3/cat_2.php"; } elseif ($p == "cat_3.php") { include "v3/cat_3.php"; } elseif ($p == "cat_4.php") { include "v3/cat_4.php"; } elseif ($p == "cat_5.php") { include "v3/cat_5.php"; } else { include "v3/error.php"; } ?>[/code] What I need to happen: I need to be able to click a link on a page called "catalogue.php", have the variable(?) $p select the appropriate cat_x.php page and display its contents, its catalogue items rather, on the page. How do I get around this?? To help a bit more I am including the full code for my page: [code]<?php   include "header.php"; ?> <br /> <div align="center"> <img src="images/cat_img.gif" alt="Martin & D'almeida antique catalogue 2006" /> <br /> <font>Click the desired catalogue link to see those items</font> <br /><br /> <a href="http://www.manddantiques.com/catalogue.php?p=cat_1.php"><img src="images/cat_1.jpg" alt="Urns and Ornaments catalogue of stock" height="140" width="100" /></a> <a href="http://www.manddantiques.com/catalogue.php?p=cat_2.php"><img src="images/cat_2.jpg" alt="Carvings and Sculptures catalogue of stock" height="140" width="100" /></a> <a href="http://www.manddantiques.com/catalogue.php?p=cat_3.php"><img src="images/cat_3.jpg" alt="Garden Statuary catalogue of stock" height="140" width="100" /></a> <a href="http://www.manddantiques.com/catalogue.php?p=cat_4.php"><img src="images/cat_4.jpg" alt="Decorative Items catalogue of stock" height="140" width="100" /></a> <a href="http://www.manddantiques.com/catalogue.php?p=cat_5.php"><img src="images/cat_5.jpg" alt="Chimney and Fire Pieces catalogue of stock" height="140" width="100" /></a> <br /> <a href="http://www.manddantiques.com/catalogue.php?p=cat_1.php">Urns &amp; Ornaments</a> <a href="http://www.manddantiques.com/catalogue.php?p=cat_2.php">Carvings &amp; Sculptures</a> <a href="http://www.manddantiques.com/catalogue.php?p=cat_3.php">Garden Statuary</a> <a href="http://www.manddantiques.com/catalogue.php?p=cat_4.php">Decorative Items</a> <a href="http://www.manddantiques.com/catalogue.php?p=cat_5.php">Chimney &amp; Fire Pieces</a> <br /><br /> <font><u>All items are for sale unless otherwise stated</u></font> </div> <?php   include "footer.php"; ?>[/code] Have I gone about it the wrong way?! Please spend a small few minutes helping me if you can, thanks very much to anyone who lends a hand. Its very appreciated!
  3. Wow! That was mega quick and muchly appreciated! I will work on it now. See now that i've looked at it in the code (so to speak) I see how it all works but im damned if i'll ever learn how to do it myself :)
  4. For too long I have used scripts kindly donated from php webmasters to get my website like I want. However, from now on I'm gonna work my ass off to get as good as the coders who donate there work. Everyone who doesnt bother to work, like I used too, should stop crying there eyes out with frustration and start to learn and read through the documentation provided by php.net. :)
  5. I really need some help from this community regarding a script/code (in php) for an item catalogue with the following fields: id name description image I have made a database with those four fields in it: [b]field[/b]                [b]Type[/b]              [b]Collation[/b]                  [b]Null[/b]              [b]Extra[/b] id                    int(11)                                            NO                auto_increment      <id is primary key item_name        Text                latin1_swedish_ci        NO item_desc        Text                latin1_swedish_ci        NO item_img          Blob                                              NO ^Hope thats clear enough peeps. Well I can make the database but I can't do the PHP code needed to display the contents of that database on a php page. Does anyone have any code or an example of a similar system I can use?? Any help is much appreciated!
×
×
  • 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.