Page 1 of 1

?> closing tag showing up in HTML

Posted: Thu Oct 23, 2003 11:50 pm
by Mayor McCheese
WTF... I have a php closing tag ?> that keeps appearing in the HTML source. I can't figure out what's going on. Here's the code:

<?php

//include form class
include('includes/dbconn.php');

$allUsersResult = $db->query(' SELECT pkId, lname, fname FROM xxx_users' );

include ('includes/classes/Form.class.php');




?>

Thanks in advance...

check

Posted: Fri Oct 24, 2003 12:27 am
by itsmani1
try this one instead of ur own. i am not 100%sure for this but i think it will work.,.......

Code: Select all

<?php
//include form class 
include('includes/dbconn.php'); 

$allUsersResult = $db->query("SELECT 'pkId', 'lname', 'fname' FROM xxx_users" ); 

include ('includes/classes/Form.class.php'); 


?>

Regards......

Posted: Fri Oct 24, 2003 3:43 am
by twigletmac
Do a search in the page generating the HTML for any extra ?> because these things can creap in and insist on making your life difficult.

Mac

Posted: Fri Oct 24, 2003 7:11 am
by d3ad1ysp0rk
It's most likely in one of your includes, since the code you gave us looks good to me..

There we go...

Posted: Fri Oct 24, 2003 10:11 am
by Mayor McCheese
Hey all,

Thanks for the suggestions; a search of the main file did not turn up an extraneous end tags; but a search of one of the includes did. Thanks for saving me time + frustration.

Cheers!