Board index   FAQ   Search  
Register  Login
Board index PHP PHP General

Need include_once help

General discussions related to php

Moderators: macek, egami, gesf

Need include_once help

Postby jay5433uk » Sat Oct 13, 2012 10:58 am

Hi all
I'm new to this forum and just as new to php and html. I am creating my first basic website and have got one small problem when using include_once on my site.
I have one webpage that changes the text on it depending on which link is clicked on by using different include files, this all works fine but the at the end of the text it always shows a number one.

this is the code to insert the text file
<div id="contentRight">
<p></p>
<?php echo
include_once 'index.inc';
?>
</div>


can anyone tell me were the number 1 keeps coming from after this text, iv check index.inc and there is no number 1 in that file.

this is the index page of the site I'm trying to make
http://www.bluebellaparties.co.uk/newsite/
Hope this makes sence and someone can help me.
regards
Jason
jay5433uk
New php-forum User
New php-forum User
 
Posts: 2
Joined: Sat Oct 13, 2012 10:44 am

Re: Need include_once help

Postby jay5433uk » Sat Oct 13, 2012 11:14 am

sorted, removed the echo and it fixed it.
jay5433uk
New php-forum User
New php-forum User
 
Posts: 2
Joined: Sat Oct 13, 2012 10:44 am


Return to PHP General

Who is online

Users browsing this forum: Bing [Bot] and 1 guest

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.