php - insert string variable into echo -


this seems simple question, i've been searching through google , can't find solution.

function showjqueryalert() { echo '<link rel="stylesheet" href="http://code.jquery.com/ui/1.10.3/themes/smoothness/jquery-ui.css" />                 <script src="http://code.jquery.com/jquery-1.9.1.js"></script>                 <script src="http://code.jquery.com/ui/1.10.3/jquery-ui.js"></script>                   <script src="functions.js"></script>                 <script type="text/javascript"> $(document).ready(function() { jqueryalert("insert message here!", 120, false); }); </script>'; 

outputs popup message "insert message here!". but

function showjqueryalert($message) { echo '<link rel="stylesheet" href="http://code.jquery.com/ui/1.10.3/themes/smoothness/jquery-ui.css" />                 <script src="http://code.jquery.com/jquery-1.9.1.js"></script>                 <script src="http://code.jquery.com/ui/1.10.3/jquery-ui.js"></script>                   <script src="functions.js"></script>                 <script type="text/javascript"> $(document).ready(function() { jqueryalert('.$message.', 120, false); }); </script>'; 

where $message "insert message here!", fails output popup. i've tried sorts of combinations. missing?

looks forgot quotes:

jqueryalert("'.$message.'", 120, false); 

Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

CSS3 Transition to highlight new elements created in JQuery -