im attempting to generate a value for user status from th above if command in js then send this string into my db using ajax which is pointing to my php page
<?php// Fetching Values From URL$connection = mysql_connect("localhost", "CJroot", ""); $db = mysql_select_db("mysql_practice", $connection); if (isset($_POST['typeahead'])) {$query = mysql_query("UPDATE user_signin SET status='$status' WHERE user_name = '$typeahead')"); //Insert Queryecho "Form Submitted succesfully";}mysql_close($connection); ?>
updating mysql table data with php, javascript and ajax
in JavaScript
Posted
I have already created mysql table with data, this is my javascript code
im attempting to generate a value for user status from th above if command in js then send this string into my db using ajax which is pointing to my php page
im not getting it right please any suggestions?