Jump to content
Fórum Script Brasil
  • 0

Ajuda Me


black power

Question

tah dando essa mensagem me ajude,

Warning: odbc_exec(): SQL error: [unixODBC][MySQL][ODBC 3.51 Driver][mysqld-4.0.20-standard-log]You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'WHERE (ID=82')' at line 11, SQL state 37000 in SQLExecDirect in /var/www/htdocs/intranet/sa/dvh/selecao/cadastro_estagiario/CadSegundoPasso.php on line 57

Erro 404 - Erro ao Inserir os dados.

<?php

include_once("inc/db.inc");

$SQL2 = "SELECT * FROM I_CADASTRO_ESTAGIARIO

WHERE (ID = '$ID')";

$ret2 = odbc_exec($conn,$SQL2);

$row2 = odbc_fetch_array($ret2);

$previsaotermino = strtoupper($_POST['cboTerminoCurso]); //termino curso

$periodode = strtoupper($_POST['txtPeridoDe']);

$semestre = strtoupper($_POST['cboSemestre']);

//parte estagio da prefeitura

include_once("inc/cdata.inc");

$periodode = strtoupper($_POST['txtPeridoDe']);

$periodode = c_data($periodode);

//estagio sim ou não?

$anoterminoEstagio = strtoupper($_POST['cboAnoTerminoEstagio']);

$orgao = strtoupper($_POST['txtOrgao']);

$SQL1 = "UPDATE I_CADASTRO_ESTAGIARIO

SET

TURNO_LIVRE = '$_POST[cboTurnoLivre]',

ESTAGIOU = '$_POST[cboEstagioPrefeitura]',

PREVISAO_TERMINO = '$cboTerminoCurso',

NO_ORGAO = '$orgao',

SEMESTRE = '$semestre',

NO_PERIODO_DE ='$periodode',

EM_QUE_ANO_PREFEITURA = '$anoterminoEstagio',

NO_PERIODO_DE = '$periodode',

WHERE (ID='$ID')";

$ret1 = odbc_exec($conn,$SQL1) or die("Erro 404 - Erro ao Inserir os dados.");

//echo "$periodode";

header("Location:TerceiroPasso.php?ok=1&ID=$ID");

?>

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



  • Forum Statistics

    • Total Topics
      152k
    • Total Posts
      651.5k
×
×
  • Create New...