Форум: Форум PHPФорум ApacheФорум Регулярные ВыраженияФорум MySQLHTML+CSS+JavaScriptФорум FlashРазное
Новые темы: 0000000
MySQL на примерах. Авторы: Кузнецов М.В., Симдянов И.В. Социальная инженерия и социальные хакеры. Авторы: Кузнецов М.В., Симдянов И.В. PHP 5/6. В подлиннике. Авторы: Кузнецов М.В., Симдянов И.В. Самоучитель PHP 5 / 6 (3 издание). Авторы: Кузнецов М.В., Симдянов И.В. PHP 5. На примерах. Авторы: Кузнецов М.В., Симдянов И.В., Голышев С.В.
ВСЕ НАШИ КНИГИ
Консультационный центр SoftTime

Форум MySQL

Выбрать другой форум

 

Здравствуйте, Посетитель!

вид форума:
Линейный форум Структурный форум

тема: Ошибка экранирования в поле содержащий html код
 
 автор: pautina   (27.02.2012 в 20:05)   письмо автору
819.1 Кб
 
 

Здравствуйте
У меня есть запрос который создаёт таблицу.
Файл запроса я прикрепил код его можно просмотреть.
У этого запроса есть ошибка, в каком учаске кода эта ошибка я знаю, вот только какие символы создают ошибку непонятно.
Ошибка в этом участке

<DIV style=\"TEXT-ALIGN: center\"><IMG height=48 alt=\"\" src=\"orphus/Oleg_Fadjarov_btn4.gif\" width=257></DIV><BR>
<DIV class=Created id=favorite><IMG src=\"images/ajax-loader.gif\"><SPAN>Добавить в закладки (личный кабинет)</SPAN> </DIV>
<DIV class=Created id=sharedButtons style=\"PADDING-RIGHT: 0px; PADDING-LEFT: 0px; BACKGROUND: none transparent scroll repeat 0% 0%; PADDING-BOTTOM: 5px; PADDING-TOP: 5px\">
<SCRIPT src=\"//yandex.st/share/share.js\" type=text/javascript charset=utf-8></SCRIPT>

<DIV class=yashare-auto-init data-yashareType=\"button\" data-yashareQuickServices=\"vkontakte,moimir,odnoklassniki,facebook,yaru,twitter,friendfeed,lj\"></DIV>
<DIV id=googlePlus><?XML:NAMESPACE PREFIX /><G:PLUSONE></G:PLUSONE></DIV>
<
DIV class=clear></DIV></DIV>
<
DIV class=Created>Урок создан29.11.2010&nbsp;&nbsp;|&nbsp;&nbsp;Просмотров173024&nbsp;&nbsp;|&nbsp;&nbsp;Источник: <A href=\"http://www.psdmag.org\" target=_blank>www.psdmag.org</A>&nbsp;&nbsp;|&nbsp;&nbsp;<A href=\"reprint.php\" target=_blank>Правила перепечатки</A></DIV><BR><BR>
<P class=pmess><STRONG><A href=\"register.php\">Зарегистрируйтесь</A></STRONG>, чтобы иметь возможность добавлять комментарии и сообщения в гостевой, общаться на форумах, участвовать в голосованиях по конкурсам, проводимым на <STRONG>photoshop-master.ru</STRONG></P><BR><BR><!-- Pages -->
<DIV class=Pages>
<P>Комментарии</P></DIV><!-- / Pages --><BR>
<DIV class=numpage style=\"TEXT-ALIGN: left\"><B class=current_page>1</B><A href=\"/lessons.php?rub=1&amp;id=1340&amp;page=2\">2</A><A href=\"/lessons.php?rub=1&amp;id=1340&amp;page=3\">3</A><A href=\"/lessons.php?rub=1&amp;id=1340&amp;page=4\">4</A><A href=\"/lessons.php?rub=1&amp;id=1340&amp;page=5\">5</A><A href=\"/lessons.php?rub=1&amp;id=1340&amp;page=6\">6</A><A href=\"/lessons.php?rub=1&amp;id=1340&amp;page=7\">7</A><A href=\"/lessons.php?rub=1&amp;id=1340&amp;page=8\">8</A><A href=\"/lessons.php?rub=1&amp;id=1340&amp;page=9\">9</A><A href=\"/lessons.php?rub=1&amp;id=1340&amp;page=16\">Последняя<FONT color=#cccccc>(16)</FONT></A></DIV><BR>
<DIV id=comtab></DIV><!-- Comment -->
<DIV class=Comment>
<DIV class=CommentSmoothTopLine>
<DIV class=CommentSmoothTopLeft>
<DIV class=CommentSmoothTopRight>&nbsp;</DIV></DIV></DIV>
<DIV class=CommentContent>
<DIV class=CommentContentLeft>
<DIV class=CommentContentRight><IMG class=top_user alt=\"Рейтинг 132\" src=\"images/best_user/132.png\"> 
<DIV class=avatar><IMG class=avatar alt=аватар src=\"http://www.photoshop-master.ru/forum/public/style_avatars/Mix8/Untitled-6.jpg\"> </DIV>
<DIV class=comment_content_text>
<P><STRONG><A href=\"http://www.photoshop-master.ru/users.php?id=39499\">Дмитрий</A></STRONG></P>
<P class=Date>Добавлено: 25.12.2011 1:51:18</P>
<P>Отличный эффект!!! Спасибо автору и переводчику!</P><A class=view_user_job href=\"ajax_block/view_job.php?id=393163\" rel=comment><IMG class=imgcom title=\"Увеличить изображение\" alt=\"Картинка комментатора\" hspace=7 src=\"comimg_mini/comimg393163us39499.jpg\" vspace=5></A> 
<DIV class=total_ball id=total_ball_for393163>
<H5>4,9<SMALL>всего оценок: 20</SMALL></H5></DIV></DIV></DIV></DIV></DIV>
<DIV class=CommentSmoothBottomLine>
<DIV class=CommentSmoothBottomLeft>
<DIV class=CommentSmoothBottomRight>&nbsp;</DIV></DIV></DIV></DIV><!-- / Comment --><!-- Comment -->
<DIV class=Comment2>
<DIV class=Comment2SmoothTopLine>
<DIV class=Comment2SmoothTopLeft>
<DIV class=Comment2SmoothTopRight>&nbsp;</DIV></DIV></DIV>
<DIV class=Comment2Content>
<DIV class=Comment2ContentLeft>
<DIV class=Comment2ContentRight><IMG class=top_user alt=\"Рейтинг 9\" src=\"images/best_user/9.png\"> 
<DIV class=avatar><IMG class=avatar alt=аватар src=\"http://www.photoshop-master.ru/forum/uploads/av-178911.jpg\"> </DIV>
<DIV class=comment_content_text>
<P><STRONG><A href=\"http://www.photoshop-master.ru/users.php?id=178911\">Галина</A></STRONG></P>
<P class=Date>Добавлено: 17.12.2011 12:19:28</P>
<P>Большое спасибо за урок)</P><A class=view_user_job href=\"ajax_block/view_job.php?id=391321\" rel=comment><IMG class=imgcom title=\"Увеличить изображение\" alt=\"Картинка комментатора\" hspace=7 src=\"comimg_mini/comimg391321us178911.jpg\" vspace=5></A> 
<DIV class=total_ball id=total_ball_for391321>
<H5>4,93<SMALL>всего оценок: 30</SMALL></H5></DIV></DIV></DIV></DIV></DIV>
<DIV class=Comment2SmoothBottomLine>
<DIV class=Comment2SmoothBottomLeft>
<DIV class=Comment2SmoothBottomRight>&nbsp;</DIV></DIV></DIV></DIV><!-- / Comment --><!-- Comment -->
<DIV class=Comment>
<DIV class=CommentSmoothTopLine>
<DIV class=CommentSmoothTopLeft>
<DIV class=CommentSmoothTopRight>&nbsp;</DIV></DIV></DIV>
<DIV class=CommentContent>
<DIV class=CommentContentLeft>
<DIV class=CommentContentRight>
<DIV class=avatar><IMG class=avatar alt=аватар src=\"http://www.photoshop-master.ru/forum/public/style_images/master/profile/default_thumb.png\"> </DIV>
<DIV class=comment_content_text>
<P><STRONG><A href=\"http://www.photoshop-master.ru/users.php?id=750035\">#АЛЕКS ЕЙ&amp;</A></STRONG></P>
<P class=Date>Добавлено: 17.12.2011 5:02:29</P>
<P>спасибо за урок!</P><A class=view_user_job href=\"ajax_block/view_job.php?id=391282\" rel=comment><IMG class=imgcom title=\"Увеличить изображение\" alt=\"Картинка комментатора\" hspace=7 src=\"comimg_mini/comimg391282us750035.jpg\" vspace=5></A> 
<DIV class=total_ball id=total_ball_for391282>
<H5>4<SMALL>всего оценок: 7</SMALL></H5></DIV></DIV></DIV></DIV></DIV>
<DIV class=CommentSmoothBottomLine>
<DIV class=CommentSmoothBottomLeft>
<DIV class=CommentSmoothBottomRight>&nbsp;</DIV></DIV></DIV></DIV><!-- / Comment --><!-- Comment -->
<DIV class=Comment2>
<DIV class=Comment2SmoothTopLine>
<DIV class=Comment2SmoothTopLeft>
<DIV class=Comment2SmoothTopRight>&nbsp;</DIV></DIV></DIV>
<DIV class=Comment2Content>
<DIV class=Comment2ContentLeft>
<DIV class=Comment2ContentRight><IMG class=top_user alt=\"Рейтинг 297\" src=\"images/best_user/297.png\"> 
<DIV class=avatar><IMG class=avatar alt=аватар src=\"http://www.photoshop-master.ru/forum/public/style_avatars/Mix6/58.jpg\"> </DIV>
<DIV class=comment_content_text>
<P><STRONG><A href=\"http://www.photoshop-master.ru/users.php?id=774876\">Рыжий кот.</A></STRONG></P>
<P class=Date>Добавлено: 29.10.2011 18:30:34</P>
<P>Вот что! Спасибо</P><A class=view_user_job href=\"ajax_block/view_job.php?id=376926\" rel=comment><IMG class=imgcom title=\"Увеличить изображение\" alt=\"Картинка комментатора\" hspace=7 src=\"comimg_mini/comimg376926us774876.jpg\" vspace=5></A> 
<DIV class=total_ball id=total_ball_for376926>
<H5>4,22<SMALL>всего оценок: 18</SMALL></H5></DIV></DIV></DIV></DIV></DIV>
<DIV class=Comment2SmoothBottomLine>
<DIV class=Comment2SmoothBottomLeft>
<DIV class=Comment2SmoothBottomRight>&nbsp;</DIV></DIV></DIV></DIV><!-- / Comment --><!-- Comment -->
<DIV class=Comment>
<DIV class=CommentSmoothTopLine>
<DIV class=CommentSmoothTopLeft>
<DIV class=CommentSmoothTopRight>&nbsp;</DIV></DIV></DIV>
<DIV class=CommentContent>
<DIV class=CommentContentLeft>
<DIV class=CommentContentRight>
<DIV class=avatar><IMG class=avatar alt=аватар src=\"http://www.photoshop-master.ru/forum/public/style_images/master/profile/default_thumb.png\"> </DIV>
<DIV class=comment_content_text>
<P><STRONG><A href=\"http://www.photoshop-master.ru/users.php?id=965319\">Iren_Leto</A></STRONG></P>
<P class=Date>Добавлено: 09.10.2011 15:33:00</P>
<P>ребята, у меня не получается((( научите кто-нибудь!!! пожалуйста, очень хочу попробовать... не получается сделать \"разрыв шорт\" и вообще я без понятия как применять \"стоковые изображения\"((((( помогите новичку!! пожааалуйста!!!</P></DIV></DIV></DIV></DIV>
<DIV class=CommentSmoothBottomLine>
<DIV class=CommentSmoothBottomLeft>
<DIV class=CommentSmoothBottomRight>&nbsp;</DIV></DIV></DIV></DIV><!-- / Comment --><!-- Comment -->
<DIV class=Comment2>
<DIV class=Comment2SmoothTopLine>
<DIV class=Comment2SmoothTopLeft>
<DIV class=Comment2SmoothTopRight>&nbsp;</DIV></DIV></DIV>
<DIV class=Comment2Content>
<DIV class=Comment2ContentLeft>
<DIV class=Comment2ContentRight>
<DIV class=avatar><IMG class=avatar alt=аватар src=\"http://www.photoshop-master.ru/forum/public/style_images/master/profile/default_thumb.png\"> </DIV>
<DIV class=comment_content_text>
<P><STRONG><A href=\"http://www.photoshop-master.ru/users.php?id=408279\">Rina_k</A></STRONG></P>
<P class=Date>Добавлено: 16.09.2011 15:29:06</P>
<P>Классный урок:) спасибо!!!!</P><A class=view_user_job href=\"ajax_block/view_job.php?id=365943\" rel=comment><IMG class=imgcom title=\"Увеличить изображение\" alt=\"Картинка комментатора\" hspace=7 src=\"comimg_mini/comimg365943us408279.jpg\" vspace=5></A> 
<DIV class=total_ball id=total_ball_for365943>
<H5>3,79<SMALL>всего оценок: 14</SMALL></H5></DIV></DIV></DIV></DIV></DIV>
<DIV class=Comment2SmoothBottomLine>
<DIV class=Comment2SmoothBottomLeft>
<DIV class=Comment2SmoothBottomRight>&nbsp;</DIV></DIV></DIV></DIV><!-- / Comment --><!-- Comment -->
<DIV class=Comment>
<DIV class=CommentSmoothTopLine>
<DIV class=CommentSmoothTopLeft>
<DIV class=CommentSmoothTopRight>&nbsp;</DIV></DIV></DIV>
<DIV class=CommentContent>
<DIV class=CommentContentLeft>
<DIV class=CommentContentRight>
<DIV class=avatar><IMG class=avatar alt=аватар src=\"http://www.photoshop-master.ru/forum/public/style_images/master/profile/default_thumb.png\"> </DIV>
<DIV class=comment_content_text>
<P><STRONG><A href=\"http://www.photoshop-master.ru/users.php?id=931051\">lepopyndrik</A></STRONG></P>
<P class=Date>Добавлено: 15.09.2011 22:14:07</P>
<P>И еще одна</P><A class=view_user_job href=\"ajax_block/view_job.php?id=365786\" rel=comment><IMG class=imgcom title=\"Увеличить изображение\" alt=\"Картинка комментатора\" hspace=7 src=\"comimg_mini/comimg365786us931051.jpg\" vspace=5></A> 
<DIV class=total_ball id=total_ball_for365786>
<H5>3,56<SMALL>всего оценок: 9</SMALL></H5></DIV></DIV></DIV></DIV></DIV>
<DIV class=CommentSmoothBottomLine>
<DIV class=CommentSmoothBottomLeft>
<DIV class=CommentSmoothBottomRight>&nbsp;</DIV></DIV></DIV></DIV><!-- / Comment --><!-- Comment -->
<DIV class=Comment2>
<DIV class=Comment2SmoothTopLine>
<DIV class=Comment2SmoothTopLeft>
<DIV class=Comment2SmoothTopRight>&nbsp;</DIV></DIV></DIV>
<DIV class=Comment2Content>
<DIV class=Comment2ContentLeft>
<DIV class=Comment2ContentRight>
<DIV class=avatar><IMG class=avatar alt=аватар src=\"http://www.photoshop-master.ru/forum/public/style_images/master/profile/default_thumb.png\"> </DIV>
<DIV class=comment_content_text>
<P><STRONG><A href=\"http://www.photoshop-master.ru/users.php?id=931051\">lepopyndrik</A></STRONG></P>
<P class=Date>Добавлено: 15.09.2011 22:11:39</P>
<P>спасибо!</P><A class=view_user_job href=\"ajax_block/view_job.php?id=365785\" rel=comment><IMG class=imgcom title=\"Увеличить изображение\" alt=\"Картинка комментатора\" hspace=7 src=\"comimg_mini/comimg365785us931051.jpg\" vspace=5></A> 
<DIV class=total_ball id=total_ball_for365785>
<H5>4<SMALL>всего оценок: 5</SMALL></H5></DIV></DIV></DIV></DIV></DIV>
<DIV class=Comment2SmoothBottomLine>
<DIV class=Comment2SmoothBottomLeft>
<DIV class=Comment2SmoothBottomRight>&nbsp;</DIV></DIV></DIV></DIV><!-- / Comment --><!-- Comment -->
<DIV class=Comment>
<DIV class=CommentSmoothTopLine>
<DIV class=CommentSmoothTopLeft>
<DIV class=CommentSmoothTopRight>&nbsp;</DIV></DIV></DIV>
<DIV class=CommentContent>
<DIV class=CommentContentLeft>
<DIV class=CommentContentRight><IMG class=top_user alt=\"Рейтинг 173\" src=\"images/best_user/173.png\"> 
<DIV class=avatar><IMG class=avatar alt=аватар src=\"http://www.photoshop-master.ru/forum/uploads/av-569506.jpg\"> </DIV>
<DIV class=comment_content_text>
<P><STRONG><A href=\"http://www.photoshop-master.ru/users.php?id=569506\">дмитрио2</A></STRONG></P>
<P class=Date>Добавлено: 19.08.2011 17:54:28</P>
<P>спасибо!увлекателно..</P><A class=view_user_job href=\"ajax_block/view_job.php?id=357053\" rel=comment><IMG class=imgcom title=\"Увеличить изображение\" alt=\"Картинка комментатора\" hspace=7 src=\"comimg_mini/comimg357053us569506.jpg\" vspace=5></A> 
<DIV class=total_ball id=total_ball_for357053>
<H5>4,28<SMALL>всего оценок: 18</SMALL></H5></DIV></DIV></DIV></DIV></DIV>
<DIV class=CommentSmoothBottomLine>
<DIV class=CommentSmoothBottomLeft>
<DIV class=CommentSmoothBottomRight>&nbsp;</DIV></DIV></DIV></DIV><!-- / Comment --><!-- Comment -->
<DIV class=Comment2>
<DIV class=Comment2SmoothTopLine>
<DIV class=Comment2SmoothTopLeft>
<DIV class=Comment2SmoothTopRight>&nbsp;</DIV></DIV></DIV>
<DIV class=Comment2Content>
<DIV class=Comment2ContentLeft>
<DIV class=Comment2ContentRight>
<DIV class=avatar><IMG class=avatar alt=аватар src=\"http://www.photoshop-master.ru/forum/uploads/avatar_img/avt192303.jpg\"> </DIV>
<DIV class=comment_content_text>
<P><STRONG><A href=\"http://www.photoshop-master.ru/users.php?id=191303\">DJ Volt</A></STRONG></P>
<P class=Date>Добавлено: 18.08.2011 0:07:32</P>
<P>Спасибо переводчику, все получилось, на мой взгляд=))</P><A class=view_user_job href=\"ajax_block/view_job.php?id=356403\" rel=comment><IMG class=imgcom title=\"Увеличить изображение\" alt=\"Картинка комментатора\" hspace=7 src=\"comimg_mini/comimg356403us191303.jpg\" vspace=5></A> 
<DIV class=total_ball id=total_ball_for356403>
<H5>4,78<SMALL>всего оценок: 36</SMALL></H5></DIV></DIV></DIV></DIV></DIV>
<DIV class=Comment2SmoothBottomLine>
<DIV class=Comment2SmoothBottomLeft>
<DIV class=Comment2SmoothBottomRight>&nbsp;</DIV></DIV></DIV></DIV><!-- / Comment --><A class=view_user_job href=\')

Какие это символы?

  Ответить  
 
 автор: Jovidon   (27.02.2012 в 21:29)   письмо автору
 
   для: pautina   (27.02.2012 в 20:05)
 

Друг это форум MySQL
попробуй убрать эту (?) в 7 строке
<DIV id=googlePlus><XML:NAMESPACE PREFIX = G /><G:PLUSONE></G:PLUSONE></DIV> 

  Ответить  
 
 автор: cheops   (28.02.2012 в 00:45)   письмо автору
 
   для: pautina   (27.02.2012 в 20:05)
 

><A href="http://www.psdmag.org\"
Одна кавычка экранирована, а одна нет.

  Ответить  
 
 автор: pautina   (28.02.2012 в 12:58)   письмо автору
1.4 Мб
 
   для: cheops   (28.02.2012 в 00:45)
 

ошибка в этой строке
<?XML:NAMESPACE PREFIX 
без вопроса таблица создаётся
эта строка
<A href=\"http://www.psdmag.org\" 
на выполнение запроса не влияет (экранирование там есть, при вставке кода, низнаю почему символ не вставился)
эти строки соответствуют 28 записи в таблице.
Но дело в том что строк у меня 244 штуки и в каждой есть html код, ошибка может содердатся в конце каждой записи
в области где div-ы идут,

<DIV style=\"TEXT-ALIGN: center\"><IMG height=48 alt=\"\" src=\"orphus/Oleg_Fadjarov_btn4.gif\" width=257></DIV><BR>
<DIV class=Created id=favorite><IMG src=\"images/ajax-loader.gif\"><SPAN>Добавить в закладки (личный кабинет)</SPAN> </DIV>
<DIV class=Created id=sharedButtons style=\"PADDING-RIGHT: 0px; PADDING-LEFT: 0px; BACKGROUND: none transparent scroll repeat 0% 0%; PADDING-BOTTOM: 5px; PADDING-TOP: 5px\">
<SCRIPT src=\"//yandex.st/share/share.js\" type=text/javascript charset=utf-8></SCRIPT>
...
и до начала новой записи
('2','Уроки Photoshop','Рубрика: Эффекты',

Ни посмотрите прикреплённый файл где ещё могут быть ошибки? искать нужно где div-ы один за другим идут

  Ответить  
Rambler's Top100
вверх

Rambler's Top100 Яндекс.Метрика Яндекс цитирования