can i use php code in javascript tag
like
<script>
<?php
?>
</script>
wat cud be the best way to do tat as i want display data fetched from database by php n displayed by javascript code..javascript code is too much so that i cant write the whole code in echo.
how to use php code in javascript tag
Moderator: General Moderators
-
bugthefixer
- Forum Contributor
- Posts: 118
- Joined: Mon Mar 22, 2004 2:35 am
-
kettle_drum
- DevNet Resident
- Posts: 1150
- Joined: Sun Jul 20, 2003 9:25 pm
- Location: West Yorkshire, England