/ Forside / Teknologi / Udvikling / PHP / Nyhedsindlæg
Login
Glemt dit kodeord?
Brugernavn

Kodeord


Reklame
Top 10 brugere
PHP
#NavnPoint
rfh 3959
natmaden 3372
poul_from 3310
funbreak 2700
stone47 2230
Jin2k 1960
Angband 1743
Bjerner 1249
refi 1185
10  Interkril.. 1146
include i echo.. hvordan ?
Fra : Martin


Dato : 31-03-01 13:58

Ja jeg vil inkludere en fil med echo
jeg har prøvet sådan her
echo "<?php include(\"sidstetips.php3\")\; ?>";

Men det virker ikke...
jeg får ingen fejl eller nogen som helst...
Der står bare ingen ting...!!

Her er hele min fil:

<?php include("tags.php3"); ?>
<?php include("menu.php3"); ?>
<h1>Sex tipsene</h1>
<?
$conn = mysql_connect("localhost","root");
mysql_select_db("stigna_db");
$query = mysql_query("SELECT * FROM sex ORDER BY tid");

echo "<HR SIZE=\"1\" NOSHADE color=\"#FFFFFF\"
width=\"75%\"></center>";
echo "<br><br>";


while($r = mysql_fetch_array($query)) {
$id = $r["id"];
$navn = $r["navn"];
$email = $r["email"];
$tips = $r["tips"];
$tid = $r["tid"];

echo "<center>$tips";
echo "<h5>Skrevet af:<br><a href=\"mailto:$email\" title=\"Email til
$navn\">$navn</a><br>Skrevet den $tid</h5>";
echo "<HR SIZE=\"1\" NOSHADE color=\"#FFFFFF\"
width=\"50%\"></center>";
}
echo "<?php include(\"sidstetips.php3\")\; ?>";
mysql_close($conn);
?>
<?php include("endtags.php3"); ?>
--

\ Bye for now Martin /
/\ http://www.geocities.com/lsvdk/ /\
>=)'> Email: martini@mailme.dk <'(=<
\/ ICQ: 58847459 \/
/ \

 
 
Jonas Delfs (31-03-2001)
Kommentar
Fra : Jonas Delfs


Dato : 31-03-01 16:59

"Martin" <martini@mailme.dk> skrev i en meddelelse
news:e3lbctcgkrul3ev93p93jaq20b7c1v1o07@4ax.com...
> Ja jeg vil inkludere en fil med echo
> jeg har prøvet sådan her
> echo "<?php include(\"sidstetips.php3\")\; ?>";

Hvad er det lige du vil med den echo ?
Du skal da bare: <?php include("sidstetips.php3"); ?>

> Men det virker ikke...
> jeg får ingen fejl eller nogen som helst...
> Der står bare ingen ting...!!
>
> Her er hele min fil:
>
> <?php include("tags.php3"); ?>
> <?php include("menu.php3"); ?>
> <h1>Sex tipsene</h1>
> <?
> $conn = mysql_connect("localhost","root");
> mysql_select_db("stigna_db");
> $query = mysql_query("SELECT * FROM sex ORDER BY tid");
>
> echo "<HR SIZE=\"1\" NOSHADE color=\"#FFFFFF\"
> width=\"75%\"></center>";
> echo "<br><br>";
>
>
> while($r = mysql_fetch_array($query)) {
> $id = $r["id"];
> $navn = $r["navn"];
> $email = $r["email"];
> $tips = $r["tips"];
> $tid = $r["tid"];
>
> echo "<center>$tips";
> echo "<h5>Skrevet af:<br><a href=\"mailto:$email\" title=\"Email til
> $navn\">$navn</a><br>Skrevet den $tid</h5>";
> echo "<HR SIZE=\"1\" NOSHADE color=\"#FFFFFF\"
> width=\"50%\"></center>";
> }
> echo "<?php include(\"sidstetips.php3\")\; ?>";
> mysql_close($conn);
> ?>
> <?php include("endtags.php3"); ?>
> --
>
> \ Bye for now Martin /
> /\ http://www.geocities.com/lsvdk/ /\
> >=)'> Email: martini@mailme.dk <'(=<
> \/ ICQ: 58847459 \/
> / \



Søg
Reklame
Statistik
Spørgsmål : 177508
Tips : 31968
Nyheder : 719565
Indlæg : 6408571
Brugere : 218887

Månedens bedste
Årets bedste
Sidste års bedste