What potential issue did the user encounter with the PHP script and how was it resolved?

The potential issue the user encountered with the PHP script was a syntax error due to missing semicolons at the end of each statement. This issue can be resolved by adding semicolons at the end of each line in the PHP script.

// Incorrect PHP script without semicolons
$name = "John"
$age = 25
echo "Name: " . $name
echo "Age: " . $age

// Corrected PHP script with semicolons
$name = "John";
$age = 25;
echo "Name: " . $name;
echo "Age: " . $age;