Co można z tym zrobić żeby działało?
Kod
<?
$file = fopen("waluty.csv", "r") or exit("Nie mogę otworzyć pliku!");
while(!feof($file))
{
echo fgets($file). "<br>";
}
fclose($file);
function makePage($waluty)
{
htmlBegin();
tableHead();
$rozmTab = count("waluty.csv");
tableEnd();
htmlEnd();
}
function htmlBegin(){
echo "<html><head></head><body>";
}
functon htmlEnd(){ // to jest linia 22
echo "</body></html>";
}
functon tableHead(){
echo "<table cellspacing=\"1\" cellpadding=\"1" border =\"1\">";
}
function tableEnd ()
{
echo "</table>";
}
function rowTwoCol ($col1, $col2);
{
echo "<tr><td>".$col1. "</td><td>". $col2."</td></tr>";}
makePage($waluty);
?>
$file = fopen("waluty.csv", "r") or exit("Nie mogę otworzyć pliku!");
while(!feof($file))
{
echo fgets($file). "<br>";
}
fclose($file);
function makePage($waluty)
{
htmlBegin();
tableHead();
$rozmTab = count("waluty.csv");
tableEnd();
htmlEnd();
}
function htmlBegin(){
echo "<html><head></head><body>";
}
functon htmlEnd(){ // to jest linia 22
echo "</body></html>";
}
functon tableHead(){
echo "<table cellspacing=\"1\" cellpadding=\"1" border =\"1\">";
}
function tableEnd ()
{
echo "</table>";
}
function rowTwoCol ($col1, $col2);
{
echo "<tr><td>".$col1. "</td><td>". $col2."</td></tr>";}
makePage($waluty);
?>