drupalfun.com
Error setting up User Profile with Views
Submitted by safeday on Thu, 03/05/2009 - 22:43
Status:
Solved Question:
I get an error when using the code on page 36,
Parse error: syntax error, unexpected T_STRING in /home/twofouv8/public_html/ohbytheway/includes/common.inc(1645) : eval()'d code on line 1
I am using the code from the book, <?php echo’'; ?>
What am I doing wrong?


1. change the dashes
this is the code copied directly from the pdf
php echo ’ img src="’.base_path().’sites/default
/files/avatars/defaultavatar.jpg" ’;
change the dashes or apostraphies, dont know what they called.
php echo 'img src="'.base_path().'sites/default
/files/avatars/defaultavatar.jpg" ';
thats what caused the error, just like u i copied the code directly from the pdf. all u need to do is change the dashes.