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';

hi all, its ok i solved it.

i blame microsoft 100%

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.