using prepare
-
For security, I am trying to convert queries to $wpdb statements. I don’t know what to put in Array_A.
$query = mysqli_query($link,"SELECT MemberID, FirstName, LastName FROM AAUW_New_Members WHERE FirstName LIKE '%$searchf%' AND Lastname LIKE '%$searchq%'") OR die("Could not search!"); $sql = $wpdb->prepare("SELECT MemberID, FirstName, LastName FROM AAUW_New_Members WHERE FirstName LIKE '%$searchf%' AND Lastname LIKE '%$searchq%'"); $result = $wpdb->get_results($sql,ARRAY_A);
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘using prepare’ is closed to new replies.