Results 1 to 5 of 5
Thread: JavaSvript & PHP
Threaded View
-
09-10-2006, 02:07 PM #1Junior Guru Wannabe
- Join Date
- Jun 2006
- Posts
- 76
JavaSvript & PHP
Hi
i write this function , its copy values from database to java array by using php , i got this way from my head , i want to know is there other effective way ?
what i did here is include java code in php script , can i include php in java code ?
i know javascript is client-side and php server-client but i wonder if there is someway to do this ...
<script type="text/JavaScript">
function selectmnue(myselect, myvalue) {
var jmake=new Array();
<?
$i=0;
do{
echo "
jmake[". $i ."] = \"". $row_java_array['MAKE'] ."\";
";
$i++;
}while($row_java_array = mysql_fetch_assoc($java_array));
mysql_free_result($java_array);
?>
//here i want to use these values
}
</script>