How do I recover a database row using a GET variable send from the previous page?
I have tried this:
$username = $_GET["username"];
$result = mysqli_query($con,"SELECT * FROM users
WHERE username=$username");
but it gives me the error
Warning: mysqli_fetch_array() expects parameter 1 to be mysqli_result, boolean given in /homepages/12/d441172468/htdocs/cmd/play/index.php on line 33
Please help! Thanks!