您搜索了: printreturncode (英语 - 德语)

计算机翻译

尝试学会如何从人工翻译例句找到译文。

English

German

信息

English

printreturncode

German

 

从: 机器翻译
建议更好的译文
质量:

人工翻译

来自专业的译者、企业、网页和免费的翻译库。

添加一条翻译

英语

德语

信息

英语

printreturncode ($stmt);

德语

printreturncode($stmt);

最后更新: 2018-02-13
使用频率: 1
质量:

英语

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

德语

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

最后更新: 2011-10-24
使用频率: 1
质量:

警告:包含不可见的HTML格式

获取更好的翻译,从
7,760,128,602 条人工翻译中汲取

用户现在正在寻求帮助:



Cookie 讓我們提供服務。利用此服務即表示你同意我們使用Cookie。 更多資訊。 確認