Tatsui 0 Denunciar post Postado Outubro 2, 2011 to fazendo esse script pra mandar valores de um formulário para um banco de dados MySQL mais não ta enviando. me ajudem a acha o erro porfavor. desde de já obrigado. o código é um pouco grande mais é bem repetitivo <? include "config.php"; ?> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title>Untitled Document</title> <style type="text/css"> body,td,th { color: #000; } #cont { background-color: #1E3A86; float: left; height: auto; width: 570px; margin-top: 10px; margin-left: 10px; margin-bottom: 10px; } .style2 { font-size: 24px; font-family: Arial, Helvetica, sans-serif; } .style3 { font-size: 36px; font-weight: bold; font-family: Impact; } .style6 {font-family: Impact; color: #FFFFFF; font-size: 36px;} .style7 { color: #FFFFFF; font-weight: bold; font-family: Arial, Helvetica, sans-serif; } .style8 {color: #FFFFFF} </style> </head> <? /* VARIÁVEIS */ $id = $_POST['id']; /* Principal */ $titulo = $_POST['titulo']; $numero = $_POST['numero']; $screen = $_POST['screen']; /* RMVB */ $rmvb_qualidade = $_POST['rmvb_qualidade']; $rmvb_tamanho = $_POST['rmvb_tamanho']; $rmvb_formato = $_POST['rmvb_formato']; $rmvb_legenda = $_POST['rmvb_legenda']; $rmvb_fansub = $_POST['rmvb_fansub']; $rmvb_upload = $_POST['rmvb_upload']; $rmvb_link1 = $_POST['rmvb_link1']; $rmvb_link2 = $_POST['rmvb_link2']; $rmvb_link3 = $_POST['rmvb_link3']; $rmvb_link4 = $_POST['rmvb_link4']; $rmvb_link5 = $_POST['rmvb_link5']; $rmvb_link6 = $_POST['rmvb_link6']; /* SLQ */ $slq_qualidade = $_POST['slq_qualidade']; $slq_tamanho = $_POST['slq_tamanho']; $slq_formato = $_POST['slq_formato']; $slq_legenda = $_POST['slq_legenda']; $slq_fansub = $_POST['slq_fansub']; $slq_upload = $_POST['slq_upload']; $slq_link1 = $_POST['slq_link1']; $slq_link2 = $_POST['slq_link2']; $slq_link3 = $_POST['slq_link3']; $slq_link4 = $_POST['slq_link4']; $slq_link5 = $_POST['slq_link5']; $slq_link6 = $_POST['slq_link6']; /* MP4 */ $mp4_qualidade = $_POST['mp4_qualidade']; $mp4_tamanho = $_POST['mp4_tamanho']; $mp4_formato = $_POST['mp4_formato']; $mp4_legenda = $_POST['mp4_legenda']; $mp4_fansub = $_POST['mp4_fansub']; $mp4_upload = $_POST['mp4_upload']; $mp4_link1 = $_POST['mp4_link1']; $mp4_link2 = $_POST['mp4_link2']; $mp4_link3 = $_POST['mp4_link3']; $mp4_link4 = $_POST['mp4_link4']; $mp4_link5 = $_POST['mp4_link5']; $mp4_link6 = $_POST['mp4_link6']; /* AVI */ $avi_qualidade = $_POST['avi_qualidade']; $avi_tamanho = $_POST['avi_tamanho']; $avi_formato = $_POST['avi_formato']; $avi_legenda = $_POST['avi_legenda']; $avi_fansub = $_POST['avi_fansub']; $avi_upload = $_POST['avi_upload']; $avi_link1 = $_POST['avi_link1']; $avi_link2 = $_POST['avi_link2']; $avi_link3 = $_POST['avi_link3']; $avi_link4 = $_POST['avi_link4']; $avi_link5 = $_POST['avi_link5']; $avi_link6 = $_POST['avi_link6']; /* SD */ $sd_qualidade = $_POST['sd_qualidade']; $sd_tamanho = $_POST['sd_tamanho']; $sd_formato = $_POST['sd_formato']; $sd_legenda = $_POST['sd_legenda']; $sd_fansub = $_POST['sd_fansub']; $sd_upload = $_POST['sd_upload']; $sd_link1 = $_POST['sd_link1']; $sd_link2 = $_POST['sd_link2']; $sd_link3 = $_POST['sd_link3']; $sd_link4 = $_POST['sd_link4']; $sd_link5 = $_POST['sd_link5']; $sd_link6 = $_POST['sd_link6']; /* HD */ $hd_qualidade = $_POST['hd_qualidade']; $hd_tamanho = $_POST['hd_tamanho']; $hd_formato = $_POST['hd_formato']; $hd_legenda = $_POST['hd_legenda']; $hd_fansub = $_POST['hd_fansub']; $hd_upload = $_POST['hd_upload']; $hd_link1 = $_POST['hd_link1']; $hd_link2 = $_POST['hd_link2']; $hd_link3 = $_POST['hd_link3']; $hd_link4 = $_POST['hd_link4']; $hd_link5 = $_POST['hd_link5']; $hd_link6 = $_POST['hd_link6']; /* ENVIAR */ if($_GET['act'] == "enviar"){ $sgl = "INSERT INTO episodios VALUES ( '$titulo', '$numero', '$screen', '$rmvb_qualidade', '$rmvb_tamanho', '$rmvb_formato', '$rmvb_legenda', '$rmvb_fansub', '$rmvb_upload', '$rmvb_link1', '$rmvb_link2', '$rmvb_link3', '$rmvb_link4', '$rmvb_link5', '$rmvb_link6', '$slq_qualidade', '$slq_tamanho', '$slq_formato', '$slq_legenda', '$slq_fansub', '$slq_upload', '$slq_link1', '$slq_link2', '$slq_link3', '$slq_link4', '$slq_link5', '$slq_link6', '$mp4_qualidade', '$mp4_tamanho', '$mp4_formato', '$mp4_legenda', '$mp4_fansub', '$mp4_upload', '$mp4_link1', '$mp4_link2', '$mp4_link3', '$mp4_link4', '$mp4_link5', '$mp4_link6', '$avi_qualidade', '$avi_tamanho', '$avi_formato', '$avi_legenda', '$avi_fansub', '$avi_upload', '$avi_link1', '$avi_link2', '$avi_link3', '$avi_link4', '$avi_link5', '$avi_link6', '$sd_qualidade', '$sd_tamanho', '$sd_formato', '$sd_legenda', '$sd_fansub', '$sd_upload', '$sd_link1', '$sd_link2', '$sd_link3', '$sd_link4', '$sd_link5', '$sd_link6', '$hd_qualidade', '$hd_tamanho', '$hd_formato', '$hd_legenda', '$hd_fansub', '$hd_upload', '$hd_link1', '$hd_link2', '$hd_link3', '$hd_link4', '$hd_link5', '$hd_link6')"; mysql_query($sgl) or die(mysql_error()); echo "testando"; } ?> <body> <form action="?act=enviar" method="post"> <table width="570" border="0" cellpadding="0" cellspacing="0"> <!--DWLayoutTable--> <tr> <td width="570" height="44" align="center" valign="top" bgcolor="#000000" class="style6">Adicionar Episódios</td> </tr> <tr> <td height="2080" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="2"> <!--DWLayoutTable--> <tr> <td width="566" height="110" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#999999"> <!--DWLayoutTable--> <tr bgcolor="#333333"> <td height="27" colspan="3" valign="top"><span class="style6">Principal</span></td> </tr> <tr> <td width="150" height="2"></td> <td width="2"></td> <td width="414"></td> </tr> <tr> <td height="19" valign="top" bgcolor="#333333" class="style7">Título:</td> <td> </td> <td valign="top" bgcolor="#666666"><input name="titulo" type="text" size="50" id="titulo"></td> </tr> <tr> <td height="2"></td> <td></td> <td></td> </tr> <tr> <td height="19" valign="top" bgcolor="#333333"><span class="style7">Numero:</span></td> <td></td> <td valign="top" bgcolor="#666666"><input name="numero" type="text" size="10" id="numero"></td> </tr> <tr> <td height="2"></td> <td></td> <td></td> </tr> <tr> <td height="19" valign="top" bgcolor="#333333" class="style7">Screen:</td> <td></td> <td valign="top" bgcolor="#666666"><input name="screen" type="text" size="70" id="screen"></td> </tr> <tr> <td height="20"> </td> <td></td> <td></td> </tr> </table></td> </tr> <tr> <td height="316" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#0066CC"> <!--DWLayoutTable--> <tr valign="middle" bgcolor="#001F3E"> <td height="27" colspan="5" class="style6">RMVB</td> </tr> <tr> <td width="99" height="1"></td> <td width="4"></td> <td width="180"></td> <td width="98"></td> <td width="185"></td> </tr> <tr> <td height="24" valign="middle" bgcolor="#001F3E"><span class="style7"> Qualidade:</span></td> <td></td> <td valign="middle" bgcolor="#00366C"><input name="rmvb_qualidade" type="text" value="Baixa" id="rmvb_qualidade"></td> <td valign="middle" bgcolor="#001F3E" class="style7"> Legenda:</td> <td valign="middle" bgcolor="#00366C"><select name="rmvb_legenda" size="1" id="rmvb_legenda"> <option value="pt" selected="selected">Português</option> <option value="en">Inglês</option> <option value="jp">Japonês</option> </select></td> </tr> <tr> <td height="1"></td> <td></td> <td></td> <td></td> <td></td> </tr> <tr> <td height="24" valign="middle" bgcolor="#001F3E" class="style7"> Tamanho:</td> <td></td> <td valign="middle" bgcolor="#00366C"><input type="text" name="rmvb_tamanho" size="10" id="rmvb_tamanho"> </td> <td valign="middle" bgcolor="#001F3E" class="style7"> Fansub:</td> <td valign="middle" bgcolor="#00366C"><input type="text" name="rmvb_fansub" id="rmvb_fansub"></td> </tr> <tr> <td height="1"></td> <td></td> <td></td> <td></td> <td></td> </tr> <tr> <td height="24" valign="middle" bgcolor="#001F3E" class="style7"> Formato:</td> <td></td> <td valign="middle" bgcolor="#00366C"><input name="rmvb_formato" type="text" value=".rmvb" id="rmvb_formato"></td> <td valign="middle" bgcolor="#001F3E" class="style7"> Upload:</td> <td valign="middle" bgcolor="#00366C"><input type="text" name="rmvb_upload" id="rmvb_upload"></td> </tr> <tr> <td height="1"></td> <td></td> <td></td> <td></td> <td></td> </tr> <tr> <td height="24" colspan="5" valign="middle" bgcolor="#001F3E" class="style2 style7"> Links:</td> </tr> <tr> <td height="1"></td> <td></td> <td></td> <td></td> <td></td> </tr> <tr> <td height="24" valign="middle" bgcolor="#001F3E" class="style7"> MegaUpload:</td> <td></td> <td colspan="3" valign="middle" bgcolor="#00366C"><input name="rmvb_link1" type="text" size="70" id="rmvb_link1"></td> </tr> <tr> <td height="1"></td> <td></td> <td></td> <td></td> <td></td> </tr> <tr> <td height="24" valign="middle" bgcolor="#001F3E" class="style7"> MediaFire:</td> <td></td> <td colspan="3" valign="middle" bgcolor="#00366C"><input name="rmvb_link2" type="text" size="70" id="rmvb_link2"></td> </tr> <tr> <td height="1"></td> <td></td> <td></td> <td></td> <td></td> </tr> <tr> <td height="24" valign="middle" bgcolor="#001F3E" class="style7"> FileServe:</td> <td></td> <td colspan="3" valign="middle" bgcolor="#00366C"><input name="rmvb_link3" type="text" size="70" id="rmvb_link3"></td> </tr> <tr> <td height="1"></td> <td></td> <td></td> <td></td> <td></td> </tr> <tr> <td height="24" valign="middle" bgcolor="#001F3E" class="style7"> BitShare:</td> <td></td> <td colspan="3" valign="middle" bgcolor="#00366C"><input name="rmvb_link4" type="text" size="70" id="rmvb_link4"></td> </tr> <tr> <td height="1"></td> <td></td> <td></td> <td></td> <td></td> </tr> <tr> <td height="24" valign="middle" bgcolor="#001F3E" class="style7"> DepositFiles:</td> <td></td> <td colspan="3" valign="middle" bgcolor="#00366C"><input name="rmvb_link5" type="text" size="70" id="rmvb_link5"></td> </tr> <tr> <td height="1"></td> <td></td> <td></td> <td></td> <td></td> </tr> <tr> <td height="24" valign="middle" bgcolor="#001F3E" class="style7"> 4Shared:</td> <td></td> <td colspan="3" valign="middle" bgcolor="#00366C"><input name="rmvb_link6" type="text" size="70" id="rmvb_link6"></td> </tr> <tr> <td height="17"></td> <td></td> <td></td> <td></td> <td></td> </tr> </table> <table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#60b691"> <!--DWLayoutTable--> <tr valign="middle" bgcolor="#439271"> <td height="27" colspan="5" bgcolor="#295A45" class="style6">SLQ</td> </tr> <tr> <td width="99" height="1"></td> <td width="4"></td> <td width="180"></td> <td width="98"></td> <td width="185"></td> </tr> <tr> <td height="24" valign="middle" bgcolor="#295A45"><span class="style7"> Qualidade:</span></td> <td></td> <td valign="middle" bgcolor="#439271"><input name="slq_qualidade" type="text" value="Baixa" id="slq_qualidade"></td> <td valign="middle" bgcolor="#295A45" class="style7"> Legenda:</td> <td valign="middle" bgcolor="#439271"><select name="slq_legenda" size="1" id="slq_legenda"> <option value="pt" selected="selected">Português</option> <option value="en">Inglês</option> <option value="jp">Japonês</option> </select></td> </tr> <tr> <td height="1"></td> <td></td> <td></td> <td></td> <td></td> </tr> <tr> <td height="24" valign="middle" bgcolor="#295A45" class="style7"> Tamanho:</td> <td></td> <td valign="middle" bgcolor="#439271"><input type="text" name="slq_tamanho" size="10" id="slq_tamanho"> </td> <td valign="middle" bgcolor="#295A45" class="style7"> Fansub:</td> <td valign="middle" bgcolor="#439271"><input type="text" name="slq_fansub" id="slq_fansub"></td> </tr> <tr> <td height="1"></td> <td></td> <td></td> <td></td> <td></td> </tr> <tr> <td height="24" valign="middle" bgcolor="#295A45" class="style7"> Formato:</td> <td></td> <td valign="middle" bgcolor="#439271"><input name="slq_formato" type="text" value=".slq" id="slq_formato"></td> <td valign="middle" bgcolor="#295A45" class="style7"> Upload:</td> <td valign="middle" bgcolor="#439271"><input type="text" name="slq_upload" id="slq_upload"></td> </tr> <tr> <td height="1"></td> <td></td> <td></td> <td></td> <td></td> </tr> <tr bgcolor="#295A45"> <td height="24" colspan="5" valign="middle" class="style2 style7"> Links:</td> </tr> <tr> <td height="1"></td> <td></td> <td></td> <td></td> <td></td> </tr> <tr> <td height="24" valign="middle" bgcolor="#295A45" class="style7"> MegaUpload:</td> <td></td> <td colspan="3" valign="middle" bgcolor="#439271"><input name="slq_link1" type="text" size="70" id="slq_link1"></td> </tr> <tr> <td height="1"></td> <td></td> <td></td> <td></td> <td></td> </tr> <tr> <td height="24" valign="middle" bgcolor="#295A45" class="style7"> MediaFire:</td> <td></td> <td colspan="3" valign="middle" bgcolor="#439271"><input name="slq_link2" type="text" size="70" id="slq_link2"></td> </tr> <tr> <td height="1"></td> <td></td> <td></td> <td></td> <td></td> </tr> <tr> <td height="24" valign="middle" bgcolor="#295A45" class="style7"> 4Shared:</td> <td></td> <td colspan="3" valign="middle" bgcolor="#439271"><input name="slq_link3" type="text" size="70" id="slq_link3"></td> </tr> <tr> <td height="1"></td> <td></td> <td></td> <td></td> <td></td> </tr> <tr> <td height="24" valign="middle" bgcolor="#295A45" class="style7"> UploadKing:</td> <td></td> <td colspan="3" valign="middle" bgcolor="#439271"><input name="slq_link4" type="text" size="70" id="slq_link4"></td> </tr> <tr> <td height="1"></td> <td></td> <td></td> <td></td> <td></td> </tr> <tr> <td height="24" valign="middle" bgcolor="#295A45" class="style7"> UploadHere:</td> <td></td> <td colspan="3" valign="middle" bgcolor="#439271"><input name="slq_link5" type="text" size="70" id="slq_link5"></td> </tr> <tr> <td height="1"></td> <td></td> <td></td> <td></td> <td></td> </tr> <tr> <td height="24" valign="middle" bgcolor="#295A45" class="style7"> FileServe:</td> <td></td> <td colspan="3" valign="middle" bgcolor="#439271"><input name="slq_link6" type="text" size="70" id="slq_link6"></td> </tr> <tr> <td height="17"></td> <td></td> <td></td> <td></td> <td></td> </tr> </table> <table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#3b7d10"> <!--DWLayoutTable--> <tr valign="middle" bgcolor="#1B3906"> <td height="27" colspan="5" class="style6">MP4</td> </tr> <tr> <td width="99" height="1"></td> <td width="4"></td> <td width="180"></td> <td width="98"></td> <td width="185"></td> </tr> <tr> <td height="24" valign="middle" bgcolor="#1B3906"><span class="style7"> Qualidade:</span></td> <td></td> <td valign="middle" bgcolor="#2F620D"><input name="mp4_qualidade" type="text" value="Baixa" id="mp4_qualidade"></td> <td valign="middle" bgcolor="#1B3906" class="style7"> Legenda:</td> <td valign="middle" bgcolor="#2F620D"><select name="mp4_legenda" size="1" id="mp4_legenda"> <option value="pt" selected="selected">Português</option> <option value="en">Inglês</option> <option value="jp">Japonês</option> </select></td> </tr> <tr> <td height="1"></td> <td></td> <td></td> <td></td> <td></td> </tr> <tr> <td height="24" valign="middle" bgcolor="#1B3906" class="style7"> Tamanho:</td> <td></td> <td valign="middle" bgcolor="#2F620D"><input type="text" name="mp4_tamanho" size="10" id="mp4_tamanho"> </td> <td valign="middle" bgcolor="#1B3906" class="style7"> Fansub:</td> <td valign="middle" bgcolor="#2F620D"><input type="text" name="mp4_fansub" id="mp4_fansub"></td> </tr> <tr> <td height="1"></td> <td></td> <td></td> <td></td> <td></td> </tr> <tr> <td height="24" valign="middle" bgcolor="#1B3906" class="style7"> Formato:</td> <td></td> <td valign="middle" bgcolor="#2F620D"><input name="mp4_formato" type="text" value=".mp4" id="mp4_formato"></td> <td valign="middle" bgcolor="#1B3906" class="style7"> Upload:</td> <td valign="middle" bgcolor="#2F620D"><input type="text" name="mp4_upload" id="mp4_upload"></td> </tr> <tr> <td height="1"></td> <td></td> <td></td> <td></td> <td></td> </tr> <tr bgcolor="#1B3906"> <td height="24" colspan="5" valign="middle" class="style2 style7"> Links:</td> </tr> <tr> <td height="1"></td> <td></td> <td></td> <td></td> <td></td> </tr> <tr> <td height="24" valign="middle" bgcolor="#1B3906" class="style7"> MegaUpload:</td> <td></td> <td colspan="3" valign="middle" bgcolor="#2F620D"><input name="mp4_link1" type="text" size="70" id="mp4_link1"></td> </tr> <tr> <td height="1"></td> <td></td> <td></td> <td></td> <td></td> </tr> <tr> <td height="24" valign="middle" bgcolor="#1B3906" class="style7"> MediaFire:</td> <td></td> <td colspan="3" valign="middle" bgcolor="#2F620D"><input name="mp4_link2" type="text" size="70" id="mp4_link2"></td> </tr> <tr> <td height="1"></td> <td></td> <td></td> <td></td> <td></td> </tr> <tr> <td height="24" valign="middle" bgcolor="#1B3906" class="style7"> 4Shared:</td> <td></td> <td colspan="3" valign="middle" bgcolor="#2F620D"><input name="mp4_link3" type="text" size="70" id="mp4_link3"></td> </tr> <tr> <td height="1"></td> <td></td> <td></td> <td></td> <td></td> </tr> <tr> <td height="24" valign="middle" bgcolor="#1B3906" class="style7"> UploadKing:</td> <td></td> <td colspan="3" valign="middle" bgcolor="#2F620D"><input name="mp4_link4" type="text" size="70" id="mp4_link4"></td> </tr> <tr> <td height="1"></td> <td></td> <td></td> <td></td> <td></td> </tr> <tr> <td height="24" valign="middle" bgcolor="#1B3906" class="style7"> UploadHere:</td> <td></td> <td colspan="3" valign="middle" bgcolor="#2F620D"><input name="mp4_link5" type="text" size="70" id="mp4_link5"></td> </tr> <tr> <td height="1"></td> <td></td> <td></td> <td></td> <td></td> </tr> <tr> <td height="24" valign="middle" bgcolor="#1B3906" class="style7"> FileServe:</td> <td></td> <td colspan="3" valign="middle" bgcolor="#2F620D"><input name="mp4_link6" type="text" size="70" id="mp4_link6"></td> </tr> <tr> <td height="17"></td> <td></td> <td></td> <td></td> <td></td> </tr> </table> <table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#fb2f00"> <!--DWLayoutTable--> <tr valign="middle" bgcolor="#9B1C00"> <td height="27" colspan="5" class="style6" >AVI</td> </tr> <tr> <td width="99" height="1"></td> <td width="4"></td> <td width="180"></td> <td width="98"></td> <td width="185"></td> </tr> <tr> <td height="24" valign="middle" bgcolor="#9B1C00"><span class="style7"> Qualidade:</span></td> <td></td> <td valign="middle" bgcolor="#E12700"><input name="avi_qualidade" type="text" value="Baixa" id="avi_qualidade"></td> <td valign="middle" bgcolor="#9B1C00" class="style7"> Legenda:</td> <td valign="middle" bgcolor="#E12700"><select name="avi_legenda" size="1" id="avi_legenda"> <option value="pt" selected="selected">Português</option> <option value="en">Inglês</option> <option value="jp">Japonês</option> </select></td> </tr> <tr> <td height="1"></td> <td></td> <td></td> <td></td> <td></td> </tr> <tr> <td height="24" valign="middle" bgcolor="#9B1C00" class="style7"> Tamanho:</td> <td></td> <td valign="middle" bgcolor="#E12700"><input type="text" name="avi_tamanho" size="10" id="avi_tamanho"> </td> <td valign="middle" bgcolor="#9B1C00" class="style7"> Fansub:</td> <td valign="middle" bgcolor="#E12700"><input type="text" name="avi_fansub" id="avi_fansub"></td> </tr> <tr> <td height="1"></td> <td></td> <td></td> <td></td> <td></td> </tr> <tr> <td height="24" valign="middle" bgcolor="#9B1C00" class="style7"> Formato:</td> <td></td> <td valign="middle" bgcolor="#E12700"><input name="avi_formato" type="text" value=".avi" id="avi_formato"></td> <td valign="middle" bgcolor="#9B1C00" class="style7"> Upload:</td> <td valign="middle" bgcolor="#E12700"><input type="text" name="avi_upload" id="avi_upload"></td> </tr> <tr> <td height="1"></td> <td></td> <td></td> <td></td> <td></td> </tr> <tr bgcolor="#9B1C00"> <td height="24" colspan="5" valign="middle" class="style2 style7"> Links:</td> </tr> <tr> <td height="1"></td> <td></td> <td></td> <td></td> <td></td> </tr> <tr> <td height="24" valign="middle" bgcolor="#9B1C00" class="style7"> MegaUpload:</td> <td></td> <td colspan="3" valign="middle" bgcolor="#E12700"><input name="avi_link1" type="text" size="70" id="avi_link1"></td> </tr> <tr> <td height="1"></td> <td></td> <td></td> <td></td> <td></td> </tr> <tr> <td height="24" valign="middle" bgcolor="#9B1C00" class="style7"> MediaFire:</td> <td></td> <td colspan="3" valign="middle" bgcolor="#E12700"><input name="avi_link2" type="text" size="70" id="avi_link2"></td> </tr> <tr> <td height="1"></td> <td></td> <td></td> <td></td> <td></td> </tr> <tr> <td height="24" valign="middle" bgcolor="#9B1C00" class="style7"> 4Shared:</td> <td></td> <td colspan="3" valign="middle" bgcolor="#E12700"><input name="avi_link3" type="text" size="70" id="avi_link3"></td> </tr> <tr> <td height="1"></td> <td></td> <td></td> <td></td> <td></td> </tr> <tr> <td height="24" valign="middle" bgcolor="#9B1C00" class="style7"> UploadKing:</td> <td></td> <td colspan="3" valign="middle" bgcolor="#E12700"><input name="avi_link4" type="text" size="70" id="avi_link4"></td> </tr> <tr> <td height="1"></td> <td></td> <td></td> <td></td> <td></td> </tr> <tr> <td height="24" valign="middle" bgcolor="#9B1C00" class="style7"> UploadHere:</td> <td></td> <td colspan="3" valign="middle" bgcolor="#E12700"><input name="avi_link5" type="text" size="70" id="avi_link5"></td> </tr> <tr> <td height="1"></td> <td></td> <td></td> <td></td> <td></td> </tr> <tr> <td height="24" valign="middle" bgcolor="#9B1C00" class="style7"> FileServe:</td> <td></td> <td colspan="3" valign="middle" bgcolor="#E12700"><input name="avi_link6" type="text" size="70" id="avi_link6"></td> </tr> <tr> <td height="17"></td> <td></td> <td></td> <td></td> <td></td> </tr> </table> <table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#fb6400"> <!--DWLayoutTable--> <tr valign="middle" bgcolor="#9B1C00"> <td height="27" colspan="5" bgcolor="#8C3800" class="style6" >SD</td> </tr> <tr> <td width="99" height="1"></td> <td width="4"></td> <td width="180"></td> <td width="98"></td> <td width="185"></td> </tr> <tr> <td height="24" valign="middle" bgcolor="#8C3800"><span class="style7"> Qualidade:</span></td> <td></td> <td valign="middle" bgcolor="#DF5900"><input name="sd_qualidade" type="text" value="Baixa" id="sd_qualidade"></td> <td valign="middle" bgcolor="#8C3800" class="style7"> Legenda:</td> <td valign="middle" bgcolor="#DF5900"><select name="sd_legenda" size="1" id="sd_legenda"> <option value="pt" selected="selected">Português</option> <option value="en">Inglês</option> <option value="jp">Japonês</option> </select></td> </tr> <tr><select name="select2" size="1"> <option value="pt" selected="selected">Português</option> <option value="en">Inglês</option> <option value="jp">Japonês</option> </select> <td height="1"></td> <td></td> <td></td> <td></td> <td></td> </tr> <tr> <td height="24" valign="middle" bgcolor="#8C3800" class="style7"> Tamanho:</td> <td></td> <td valign="middle" bgcolor="#DF5900"><input type="text" name="sd_tamanho" size="10" id="sd_tamanho"> </td> <td valign="middle" bgcolor="#8C3800" class="style7"> Fansub:</td> <td valign="middle" bgcolor="#DF5900"><input type="text" name="sd_fansub" id="sd_fansub"></td> </tr> <tr> <td height="1"></td> <td></td> <td></td> <td></td> <td></td> </tr> <tr> <td height="24" valign="middle" bgcolor="#8C3800" class="style7"> Formato:</td> <td></td> <td valign="middle" bgcolor="#DF5900"><input name="sd_formato" type="text" value=".mkv" id="sd_formato"></td> <td valign="middle" bgcolor="#8C3800" class="style7"> Upload:</td> <td valign="middle" bgcolor="#DF5900"><input type="text" name="sd_upload" id="sd_upload"></td> </tr> <tr> <td height="1"></td> <td></td> <td></td> <td></td> <td></td> </tr> <tr bgcolor="#8C3800"> <td height="24" colspan="5" valign="middle" class="style2 style7"> Links:</td> </tr> <tr> <td height="1"></td> <td></td> <td></td> <td></td> <td></td> </tr> <tr> <td height="24" valign="middle" bgcolor="#8C3800" class="style7"> MegaUpload:</td> <td></td> <td colspan="3" valign="middle" bgcolor="#DF5900"><input name="sd_link1" type="text" size="70" id="sd_link1"></td> </tr> <tr> <td height="1"></td> <td></td> <td></td> <td></td> <td></td> </tr> <tr> <td height="24" valign="middle" bgcolor="#8C3800" class="style7"> MediaFire:</td> <td></td> <td colspan="3" valign="middle" bgcolor="#DF5900"><input name="sd_link2" type="text" size="70" id="sd_link2"></td> </tr> <tr> <td height="1"></td> <td></td> <td></td> <td></td> <td></td> </tr> <tr> <td height="24" valign="middle" bgcolor="#8C3800" class="style7"> 4Shared:</td> <td></td> <td colspan="3" valign="middle" bgcolor="#DF5900"><input name="sd_link3" type="text" size="70" id="sd_link3"></td> </tr> <tr> <td height="1"></td> <td></td> <td></td> <td></td> <td></td> </tr> <tr> <td height="24" valign="middle" bgcolor="#8C3800" class="style7"> UploadKing:</td> <td></td> <td colspan="3" valign="middle" bgcolor="#DF5900"><input name="sd_link4" type="text" size="70" id="sd_link4"></td> </tr> <tr> <td height="1"></td> <td></td> <td></td> <td></td> <td></td> </tr> <tr> <td height="24" valign="middle" bgcolor="#8C3800" class="style7"> UploadHere:</td> <td></td> <td colspan="3" valign="middle" bgcolor="#DF5900"><input name="sd_link5" type="text" size="70" id="sd_link5"></td> </tr> <tr> <td height="1"></td> <td></td> <td></td> <td></td> <td></td> </tr> <tr> <td height="24" valign="middle" bgcolor="#8C3800" class="style7"> FileServe:</td> <td></td> <td colspan="3" valign="middle" bgcolor="#DF5900"><input name="sd_link6" type="text" size="70" id="sd_link6"></td> </tr> <tr> <td height="17"></td> <td></td> <td></td> <td></td> <td></td> </tr> </table> <table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#7035ac"> <!--DWLayoutTable--> <tr valign="middle" bgcolor="#452169"> <td height="27" colspan="5" class="style6" >HD</td> </tr> <tr> <td width="99" height="1"></td> <td width="4"></td> <td width="180"></td> <td width="98"></td> <td width="185"></td> </tr> <tr> <td height="24" valign="middle" bgcolor="#452169"><span class="style7"> Qualidade:</span></td> <td></td> <td valign="middle" bgcolor="#65309A"><input name="hd_qualidade" type="text" value="Baixa" id="hd_qualidade"></td> <td valign="middle" bgcolor="#452169" class="style7"> Legenda:</td> <td valign="middle" bgcolor="#65309A"><select name="hd_legenda" size="1" id="hd_legenda"> <option value="pt" selected="selected">Português</option> <option value="en">Inglês</option> <option value="jp">Japonês</option> </select> </tr> <tr> <td height="1"></td> <td></td> <td></td> <td></td> <td></td> </tr> <tr> <td height="24" valign="middle" bgcolor="#452169" class="style7"> Tamanho:</td> <td></td> <td valign="middle" bgcolor="#65309A"><input type="text" name="hd_tamanho" size="10" id="hd_tamanho"> </td> <td valign="middle" bgcolor="#452169" class="style7"> Fansub:</td> <td valign="middle" bgcolor="#65309A"><input type="text" name="hd_fansub" id="hd_fansub"></td> </tr> <tr> <td height="1"></td> <td></td> <td></td> <td></td> <td></td> </tr> <tr> <td height="24" valign="middle" bgcolor="#452169" class="style7"> Formato:</td> <td></td> <td valign="middle" bgcolor="#65309A"><input name="hd_formato" type="text" value=".mkv" id="hd_formato"></td> <td valign="middle" bgcolor="#452169" class="style7"> Upload:</td> <td valign="middle" bgcolor="#65309A"><input type="text" name="hd_upload" id="hd_upload"></td> </tr> <tr> <td height="1"></td> <td></td> <td></td> <td></td> <td></td> </tr> <tr bgcolor="#452169"> <td height="24" colspan="5" valign="middle" class="style2 style7"> Links:</td> </tr> <tr> <td height="1"></td> <td></td> <td></td> <td></td> <td></td> </tr> <tr> <td height="24" valign="middle" bgcolor="#452169" class="style7"> MegaUpload:</td> <td></td> <td colspan="3" valign="middle" bgcolor="#65309A"><input name="hd_link1" type="text" size="70" id="hd_link1"></td> </tr> <tr> <td height="1"></td> <td></td> <td></td> <td></td> <td></td> </tr> <tr> <td height="24" valign="middle" bgcolor="#452169" class="style7"> MediaFire:</td> <td></td> <td colspan="3" valign="middle" bgcolor="#65309A"><input name="hd_link2" type="text" size="70" id="hd_link2"></td> </tr> <tr> <td height="1"></td> <td></td> <td></td> <td></td> <td></td> </tr> <tr> <td height="24" valign="middle" bgcolor="#452169" class="style7"> 4Shared:</td> <td></td> <td colspan="3" valign="middle" bgcolor="#65309A"><input name="hd_link3" type="text" size="70" id="hd_link3"></td> </tr> <tr> <td height="1"></td> <td></td> <td></td> <td></td> <td></td> </tr> <tr> <td height="24" valign="middle" bgcolor="#452169" class="style7"> UploadKing:</td> <td></td> <td colspan="3" valign="middle" bgcolor="#65309A"><input name="hd_link4" type="text" size="70" id="hd_link4"></td> </tr> <tr> <td height="1"></td> <td></td> <td></td> <td></td> <td></td> </tr> <tr> <td height="24" valign="middle" bgcolor="#452169" class="style7"> UploadHere:</td> <td></td> <td colspan="3" valign="middle" bgcolor="#65309A"><input name="hd_link5" type="text" size="70" id="hd_link5"></td> </tr> <tr> <td height="1"></td> <td></td> <td></td> <td></td> <td></td> </tr> <tr> <td height="24" valign="middle" bgcolor="#452169" class="style7"> FileServe:</td> <td></td> <td colspan="3" valign="middle" bgcolor="#65309A"><input name="hd_link6" type="text" size="70" id="hd_link6"></td> </tr> <tr> <td height="17"></td> <td></td> <td></td> <td></td> <td></td> </tr> </table></td> </tr> <tr> <td height="40" align="right" id="button"><input type="submit" value="Adicionar episódio"></td> </tr> </table></td> </tr> <tr> <td height="41"> </td> </tr> </table> </form> </body> </html> Coloquei o código todo pra ficar mais fácil de vcs me ajudarem o problema é q não envia nada pro banco de dados Compartilhar este post Link para o post Compartilhar em outros sites
Kakashi_Hatake 267 Denunciar post Postado Outubro 2, 2011 Cadê a conexão com o banco de dados ? mysql_connect mysql_select_db Compartilhar este post Link para o post Compartilhar em outros sites
Jonatã Cioni 9 Denunciar post Postado Outubro 2, 2011 qual erro esta dando??? Compartilhar este post Link para o post Compartilhar em outros sites
Alan Albuquerque 0 Denunciar post Postado Outubro 2, 2011 Carlos Coelho Acho que pode estar no <? include "config.php"; ?> Tatsui Confirme isso, ok? Sobre o problema, você sempre deve informar pra gente se houve algum erro gerado pelo mysql_error(). Uma dica que posso lhe dar, é sempre verificar se o formulário foi enviado por requisição $_POST, pode ser dando um nome ao input submit e verificando com um isset($_POST['enviar')) se ele foi clicado, mas isso é só uma dica. Em relação ao seu problema, postar o seu script aqui e deixar nas nossas mãos sem ao menos explicar direito o seu problema, é complicado. Mas tenta colocar o nome do campo e relacionar com o valor pra organizar melhor, por exemplo ... INSERT INTO tabela (campo1, campo2) VALUES ($valor1, $valor2) Compartilhar este post Link para o post Compartilhar em outros sites
Kakashi_Hatake 267 Denunciar post Postado Outubro 2, 2011 Carlos Coelho Acho que pode estar no <? include "config.php"; ?> Correto, só que o @Tatsui editou o tópico depois da minha resposta. <_< Configure seu código para exibir TODAS as mensagens de erro, adicionando este código à primeira linha do script. <?php ini_set( 'display_errors', true ); error_reporting( E_ALL ); Compartilhar este post Link para o post Compartilhar em outros sites
RenatoRibeiro 0 Denunciar post Postado Outubro 2, 2011 Carlos Coelho Acho que pode estar no <? include "config.php"; ?> Tatsui Confirme isso, ok? Sobre o problema, você sempre deve informar pra gente se houve algum erro gerado pelo mysql_error(). Uma dica que posso lhe dar, é sempre verificar se o formulário foi enviado por requisição $_POST, pode ser dando um nome ao input submit e verificando com um isset($_POST['enviar')) se ele foi clicado, mas isso é só uma dica. Em relação ao seu problema, postar o seu script aqui e deixar nas nossas mãos sem ao menos explicar direito o seu problema, é complicado. Mas tenta colocar o nome do campo e relacionar com o valor pra organizar melhor, por exemplo ... INSERT INTO tabela (campo1, campo2) VALUES ($valor1, $valor2) Não é mais fácil fazer um if($_POST) { } ? Compartilhar este post Link para o post Compartilhar em outros sites
Alan Albuquerque 0 Denunciar post Postado Outubro 2, 2011 RenatoRibeiro E se você tiver dois formulários na mesma página? Como diferenciar os dois? O isset vai de cada programador, cada um tem seu jeito de organizar seu código. O meu padrão é esse. <?php if(isset($_POST['botaoAcionado'])){ } ?> Compartilhar este post Link para o post Compartilhar em outros sites