I am using a name from a MySQL database as a variable. The name is formated as "Lastname, Firstname".
The php code I'm using is
Code: Select all
echo "<a href=SearchDetail.php?ID=" . $row[$i] . "&Name=" . $row[$i+1] . ">" . $row[$i] . "</a>";...where $row[$i] is referencing the name.
If the name in the database is "Smith, John" and that variable is passed, the result I get for the Name is
Code: Select all
Smith,Thank for your patience as I am new to PHP & MySQL.