Here is my Code I want to move my Variable
of "Hellow"
from JavaScript
to PHP Query at:
document.write("<?php $result = mysql_query("SELECT Urdu FROM translate where English= 'Variable'"); ?>");
.
Kindly any help?
<script type='text/javascript'>
var Variable = "Hellow";
document.write("<?php
$db = mysql_connect("localhost","root","");
mysql_select_db("Dictionary",$db);
?>");
document.write("<?php $result = mysql_query("SELECT Urdu FROM translate where English= 'Variable'"); ?>");
document.write("<?php
while($row = mysql_fetch_array($result))
{
echo $row['Urdu'] ;
}
mysql_close($db);
?>");
</script>