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
[Solved] Content shown below footer.
[Solved] Content shown below footer.
Last edited by soren on Fri Jul 25, 2008 6:59 am, edited 1 time in total.
Re: Content shown below footer.
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
Ronny
Re: Content shown below footer.
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
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.
I notice that your isn't closed - . Is that missing from your UDT?
Nullig
Nullig
Re: Content shown below footer.
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
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
-
christiaans
- Power Poster

- Posts: 300
- Joined: Tue Mar 04, 2008 10:37 am
Re: Content shown below footer.
Have you tried display with an php echo?If I insert below } I get the message that it is wrong code.
Code: Select all
echo "</table>"I also noticed an error here:
That should be:echo "</tr\n";
Code: Select all
echo "</tr>\n";Re: Content shown below footer.
Nullig and chris-s
After closing the table it works as expected.
Thank you.
Soren
After closing the table it works as expected.
Thank you.
Soren
Re: Content shown below footer.
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 "".
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 "".
eternity (n); 1. infinite time, 2. a seemingly long or endless time, 3. the length of time it takes a frozen pizza to cook when you're starving.
4,930,000,000 (n); 1. a very large number, 2. the approximate world population in 1986 when Microsoft Corp issued its IPO. 3. Microsoft's net profit (USD) for the quarter (3 months) ending 31 March 2007.
CMSMS migration and setup services | Hosting with CMSMS installed and ready to go | PM me for Info
4,930,000,000 (n); 1. a very large number, 2. the approximate world population in 1986 when Microsoft Corp issued its IPO. 3. Microsoft's net profit (USD) for the quarter (3 months) ending 31 March 2007.
CMSMS migration and setup services | Hosting with CMSMS installed and ready to go | PM me for Info

