viva, eu gostaria de uma opinião de vossa parte para uma questão de um erro que tenho que e o seguinte tenho um site feito por mi e tem um painel de ferramentadas e que já não e feito por achei na net vinha com muitos erro mas nada que não fosse resolvido ate chegar a esta parte claro ele da para postar do tipo de blog mas coando e novo post tudo bem não da erro ninho agora coando e editar faz erro do tipo mete antes de um (") isto (\) nos códigos do youtube do tipo
o que devia
<object width="560" height="315"><param name="movie" value="http://www.youtube.com/v/hcm55lU9knw?version=3&hl=pt_PT"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/hcm55lU9knw?version=3&hl=pt_PT" type="application/x-shockwave-flash" width="560" height="315" allowscriptaccess="always" allowfullscreen="true"></embed></object>
o que grava na base de dados
<object width=\"560\" height=\"315\" data=\"http://www.youtube.com/v/hcm55lU9knw?version=3&hl=pt_PT\" type=\"application/x-shockwave-flash\"><param name=\"allowFullScreen\" value=\"true\" /><param name=\"allowscriptaccess\" value=\"always\" /><param name=\"src\" value=\"http://www.youtube.com/v/hcm55lU9knw?version=3&hl=pt_PT\" /><param name=\"allowfullscreen\" value=\"true\" /></object>
ficheiro php de a pagina de editar
<!-- Load jQuery -->
<script type="text/javascript" src="http://www.google.com/jsapi"></script>
<script type="text/javascript">
google.load("jquery", "1");
</script>
<!-- Load TinyMCE -->
<script type="text/javascript" src="../includes/tinymce/jscripts/tiny_mce/jquery.tinymce.js"></script>
<script type="text/javascript">
$().ready(function() {
$('textarea.tinymce').tinymce({
// Location of TinyMCE script
script_url : '../includes/tinymce/jscripts/tiny_mce/tiny_mce.js',
// General options
theme : "advanced",
plugins : "autolink,lists,pagebreak,style,layer,table,save,advhr,advimage,advlink,emotions,iespell,inlinepopups,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template,advlist",
// Theme options
theme_advanced_buttons1 : "save,newdocument,|,bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,styleselect,formatselect,fontselect,fontsizeselect",
theme_advanced_buttons2 : "cut,copy,paste,pastetext,pasteword,|,search,replace,|,bullist,numlist,|,outdent,indent,blockquote,|,undo,redo,|,link,unlink,anchor,image,cleanup,help,code,|,insertdate,inserttime,preview,|,forecolor,backcolor",
theme_advanced_buttons3 : "tablecontrols,|,hr,removeformat,visualaid,|,sub,sup,|,charmap,emotions,iespell,media,advhr,|,print,|,ltr,rtl,|,fullscreen",
theme_advanced_buttons4 : "insertlayer,moveforward,movebackward,absolute,|,styleprops,|,cite,abbr,acronym,del,ins,attribs,|,visualchars,nonbreaking,template,pagebreak",
theme_advanced_toolbar_location : "top",
theme_advanced_toolbar_align : "left",
theme_advanced_statusbar_location : "bottom",
theme_advanced_resizing : true,
// Example content CSS (should be your site CSS)
content_css : "css/content.css",
// Drop lists for link/image/media/template dialogs
template_external_list_url : "lists/template_list.js",
external_link_list_url : "lists/link_list.js",
external_image_list_url : "lists/image_list.js",
media_external_list_url : "lists/media_list.js",
// Replace values for the template plugin
template_replace_values : {
username : "Some User",
staffid : "991234"
}
});
});
</script>
<!-- /TinyMCE -->
<?
$id = $_GET['id'];
$titulo = mysql_real_escape_string($_POST['titulo']);
$conteudo = mysql_real_escape_string($_POST['conteudo']);
$foto = mysql_real_escape_string($_POST['foto']);
if($_POST['envia']) {
if ($titulo==NULL|$conteudo==NULL){
echo "<script> window.alert('Prencha Todos Os Campos.');</script>";
}else{
$query = "UPDATE entrevistas SET titulo='$titulo',conteudo='$conteudo',foto='$foto' WHERE id='$id'";
mysql_query($query) or die(mysql_error());
echo "<script> window.alert('Atualização Feita Com Sucesso!'); location.href='?pagina=config_entrevistas';</script>";
}
}
?>
<?php
$id = $_GET['id'];
$resultado = mysql_query("SELECT*FROM entrevistas WHERE id='$id'");
while($hebert = mysql_fetch_assoc($resultado)){
$tituloo = $hebert['titulo'];
$conteudoo = $hebert['conteudo'];
$fotoo = $hebert['foto'];
}
?>
<table align="left" border="0" cellpadding="6" cellspacing="0" class="tborder" width="780">
<thead>
<tr>
<td class="tcat" colspan="0">
<a href="#top" onclick="return toggle_collapse('module_20')" style="float:right"><img alt="" border="0" id="collapseimg_module_20" src="images/new/buttons/collapse_tcat.gif" /></a>
<span class="smallfont"><strong>» Nova Vntrevista</strong></span></td>
</tr>
</thead>
<tbody id="collapseobj_module_20" style="">
<tr>
<!--INICIO DE CONTEUDO-->
<form id="form1" name="novo" method="post" action="">
<center>
<tr>
<td colspan="2" class="alt2" align="center"><b>» Nova Entrevista «</b></td>
</tr>
<tr>
<td class="alt2" width="100"><b>
</b><div align="right"><b>Titulo:<b></b></b></div></td>
<td class="alt2" width="250"><input name="titulo" class="text" id="nome" value="<? echo $tituloo ?>" size="100" type="text">
<span class="style1"></span></td>
</tr>
<tr>
<td class="alt2" width="100"><b>
</b><div align="right"><b>Foto:<b></b></b></div></td>
<td class="alt2" width="250"><input name="foto" class="text" id="nome" value="<? echo $fotoo ?>" size="35" type="text">
<span class="style1">Link da Foto </span></td>
</tr>
<tr>
<td class="alt2" width="100"><b>
</b><div align="right"><b>Conteudo:<b></b></b></div></td>
<td class="alt2" width="250"><textarea name="conteudo" class="tinymce"><? echo $conteudoo ?></textarea>
<span class="style1"></span></td>
</tr>
<tr>
<td class="alt2" height="100" colspan="2" align="center"><p>
<input name="envia" class="alt2" type="submit" value="Criar Entrevista" />
<br />
<br />
</p>
</td>
</tr>
</table>
</form>
</center>
</center>
<!--FIM DE CONTEUDO-->
</td></tr>
alguma sugestão para resolver este erro ?