January 17, 201016 yr <H1>Hot Brands</H1> <DIV class=left-box> <UL class=sidemenu> <LI><A href="http://www.customcricketbats.co.uk/fusionsports.html">Fusion Sports</A><LI><A href="http://www.customcricketbats.co.uk/redbackcricket.html">Redback Cricket</A><LI><A href="http://www.customcricketbats.co.uk/solitairecricket.html">Solitaire</A><LI><A href="http://www.customcricketbats.co.uk/vantagecricket.html">Vantage Cricket</A><LI><A href="http://www.customcricketbats.co.uk/blackcatcricket.html">Black Cat Cricket</A> </LI></UL> </DIV> Can anyone change this code so that instead of having the links, each company link can be edited from a PHP file. (eg. link1.php, link2.php, etc) Im really stuck
January 17, 201016 yr Hey, Piece of cake! <H1>Hot Brands</H1> <DIV class=left-box> <UL class=sidemenu> <LI> <?php require_once('company1.php'); require_once('company2.php'); require_once('company3.php'); require_once('company4.php'); ?> </LI></UL> </DIV>
January 17, 201016 yr Author When I try to implement this my menu goes funny... http://www.customcricketbats.co.uk/solitairecricket.php Also when I copy the code u wrote into the menu myself it always appears twice for some reason?! http://www.customcricketbats.co.uk/test.php Thanks
January 17, 201016 yr What's with the capitals? Sorry I'm feeling picky today And I can't realy help with PHP I'm afraid
January 17, 201016 yr The /solitairecricket.php opens a blank page, your server probably disabled PHP error messages, and on the /test.php , I can't see any duplicate of that menu. Do you even have those company1, 2, etc. files on your server?
January 17, 201016 yr Author Sorry, I mean if you go onto http://www.customcricketbats.co.uk/test.php you will see it says "Fusion Sports" twice on the hot brands menu when it is meant to appear once? I have just copied your include into the menu and in the other PHP file there is just one hyperlink
January 18, 201016 yr Author Anyone got any idea?! If I just do the normal include it still appears twice
Create an account or sign in to comment