Code Newbie
News     Forums     Search     Members     Sign Up    

My Code Newbie
Username

Password

Articles/Snippets
ASP Classic
ASP.NET
C
C#
C++
HTML / CSS
Java
Javascript
Linux / BSD
Perl
PHP
Python
Ruby
SQL
VB 6
VB.NET

C.N. Friends
  Planet Rome

Link to Us!
Code Newbie
  Code Newbie
    forums
Old 08-12-2002, 02:52 PM   #1 (permalink)
Blue Mage
Registered User
 
Join Date: Aug 2002
Posts: 1
Blue Mage is on a distinguished road
a question about "lines"

lets say I have something like this:

<br>
<br>
<br>

how would each line be identified in a php code, for example:

PHP Code:
while ([line] = <5) {
echo 
"";
}
else{
echo 
"[line number 1]001";

thank you
Blue Mage is offline   Reply With Quote
Old 08-12-2002, 06:15 PM   #2 (permalink)
sde
Moderator
 
sde's Avatar
 
Join Date: May 2002
Location: us.ca
Posts: 4,475
sde is on a distinguished road
hi blue mage =) welcome to codenewbie.com !

here is an example of how i would print 5 lines with php using a while loop:
PHP Code:
<?
$i
=0;
while(
$i 5)
{
     
// print <br> in each line
     
echo "<br>";

     
// increment $i
     
$i++;
}
?>
feel free to post anymore questions =)

have fun
sde is offline   Reply With Quote
Old 08-12-2002, 06:18 PM   #3 (permalink)
abc123
bloomberg
 
abc123's Avatar
 
Join Date: Jun 2002
Location: bloomberg
Posts: 263
abc123 is on a distinguished road
Send a message via AIM to abc123 Send a message via Yahoo to abc123
if you want to identify each line in html (is that what ur asking?) you can do this:


PHP Code:
<br id="$some_count_number" /> 
__________________
-- bloomberg.
abc123 is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Question marks and apostrophes Belisarius HTML, XML, Javascript, AJAX 4 05-28-2004 04:11 PM
Question about getting Arrays metazai PHP 16 04-24-2004 06:27 PM
DB Design Question Part II sde Program Design and Methods 3 05-10-2003 12:24 PM
Question about a php prediction script(Great Site!) Geetazz PHP 15 06-12-2002 05:37 PM


All times are GMT -8. The time now is 10:44 PM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0 RC8





Copyright © 2000-2008, Milano Interactive
Web Hosting provided by Portal 360 Web Hosting