> > How can I include another php file into a php file. In HTML you use
<?php
include test.php?>. But I want to include test.php somewhere in my php
script. How can I make that work ??
Just put
include('test.php');
at the point in your php file where you need to include test.php.
JP
Thanks but this doesn't work. Below you see the script i want it in:
<?php
require "ind.inc.php";
$ezine_db = ezine_connecte_db();
$datum = strftime("%d %m %Y", $datum);
$str_requete = "SELECT fid,link FROM fotos ORDER BY fid ASC";
$result_articles = mysql_query ($str_requete,$ezine_db) or
ezine_mysql_die();
print ('<table width=75%><font face=arial size=2>');
while ($articleDb =mysql_fetch_object($result_articles))
{
print("
<tr><font face='arial' size='3'><td><img
src='pics/$articleDb->link.jpg' width=400 heihgt=300
alt=$articleDb->link.jpg></td></tr>
<tr><td>include('test.php');</td></tr>
");
}
print ('</font>');
?>
--
RotterdamStudents
-------------------------------
Dulce est despirere loco
(Horatius, "Oden" 4,12,28)