unidox Posted May 26, 2008 Share Posted May 26, 2008 Is there a way I can insert a php url from a mysql database, into a javascript function within script tags? Quote Link to comment Share on other sites More sharing options...
BlueSkyIS Posted May 26, 2008 Share Posted May 26, 2008 yes. <?php $j_value = 'your_url_here'; ?> <script language='javascript'> alert("j_value is <?php echo $j_value; ?>"); </script> Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.