Results for printreturncode translation from English to German

Computer translation

Trying to learn how to translate from the human translation examples.

English

German

Info

English

printreturncode

German

 

From: Machine Translation
Suggest a better translation
Quality:

Human contributions

From professional translators, enterprises, web pages and freely available translation repositories.

Add a translation

English

German

Info

English

printreturncode ($stmt);

German

printreturncode($stmt);

Last Update: 2018-02-13
Usage Frequency: 1
Quality:

English

?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);?

German

?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);?

Last Update: 2011-10-24
Usage Frequency: 1
Quality:

Warning: Contains invisible HTML formatting

Get a better translation with
7,762,896,709 human contributions

Users are now asking for help:



We use cookies to enhance your experience. By continuing to visit this site you agree to our use of cookies. Learn more. OK