I use mysite.com/myfile.php?user="userstoredinConstruct"&
in the myfile..
the sql code write to me the score of the user..
sql_" select score from mytable where user='$user' etc..";
$result = $conn->query($sql);
if ($result->num_rows > 0) {
while($row = $result->fetch_assoc()) {
echo "".$row["score"]." ".$row["user"]."";
}
} else {
echo "0 results";
}
$conn->close();
All this ok...
"but not in construct using Ajax"
get the result? how to do?= with lost data? only?
Thank you..