Hi guys i want to do some query on my DB (i use MySql) gived by an input TextArea and want to show the resurts, i tried like this :
<textarea id="area"rows="4" cols="50" name="query" form="form1">
</textarea>
<input type="submit"onclick="take()"value="do">
this is the js function
function take() {
var query = document.getElementById("area").value ;
then i use a php function to show the table result
function stamp($query){
$result = mysqli_query($GLOBALS['conn'], $query);
// stamp $result ecc...}
can somebody help me to fixate this and have some advice for the stamp function ? ty