Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> HELP
gem_ini_1325
post 27.06.2002, 13:12:09
Post #1





Grupa: Zarejestrowani
Postów: 2
Pomógł: 0
Dołączył: 27.06.2002

Ostrzeżenie: (0%)
-----


mam drobny problem. chciałbym, żeby ta linia
<b><font face="Verdana, Arial, Helvetica, sans-serif" size="1" color="#FFFFFF">• <a href=001
>002</a></font></b><br>

układała mi się w jedną a nie w dwie linie jak jest teraz. źródła umieściłem na http://gemini_1325.w.interia.pl/111.rar

proszę o pomoc
Go to the top of the page
+Quote Post
castor
post 28.06.2002, 00:29:25
Post #2





Grupa: Zarejestrowani
Postów: 456
Pomógł: 0
Dołączył: --

Ostrzeżenie: (0%)
-----


mozna troszke jasniej?


--------------------
pozdrawiam
CASTOR
Go to the top of the page
+Quote Post
gem_ini_1325
post 28.06.2002, 06:38:38
Post #3





Grupa: Zarejestrowani
Postów: 2
Pomógł: 0
Dołączył: 27.06.2002

Ostrzeżenie: (0%)
-----


--index.php-- (fragment)
Kod
<html>

<head>











<style>

A {COLOR: #FFFFFF; text-decoration: none;}

A:VISITED {COLOR: #FFFFFF; text-decoration: none;}

A:ACTIVE {COLOR: #FFFFFF; text-decoration: none;}

A:HOVER {COLOR: #FFFFFF; text-decoration: underline;}

</style>













</head>



<body background="gfx/background.jpg">



<div align="center"><img src="gfx/logo.jpg">

<br>

<br>

<table border=0 cellspacing=0 cellpading=0>



<tr>



<td width=115 valign=top>

<img src="gfx/vang_menu.jpg">

<br>



<?php

$plik = fopen("kjh.txt","r");

$liczbalinkow = fgets($plik);

?>



<?php



$linia = fgets($plik);

$linia2 = fgets($plik);

$liczbaprzetw = 0;

$liczbaprzetw = $vehel + 1;

?>



<?php

while ($liczbaprzetw<$liczbalinkow) {



}

?>



<?php



$vehel = '<b><font face="Verdana, Arial, Helvetica, sans-serif" size="1" color="#FFFFFF">• <a href=';

$vehea = '>';

$veheb = '</a></font></b><br>';

echo "$vehel$linia$vehea$linia2$veheb";

?>




--plik wynikowy--
Kod
<html>

<head>



<style>

A {COLOR: #FFFFFF; text-decoration: none;}

A:VISITED {COLOR: #FFFFFF; text-decoration: none;}

A:ACTIVE {COLOR: #FFFFFF; text-decoration: none;}

A:HOVER {COLOR: #FFFFFF; text-decoration: underline;}

</style>



</head>



<body background="gfx/background.jpg">



<div align="center"><img src="gfx/logo.jpg">

<br>

<br>

<table border=0 cellspacing=0 cellpading=0>



<tr>



<td width=115 valign=top>

<img src="gfx/vang_menu.jpg">

<br>

[u][i][b]<b><font face="Verdana, Arial, Helvetica, sans-serif" size="1" color="#FFFFFF">• <a href=001

>002</a></font></b><br>[/b][/i][/u]
Chcę, żeby te dwie linie złączyły się w jedną, jak to zrobić. Nie będę miał dostępu do bazy SQL, więc strona musi się opierać na plikach tekstowych.

JESTEM NA GG 1246160
Go to the top of the page
+Quote Post
steru
post 28.06.2002, 09:29:28
Post #4





Grupa: Zarejestrowani
Postów: 107
Pomógł: 0
Dołączył: --
Skąd: Krakow

Ostrzeżenie: (0%)
-----


$tekst=str_replace("r","",$tekst);
$tekst=str_replace("n","",$tekst);
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Wersja Lo-Fi Aktualny czas: 4.05.2024 - 22:55