79179303

Date: 2024-11-11 22:23:30
Score: 1
Natty:
Report link

Thanks everyone for their assistance. I changed the WHERE query to project id and all is good now.

if (isset($_GET['project_id'])) {
$id= intval($_GET['project_id']); // Sanitize input

// Query to get the projects info

$projects = $wpdb->get_results($wpdb->prepare("SELECT * FROM 'table WHERE project_ind  = %d", $id));
Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Ian Young