php and javascript
Posted: Fri Jan 05, 2007 11:01 am
Hi there. I have a php script file which collects data from a database. As the data is collected i form a variable $display_block which contains HTML code.In the end of the php file i have an <html> tag to show the results.
If in that html code variable i include javascript calls will it work? where should i have the scripts? in the php file?
thanks
Code: Select all
<HTML>
<HEAD>
<TITLE> Search Results</TITLE>
</HEAD>
<BODY>
<?php echo $display_block; ?>
</BODY>
</HTML>thanks