Thanks Alot Guys!!!!!!! It works! now my next question is :
When do I actually use "\n"??? Thank you so much! Gianluca Baldo wrote: > Dani - > > D> echo "Result :\n"; ------------------------->>> THIS DOESN'T GIVE ME A > D> NEW LINE- WHY ????? > If you look at the source code of your page you'll see a new line > there. > If you want a new line in the browser output, you must place a <BR> at > that point, not a \n since it's HTML. > > Hope this helps. > Gianluca > > D> //CONNECT TO SERVER > D> include("connect.inc"); > > D> //CONNECT DATABASE > D> include("select_db.inc"); > > D> $query = "select * from main_table where item_type = '$type' and class = > D> '$class' "; > D> $result = mysql_query($query); > > D> $row = mysql_fetch_array($result); > > D> echo ("$row[item_id]\n"); ------------------------->>>> THIS DOESN'T > D> GIVE ME A NEW LINE EITHER, WHY ?????? > > D> while ($row = mysql_fetch_array($result)) > D> { > D> echo "$row[item_type]" , "$row[class]"; > D> } > > ?>> > > D> Any reply is greatly appriciated > > D> Regards, > D> Dani > > -- > ALBASOFTWARE > C/ Mallorca 186 - 3º 1ª > 08036 Barcelona (Spain) > Tel./Fax +34 934549324 > [EMAIL PROTECTED] > http://www.gianlucabaldo.com > http://www.phpauction.org -- 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]