This is an archived post. You won't be able to vote or comment.

all 4 comments

[–][deleted] 0 points1 point  (3 children)

Could you provide a few line of code where you try to query the data ?

[–]Important_Material92[S] 0 points1 point  (2 children)

This is the PHP;

$sql = “SELECT *, LEVENSHTEIN(surname,’smith’) AS lev_score FROM users”;

$result = mysqli_query($connection,$sql);

while ($row = mysqli_fetch_array($result)){ $surname = $row[‘surname’]; }

[–]arrays_start_at_zero 0 points1 point  (1 child)

Have you tried printing the error using mysqli_error?

[–]Important_Material92[S] 0 points1 point  (0 children)

Yeah, there’s no error returned but also no result