Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

PHP include

Featured Replies

<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 :(

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>

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?

  • 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

  • Author

Anyone got any idea?! If I just do the normal include it still appears twice :(

Unless you've fixed it it only appears the once I my browser ie8

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.