PHP PDO Obtain information from MySQL table based on search results

I’ll just add the address into the search results. It’ll be much easier to add and I think better when confirming the correct person rather than taking a second guess and have to select another person again.

My code editor is showing me that the $row['residential_address'] part is inside a string, but the code is working. Is there a syntax error somewhere in this line, or this just how the code is formatted in the editor:

echo "<p>" . $row['id'] . " - " . $row['last_name'] . ", " . $row['first_name'] . " " . $row['middle_name'] . " " . $row['suffix'] . " (" . $row['precinct'] . ") | " . $row['residential_address'] . "</p>";

Here is a picture of the code line in my code editor. Sorry that it is so small; it is a long line of code.

1 Like