0

I have this code.

$stmt = $conn->prepare("SELECT * FROM UserData WHERE username = ?");
$stmt->bind_param('s',$username);
//$username = $_POST["username"];
$username ="netsgets";
$stmt->execute();
$row = $stmt->fetch_assoc();
$stmt->store_result(); 
var_dump($stmt['likedFour']);
echo "hi";

This should check the value of likeFour in the row chosen and echo it in var_dump(). For some reason it is stopping at the $row part and doesn't echo "hi". Please help.

Qirel
  • 25,449
  • 7
  • 45
  • 62
Ron Arel
  • 19
  • 5

0 Answers0