[PHP] PHP.... i suck at it

2001-07-22 Thread Kyle Smith

Ok this may sound really pathetic but how do i add a new line (like a space) to a code 
like this

?php
echo IP ADDRESS;

echo $remote_admin;
?

cause when i try the code out it looks like 

IPADDRESS127.0.0.1

and i want it to look like

IP ADDRESS
127.0.0.1

or 

IP ADDRESS

127.0.0.1

so what do i put in?

Thanks for your time :)



RE: [PHP] PHP.... i suck at it

2001-07-22 Thread Kees Hoekzema

I think you want this:

?php
echo IP ADDRESS \n;

echo $remote_admin;
?

\n is the newline code.
so a double newline will look like: echo IP ADDRESS \n\n;

Kees Hoekzema


 -Original Message-
 From: Kyle Smith [mailto:[EMAIL PROTECTED]]
 Sent: Monday, July 23, 2001 2:47 AM
 To: [EMAIL PROTECTED]
 Subject: [PHP] PHP i suck at it


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] PHP.... i suck at it

2001-07-22 Thread Matthew Garman


Well, there are a few ways to do it.  The secret is to know a little bit
of HTML.  Another poster suggested using the br (line break) tag.  The
paragraph tag would also work nicely:

?php
echo pIP ADDRESS/p;
echo p$remote_admin/p;
?

Or you could start to get fancy by doing it with a table:

?php
echo table;
echo trtdIP ADDRESS/td/tr;
echo trtd$remote_admin/td/tr;
echo /table;
?

When I'm writing code such as the above, though, I usually do something
more like this:

p
IP ADDRESSbr
?php echo $remote_admin; ?
/p

Hope that helps!
Matt

On Sun, Jul 22, 2001 at 05:46:30PM -0700, Kyle Smith wrote:
 Ok this may sound really pathetic but how do i add a new line (like a space) to a 
code like this
 
 ?php
 echo IP ADDRESS;
 
 echo $remote_admin;
 ?
 
 cause when i try the code out it looks like 
 
 IPADDRESS127.0.0.1
 
 and i want it to look like
 
 IP ADDRESS
 127.0.0.1
 
 or 
 
 IP ADDRESS
 
 127.0.0.1
 
 so what do i put in?
 
 Thanks for your time :)

-- 
Matt Garman, [EMAIL PROTECTED]
I'll tip my hat to the new constitution, Take a bow for the new revolution
 Smile and grin at the change all around, Pick up my guitar and play
 Just like yesterday, Then I'll get on my knees and pray...
-- Pete Townshend/The Who, Won't Get Fooled Again


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]