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'] ? Quote 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. Quote 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']).'\' />'; Quote Link to comment https://forums.phpfreaks.com/topic/64701-alt-tag-problem/#findComment-322623 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.