Jump to content

Updating javascript from database


Recommended Posts

Hello.

 

I have the following code for an ajax fuction:

	var a1 = document.getElementById('1').value;
var b2 = document.getElementById('2').value;
var queryString = "?a1=" + a1 + "&b2=" + b2;
ajaxRequest.open("GET", "updatedetails.php" + queryString, true);
ajaxRequest.send(null); 
}

//-->
</script>

 

Although the problem is that i need to be able to change the variables. So for example, i could need a1-j10 or something like that, but this is got from the database, my question is how could i update it from my mysql database?

 

Thanks.

Link to comment
https://forums.phpfreaks.com/topic/109156-updating-javascript-from-database/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.