Jump to content

Recommended Posts

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.