Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6620589
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T21:07:16+00:00 2026-05-25T21:07:16+00:00

the javascript code in php is <script language=JavaScript type=text/javascript> xajax_getCountry(‘<?php echo $row[‘mradio_area’]?$row[‘mradio_area’]:0 ?>’, <?php

  • 0

the javascript code in php is

<script language="JavaScript" type="text/javascript">
xajax_getCountry('<?php echo $row['mradio_area']?$row['mradio_area']:0 ?>',
<?php echo $row['mradio_country']?$row['mradio_country']:0 ?>,
<?php echo ($row['mradio_rate']==1?1:0); ?>);
</script>

I want to put it into the .js file.

How do I change the <?php echo $row into js format?

Thanks a lot for any answer!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T21:07:17+00:00Added an answer on May 25, 2026 at 9:07 pm

    i just don’t know what you are doing because there is no javascript at all but if you want to make this as javascript .js file set the headers of this php file using this code

    header("Content-type: text/javascript");
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have example of code below. <script type=text/javascript src=assets/scripts/somescript.php>. </script> So, will my browser
This is the javascript code im using. <script language=javascript type=text/javascript> function cancelevent() { input_box=confirm(Are
I try to us wp_enqueue_script to load my javascript, here is my code: <?php
I have a php page and i have some javascript code to have a
Is it it possible to do this in php? Javascript code: var a =
i looking javascript editor for php code, include tab support and php code highlight
I want jQuery or PHP code tell the visitor if the Javascript is disabled.
I am trying to insert php variables into javascript. Here is the broken code:
In my code, I use JavaScript for UI and PHP for back end. I
I have the following code: http://www.nomorepasting.com/getpaste.php?pasteid=22615 Which is called by the javascript mentioned in

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.