javascript - Interrogation on DB with PHP textarea -
hi guys want query on db (i use mysql) gived input textarea , want show resurts, tried :
<textarea id="area"rows="4" cols="50" name="query" form="form1"> </textarea> <input type="submit"onclick="take()"value="do">
this js function
function take() { var query = document.getelementbyid("area").value ;
then use php function show table result
function stamp($query){ $result = mysqli_query($globals['conn'], $query); // stamp $result ecc...}
can me fixate , have advice stamp function ? ty
Comments
Post a Comment