jakebur01 Posted August 13, 2007 Share Posted August 13, 2007 i am getting this error: PHP Parse error: syntax error, unexpected T_STRING $title = '<img src=\'images/'.($row['isbn']).'.jpg\' border=0 alt=$book['title'] />'; How should I have the alt=$book['title'] ? Link to comment https://forums.phpfreaks.com/topic/64701-alt-tag-problem/ Share on other sites More sharing options...
Orio Posted August 13, 2007 Share Posted August 13, 2007 Can you show the line that is above the line that php says the error is in? Orio. Link to comment https://forums.phpfreaks.com/topic/64701-alt-tag-problem/#findComment-322619 Share on other sites More sharing options...
lemmin Posted August 13, 2007 Share Posted August 13, 2007 Why don't you do it the same way yo udid the $row one? $title = '<img src=\'images/'.($row['isbn']).'.jpg\' border=0 alt=\''.($book['title']).'\' />'; Link to comment https://forums.phpfreaks.com/topic/64701-alt-tag-problem/#findComment-322623 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.