Page 1 of 1

[Solved] Content shown below footer.

Posted: Thu Jul 24, 2008 12:04 pm
by soren
On this page http://www.data-soren.dk/cms1-4/index.php?page=fangster

the content of my database is shown below the footer.

How do I insert the tag so that the content of the database is above the footer?

The site is in Danish, hopefully you will se what I mean.

Soren

Re: Content shown below footer.

Posted: Thu Jul 24, 2008 7:52 pm
by RonnyK
Could you paste your template, to see what you are calling, AFAIS  is the {content} placed on the correct place, did you insert another UDT in de footer or so....

Ronny

Re: Content shown below footer.

Posted: Fri Jul 25, 2008 4:34 am
by soren
Ronny

I am using standard template CSSMenu left + 1 column.

I made a tag called {fangster_2008} and inserted this tag as content on a new page.

Soren

Re: Content shown below footer.

Posted: Fri Jul 25, 2008 4:41 am
by Nullig
I notice that your isn't closed - . Is that missing from your UDT?

Nullig

Re: Content shown below footer.

Posted: Fri Jul 25, 2008 5:21 am
by soren
Nullig

This is my code for the userdefined tag:

$dato = date("j/n - Y");//Læs readme filen før du ændre noget hved denne lnie.
echo "Der er indrapporteret";//Vil vise dig dags dato.
mysql_connect('mysql2.wannafind.dk', 'b_l_f', 's0711e1903');
mysql_select_db('b_l_f_dk_db');
$result = mysql_query("SELECT * FROM cup2008");
$num_rows = mysql_num_rows($result);

echo "  $num_rows fisk\n\n";

$resultat = mysql_query("SELECT * From cup2008 ORDER BY vaegt DESC, laengde ASC");
print "";
echo "DatoMånedStedArtKønVægt i gramLængde i cmNavnAgnGenudsat";
while($post = mysql_fetch_array($resultat)){
echo "\n ";
echo "$post[dato]";
echo "$post[maaned]";
echo "$post[sted]";
echo "$post[art]";
echo "$post[koen]";
echo "$post[vaegt]";
echo "$post[laengde]";
echo "$post[navn]\n";
echo "$post[cup]\n";
echo "$post[genudsat]\n";

echo " below } I get the message that it is wrong code.

Soren

Re: Content shown below footer.

Posted: Fri Jul 25, 2008 6:22 am
by christiaans
If I insert below } I get the message that it is wrong code.
Have you tried display with an php echo?

Code: Select all

echo "</table>"
Maybe that'll work?

I also noticed an error here:
echo "</tr\n";
That should be:

Code: Select all

echo "</tr>\n";

Re: Content shown below footer.

Posted: Fri Jul 25, 2008 6:59 am
by soren
Nullig and chris-s

After closing the table it works as expected.

Thank you.

Soren

Re: Content shown below footer.

Posted: Fri Jul 25, 2008 7:01 am
by kermit
closing the table isn't the only error... here's what i did with html output to correct syntax and validate the code:

replaced all "" via search-and-replace.

first row of table missing closing tag (even an incorrect one like above), so added "" before second row's opening "".

closed table adding "" after last "".