0

Hi All,

the following code is giving me the following error and i would appreciate any help in identifying where the error lies

Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ',' or ';' in /Applications/MAMP/htdocs/CG0119/index.php on line 6

the code is here, and line 6 is the echo statement

$db = getConnectionMySql();
   $stmt = $db->query("SELECT email, name, lastlogin FROM subscriber");
   while ( $obj = $stmt->fetchObject()){
	   echo $obj->email . ':''\n';
1
Contributor
1
Reply
2
Views
7 Years
Discussion Span
Last Post by whiteyoh
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.