m00nz00mer Posted March 20, 2008 Share Posted March 20, 2008 hey i know this isnt necesseraly php but im tying to validate my code and ive got one error which is... "Line 71, Column 1482: character "&" is the first character of a delimiter but occurred as data. …bookinfo.php?bookID=059600382X">HTML & XHTML: the Definitive Guide</a><br /><" When i remove this code it works: echo '<div class="categoryLinks"><div class="detailTextGrey">Book Title: </div><a href="bookinfo.php?bookID='.$row['bookISBN'].'">'.$row['bookTitle'].'</a><br /><div class="detailTextGrey">Author(s): </div><div class="detailText">'.$authArray['authorName'].' ('.$row['bookYear'].') </div></div><br/><br/>'; } Can anyone spot the error? Quote Link to comment https://forums.phpfreaks.com/topic/97122-validation/ Share on other sites More sharing options...
BlueSkyIS Posted March 20, 2008 Share Posted March 20, 2008 character "&" is the first character of a delimiter but occurred as data. you probably need to url_encode() or substitute with & Quote Link to comment https://forums.phpfreaks.com/topic/97122-validation/#findComment-496961 Share on other sites More sharing options...
m00nz00mer Posted March 20, 2008 Author Share Posted March 20, 2008 but there is no '&' in here... echo '<div class="categoryLinks"><div class="detailTextGrey">Book Title: </div><a href="bookinfo.php?bookID='.$row['bookISBN'].'">'.$row['bookTitle'].'[/url] <div class="detailTextGrey">Author(s): </div><div class="detailText">'.$authArray['authorName'].' ('.$row['bookYear'].') </div></div> '; } Quote Link to comment https://forums.phpfreaks.com/topic/97122-validation/#findComment-496969 Share on other sites More sharing options...
m00nz00mer Posted March 20, 2008 Author Share Posted March 20, 2008 ? anyone? Quote Link to comment https://forums.phpfreaks.com/topic/97122-validation/#findComment-497053 Share on other sites More sharing options...
laffin Posted March 20, 2008 Share Posted March 20, 2008 it's prolly in yer mysql use urlencode on the href link and htmlentities on the text portion of the link Quote Link to comment https://forums.phpfreaks.com/topic/97122-validation/#findComment-497124 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.