web_master Posted May 31, 2007 Share Posted May 31, 2007 Hi, Ive got a problem again - how can I mix PHP and Java? THIS IS THE PHP QUERY BELOW: $query_return = mysql_query("SELECT * FROM tt_product_group ORDER BY tt_product_group_id DESC"); if(!$query_return) { echo mysql_error(); exit; } $i++; $i = -1; while ($request = mysql_fetch_array($query_return)) { $i = $i + 1; $group_menu = "stm_aix(\"p1i".$i."\",\"p0i0\",[1,\"<p class=\\\"LINK_UPOZNAJTE_SUBMENU_TXT\\\"><a href=\\\"contact_frame.php\\\" target=\\\"main\\\" class=\\\"LINK_UPOZNAJTE_HREF\\\">".$request['tt_product_group_sr']."</a></p>\",\"\",\"\",-1,-1,0,\"\",\"_self\",\"\",\"\",\"\",\"\",0,0,0,\"\",\"\",0,0,0,2,1,\"#005082\",0,\"#005082\",0,\"\",\"\",3,3,1,1,\"#CCCCCC\",\"#CCCCCC\"],65,20)"; } THIS IS THE JAVA SCRIPT BELOW (where is the inserted PHP - with start will need to work like a query in PHP) <script type="text/javascript" language="JavaScript1.2"> <!-- stm_bm(["menu3d53",600,"js_menu_contents/","blank.gif",0,"","",2,0,250,0,1000,1,0,0,"","",0,0,1,2,"default","hand","js_menu_contents/"],this); stm_bp("p0",[1,4,0,0,0,0,0,0,100,"",-2,"",-2,50,0,0,"#999999","transparent","",0,0,0,"#000000"]); stm_ai("p0i0",[1,"<p class=\"LINK_UPOZNAJTE_TXT\"><a href=\"#\" class=\"LINK_UPOZNAJTE_HREF\"><?php print $ponuda_lang;?></a></p>","","",-1,-1,0,"","main","","","","",0,0,0,"","",0,0,0,0,1,"",1,"",1,"","manu_back_yellow.png",3,3,0,0,"#FFFFF7","#000000","",""," "," ",0,0],155,20); stm_bpx("p1","p0",[1,2,0,0,0]); *************************** <?php print $group_menu; ?> ************************** stm_ep(); stm_ep(); stm_em(); //--> </script> Link to comment https://forums.phpfreaks.com/topic/53702-php-and-javascript12/ Share on other sites More sharing options...
Daniel0 Posted May 31, 2007 Share Posted May 31, 2007 Echoing the $group_name variable would do just fine. Note: Java != Javascript - it is two entirely different things. Link to comment https://forums.phpfreaks.com/topic/53702-php-and-javascript12/#findComment-265419 Share on other sites More sharing options...
web_master Posted May 31, 2007 Author Share Posted May 31, 2007 Echoing the $group_name variable would do just fine. Note: Java != Javascript - it is two entirely different things. hehe, thannx, its so simlpe Link to comment https://forums.phpfreaks.com/topic/53702-php-and-javascript12/#findComment-265430 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.