wwfc_barmy_army Posted June 7, 2008 Share Posted June 7, 2008 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 More sharing options...
hansford Posted June 10, 2008 Share Posted June 10, 2008 just have php echo out all of the javascript. Link to comment https://forums.phpfreaks.com/topic/109156-updating-javascript-from-database/#findComment-562345 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.