Making PHP includes and echo print on same line?

  • Joe Bloggs
  • Newbie
  • Newbie
  • Joe Bloggs
  • Posts: 7

Post 3+ Months Ago

Code: [ Select ]
<?php include("welcome_slogan.php"); ?><?php echo $Record['content'] ?>


OK folks... let’s say the content of: welcome_slogan.php = Welcome to Joe’s Website.

And the content of the database / Record at: content is: Bingy bongy dummy text in Ipsum format stuff.

What I’m wanting to achieve is it to write to the page like this:

Welcome to Joe’s Website. Bingy bongy dummy text in Ipsum format stuff.

All on the same line...

What is actually happening is this:

Welcome to Joe’s Website.
Bingy bongy dummy text in Ipsum format stuff.

Tis on two lines...

Thanks in advance!
  • SpooF
  • ٩๏̯͡๏۶
  • Bronze Member
  • User avatar
  • Posts: 3422
  • Loc: Richland, WA

Post 3+ Months Ago

Check to make sure you dont have any returns/spaces after your php tags in welcome_slogan.php

Post Information

  • Total Posts in this topic: 2 posts
  • Users browsing this forum: No registered users and 81 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.