WordPress – 'Select' not selecting the correct row php
Here is my code if (isset($_GET['ref'])) { $ref_id= intval($_GET['ref']); // Sanitize input // Query to get the project info $projects = $wpdb->get_results($wpdb->prepare("SELECT * FROM table WHERE project_ref = %d", $ref_id)); 'ref' is passed from previous page However, the results are…