Page 1 of 1
How to display new line??? PLease help me
Posted: Fri Jan 16, 2009 5:40 am
by ginogeorgep
This is my code
echo "$value1";
echo "$value2";
I have to display value2 in new line.I have tried \n but it is not working.Please help me..I am new to php.
Re: How to display new line??? PLease help me
Posted: Fri Jan 16, 2009 5:54 am
by susrisha
\n is used if the access is done through command line.
If you are trying to view the same on a browser , you should use <br /> tag for that
Code: Select all
echo "$value1 <br />";
echo "$value2 <br />";
Re: How to display new line??? PLease help me
Posted: Fri Jan 16, 2009 6:17 am
by ginogeorgep
Hi Susrisha,
Great

It is working now..Thnak a lot for your replay..PLease let me know how i can use "marquee" with echo "$value1 <br />";
Is it possible? I need to scroll up my text.
Thanks In advance

Re: How to display new line??? PLease help me
Posted: Fri Jan 16, 2009 6:20 am
by Mark Baker
I suggest that you read up a few tutorials on writing HTML before you try PHP
http://www.w3schools.com/html/DEFAULT.asp
Re: How to display new line??? PLease help me
Posted: Fri Jan 16, 2009 6:28 am
by ginogeorgep
Hello Mark Baker,
I know html a bit , What I need is I have a data from mysql.I could display the data in my page but i wish to give some actions like moving up or moving down this datas.Whether i need to use java script for this or i can do it by using marquee?
Re: How to display new line??? PLease help me
Posted: Fri Jan 16, 2009 6:54 am
by Mark Baker
Code: Select all
echo '<MARQUEE>';
echo $value1;
echo '</MARQUEE>';
Re: How to display new line??? PLease help me
Posted: Fri Jan 16, 2009 7:33 am
by ginogeorgep
Thanks Mark Baker ..It is working now..

Re: How to display new line??? PLease help me
Posted: Fri Jan 16, 2009 7:38 am
by ginogeorgep
Today i have completed the works on my site..Now it is working nicely.It is my personal website, Now I am about to find new ideas for the development of my site. If any one have any ideas for improving personal sites please inform me..At present my site contains albums,videos, allows vistors to write testmonials,.