I am currently developing a small website as part of a final project review and I must absolutely use tomcat5.5. So I used the web application PHP/Java bridge template. So my problem is that not only the PHP code does not run, but also the HTML that is after the HTML code and also ignored.
Here is the code I typed:
PHP Code:
....
<div class="text">
<?php
mysql_connect ( 'localhost', 'root', 'admin') or die ( 'Error connecting to MySQL');
mysql_select_db ( 'Oreka') or die ( 'Error Oreka selection');
$ response = mysql_query ( 'SELECT * FROM rectape') or die ( 'Error query');
while ($ data = mysql_fetch_array ($ answer))
{echo $ data [ 'id'].'< br/>';
}
mysql_close ();
?>
<p> resumption of HTML </p>
</div>
....
All that is before this part of code works perfectly. But from what I have written here, nothing appears, neither the query results or error messages. When I display the source code of that page, "<p> resumption of HTML </p> </div>" and everything after that there does not appear. I do not know if I made a syntax error or if there is another problem.
Bookmarks