Answer the question
In order to leave comments, you need to log in
Search by beginning of word sql and php?
I want to get the value at the beginning of the entered string... I wrote the following pseudo-query:
$second_name = $db_site->query("SELECT * FROM wp_users WHERE second_name = LIKE ('".$string."%') ")->fetch_assoc()['second_name'];
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question