Você procurou por: printreturncode (Inglês - Alemão)

Tradução automática

Tentando aprender a traduzir a partir dos exemplos de tradução humana.

English

German

Informações

English

printreturncode

German

 

De: Tradução automática
Sugerir uma tradução melhor
Qualidade:

Contribuições humanas

A partir de tradutores profissionais, empresas, páginas da web e repositórios de traduções disponíveis gratuitamente

Adicionar uma tradução

Inglês

Alemão

Informações

Inglês

printreturncode ($stmt);

Alemão

printreturncode($stmt);

Última atualização: 2018-02-13
Frequência de uso: 1
Qualidade:

Inglês

?php / / function which prints a formatted error message, / / displaying a pointer to the syntax error in the / / sql statement function printreturncode ($exec_str) {$err = sesam_diagnostic(); $colspan=4; / / 4 cols for: sqlstate, errlin, errcol, rowcount if ($err["errlin"] == -1) --$colspan; if ($err["errcol"] == -1) --$colspan; if ($err["rowcount"] == 0) --$colspan; echo "table border \n"; echo" tr th colspan=".$colspan. "font color=red error: / font". htmlspecialchars($err["errmsg"]). "/ th / tr \n"; if ($err["errcol"] = 0) {echo" tr td colspan=".$colspan. "pre \n"; $errstmt = $exec_str ."\n"; for ($lin=0; $errstmt != ""; ++$lin) {if ($lin != $err["errlin"]) {/ / $lin is less or greater than errlin if (!($i = strchr ($errstmt, "\n"))) $i =""; $line = substr ($errstmt, 0, strlen($errstmt)-strlen($i)+1); $errstmt = substr($i, 1); if ($line != "\n") print htmlspecialchars ($line);} else {if (! ($i = strchr ($errstmt, "\n"))) $i = ""; $line = substr ($errstmt, 0, strlen ($errstmt)-strlen($i)+1); $errstmt = substr($i, 1); for ($col=0; $col $err["errcol"]; ++$col) echo (substr($line, $col, 1) == "\t")? "\t": "."; echo" font color=red blink\\ / blink / font \n"; print "font color=\"#880000\" ".htmlspecialchars($line). "/ font"; for ($col=0; $col $err["errcol"]; ++$col) echo (substr ($line, $col, 1) == "\t")? "\t ":" ."; echo "font color=red blink / / blink / font \n";}} echo" / pre / td / tr \n";} echo "tr \n"; echo" td sqlstate= ". $err["sqlstate"]." / td \n"; if ($err["errlin"] != -1) echo "td errlin=". $err["errlin"]. "/ td \n"; if ($err["errcol"] != -1) echo" td errcol= ". $err["errcol"]." / td \n"; if ($err["rowcount"] != 0) echo "td rowcount=". $err["rowcount"]. "/ td \n"; echo" / tr \n"; echo "/ table \n";} if (!sesam_connect ("mycatalog", "phoneno", "otto")) die ("cannot connect"); $stmt = "select * from phone\n"." where@ lastname='kraemer'\n". "order by firstname"; if (!($result = sesam_query ($stmt))) printreturncode ($stmt);?

Alemão

?php / / function which prints a formatted error message, / / displaying a pointer to the syntax error in the / / sql statement function printreturncode( $exec_str) {$err = sesam_diagnostic(); $colspan=4; / / 4 cols for: sqlstate, errlin, errcol, rowcount if ($err["errlin"] == -1) --$colspan; if ($err["errcol"] == -1) --$colspan; if ($err["rowcount"] == 0) --$colspan; echo "table border \n"; echo" tr th colspan=".$colspan. "font color=red error: / font". htmlspecialchars($err["errmsg"]). "/ th / tr \n"; if ($err["errcol"] = 0) {echo" tr td colspan=".$colspan. "pre \n"; $errstmt = $exec_str ."\n"; for ($lin=0; $errstmt != ""; ++$lin) {if ($lin != $err["errlin"]) {/ / $lin is less or greater than errlin if (! ($i = strchr($errstmt, "\n"))) $i =""; $line = substr($errstmt, 0, strlen($errstmt)-strlen($i)+1); $errstmt = substr($i, 1); if ($line != "\n") print htmlspecialchars($line);} else {if (! ($i = strchr($errstmt, "\n"))) $i = ""; $line = substr($errstmt, 0, strlen($errstmt)-strlen($i)+1); $errstmt = substr($i, 1); for ($col=0; $col $err["errcol"]; ++$col) echo (substr($line, $col, 1) == "\t")? "\t": "."; echo" font color=red blink\\ / blink / font \n"; print "font color=\"#880000\" ".htmlspecialchars($line). "/ font"; for ($col=0; $col $err["errcol"]; ++$col) echo (substr($line, $col, 1) == "\t")? "\t ":" ."; echo "font color=red blink / / blink / font \n";}} echo" / pre / td / tr \n";} echo "tr \n"; echo" td sqlstate= ". $err["sqlstate"]." / td \n"; if ($err["errlin"] != -1) echo "td errlin=". $err["errlin"]. "/ td \n"; if ($err["errcol"] != -1) echo" td errcol= ". $err["errcol"]." / td \n"; if ($err["rowcount"] != 0) echo "td rowcount=". $err["rowcount"]. "/ td \n"; echo" / tr \n"; echo "/ table \n";} if (!sesam_connect("mycatalog", "phoneno", "otto")) die("cannot connect"); $stmt = "select * from phone\n"." where@ lastname='kraemer'\n". "order by firstname"; if (! ($result = sesam_query($stmt))) printreturncode($stmt);?

Última atualização: 2011-10-24
Frequência de uso: 1
Qualidade:

Aviso: contém formatação HTML invisível

Consiga uma tradução melhor através
7,762,822,204 de colaborações humanas

Usuários estão solicitando auxílio neste momento:



Utilizamos cookies para aprimorar sua experiência. Se avançar no acesso a este site, você estará concordando com o uso dos nossos cookies. Saiba mais. OK