$dir = "../pms-imgs/editais/";
Por essa:
$dir = "./pms-imgs/editais/";
Foi a única coisa q eu troquei, e foi feito o upload de um arquivo pdf
eu só não testei a inclusão da tabela
There have been 24 items by Nelma (Search limited from 29/03/2023)
Posted by Nelma on 24/02/2008, 11:57 in PHP
Your PHP MySQL library version 4.1.7 differs from your MySQL server version 5.0.45. This may cause unpredictable behavior
Posted by Nelma on 30/01/2008, 09:58 in HTML, CSS e Metodologias
Posted by Nelma on 29/01/2008, 10:59 in HTML, CSS e Metodologias
Posted by Nelma on 29/01/2008, 10:22 in HTML, CSS e Metodologias
Posted by Nelma on 18/09/2007, 11:08 in PHP
$radio = $_POST["valor"]; echo http_build_query($radio);
Warning: http_build_query() [function.http-build-query]: Parameter 1 expected to be Array or Object. Incorrect value given
Posted by Nelma on 18/09/2007, 10:23 in PHP
$valor = "RadioGroup".$contador.$resp[0];
$radio = $_POST["$valor"];
Posted by Nelma on 13/09/2007, 11:54 in PHP
<?php $query = mysql_query("SELECT cod_pergunta FROM pergunta WHERE cod_disc = '$cod_disciplina' ORDER BY RAND( ) LIMIT 5"); while($pergunta = mysql_fetch_row($query)) { $qry = mysql_query("SELECT DISTINCT(pergunta) FROM pergunta WHERE cod_pergunta = '$pergunta[0]'"); while($perg = mysql_fetch_row($qry)) { print "<tr>"; print "<td height=\"19\" colspan=\"2\" valign=\"top\"><!--DWLayoutEmptyCell--> </td>"; print "</tr>"; print "<tr>"; print "<td height=\"32\" colspan=\"2\" align=\"left\" valign=\"middle\" class=\"pergunta\">$perg[0]</td>"; print "</tr>"; } $resposta = mysql_query("SELECT cod_resposta,resposta,cod_pergunta FROM resposta WHERE cod_pergunta = '$pergunta[0]'"); while($resp = mysql_fetch_row($resposta)) { print "<tr>"; print "<td width=\"20\" height=\"20\" align=\"center\" valign=\"middle\"><input name=\"correto\" type=\"radio\" value=\"$resp[0]\" /><input type=\"hidden\" name=\"hid_pergunta\" value=\"$perg[0]\"></td>"; print "<td width=\"663\" align=\"left\" valign=\"middle\" class=\"fonte\">$resp[1]</td>"; print "</tr>"; } } ?>
Posted by Nelma on 25/08/2007, 01:29 in PHP
Posted by Nelma on 23/08/2007, 17:34 in PHP
Posted by Nelma on 23/08/2007, 16:55 in PHP
$email_curso = "xxx@yahoo.com.br"; $headers = "MIME-Version: 1.0\n"; $headers .= "Content-type: text/html; charset=iso-8859-1\n"; $headers .= "From: ".$txt_email; $headers .= "\nReturn-Path: ".$txt_email; $headers .= "\nReply-to: ".$txt_email; $headers .= "Subject: ".$txt_assunto; $headers .= "To: ".$email_curso; $headers .= "X-Mailer: php"; $mensagem = "Assunto Referente: ".$sel_assunto; $mensagem .= "\n Mensagem: ".$txt_msg; $mensagem .= "\n E-mail para resposta: ".$txt_email; mail($email_curso,$txt_assunto,$mensagem,$headers);
Posted by Nelma on 23/08/2007, 14:11 in PHP
$email_curso = "xxx@yahoo.com.br"; $headers = "From: ".$txt_email."\nContent-type: text/html\r\n"; $headers .= "Reply-to: ".$txt_email."\r\n"; $mensagem = "<font color=\"blue\" size=\"12\" family=\"Arial Black\">Assunto Referente: </font>"; $mensagem .= $sel_assunto."\n"; $mensagem .= "<font color=\"blue\" size=\"12\" family=\"Arial Black\">Mensagem: </font>"; $mensagem .= $txt_assunto."\n\n"; $mensagem .= "<font color=\"blue\" size=\"12\" family=\"Arial Black\">E-mail para resposta: </font>"; $mensagem .= $txt_email;
<?php echo $_SERVER['SERVER_ADDR']; ?>
$ip = getenv("REOMOTE_ADDR");Mas para pegar o ip do servidor de conexão eu não sei fazer
Posted by Nelma on 23/08/2007, 09:56 in PHP
$headers = "From: sender@example.com\r\n" . "X-Mailer: php";
Posted by Nelma on 22/08/2007, 13:36 in PHP
$email_curso = "xxx@hotmail.com"; $headers = "From:".$txt_email; $mensagem = "Assunto Referente: ".$sel_assunto."\n"; $mensagem .= "Mensagem: ".$txt_msg."\n\n"; $mensagem .= "E-mail para resposta: ".$txt_email; mail($email_curso,$txt_assunto,$mensagem,$headers); print "<script language=\"JavaScript\"> "; print "alert(\"Sua Mensagem foi enviada com sucesso\") "; print "</SCRIPT>"; print "<meta http-equiv=refresh content=0;URL=inicio/inicio.php>";
Posted by Nelma on 22/08/2007, 10:49 in PHP
Posted by Nelma on 17/08/2007, 01:08 in PHP
Posted by Nelma on 09/08/2007, 08:36 in Javascript / DOM / AJAX / ECMAScript
Posted by Nelma on 08/08/2007, 14:29 in Javascript / DOM / AJAX / ECMAScript
Community Forum Software by IP.Board
Licensed to: Webmasters Online