Error: Expected ;
Posted: Fri Jul 23, 2004 2:59 pm
I tried many things but I cant get rid of this error in IE
Runtime Error: Expected ;
It happens when a string (for name or location) contains an open single quote '
here is the bit of code
and a link where you will see the error
http://www.theperfectpage.org/bb/index. ... =membermap
It only happens in IE but is fine in Opera
Any help will be much appreciated
Runtime Error: Expected ;
It happens when a string (for name or location) contains an open single quote '
here is the bit of code
Code: Select all
$DB->query("SELECT `name`,`id`,`map_location`,`location` FROM $mem_db where `map_location` != '' order by `name`") or print mysql_error();
}
##start of the map coordinates
$htmlmap .= "<map NAME='pin_areas'>";
while( $row = $DB->fetch_row() ){
$member2=$rowї'name'];
if ($rowї'location']){$member2=$member2.' - '.$rowї'location'];}
$mid=$rowї'id'];
$cxcy=$rowї'map_location'];
$mxmy=explode(',',$cxcy);
$locx=$mxmyї0];
$locy=$mxmyї1];
$locx2=$locx+6;
$locy2=$locy+8;
##continue the map coordinates
$htmlmap .= "<area SHAPE=RECT COORDS='$locx,$locy,$locx2,$locy2'; href='index.php?showuser=$mid'; Title='$member2'; OnMouseOut="window.status=''; return true;" OnMouseOver="window.status='$member2'; return true;" >\n";http://www.theperfectpage.org/bb/index. ... =membermap
It only happens in IE but is fine in Opera
Any help will be much appreciated