Jump to content

validation


m00nz00mer

Recommended Posts

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?

Link to comment
https://forums.phpfreaks.com/topic/97122-validation/
Share on other sites

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>

 

';

        }

 

Link to comment
https://forums.phpfreaks.com/topic/97122-validation/#findComment-496969
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.