08-11-2016, 09:42 PM
I think the problem is in that statement->fetch line.
I think you want to do something like
$results = $stmt->results();
If you want to see what that's going to give you, you can do
dump($results);
From there, you can do a foreach loop to loop through your results. I've been traveling so I don't have great internet, but I can try to help from the road.
I think you want to do something like
$results = $stmt->results();
If you want to see what that's going to give you, you can do
dump($results);
From there, you can do a foreach loop to loop through your results. I've been traveling so I don't have great internet, but I can try to help from the road.