Вы искали: 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,793,406,626 пользователей

Сейчас пользователи ищут:



Для Вашего удобства мы используем файлы cookie. Факт перехода на данный сайт подтверждает Ваше согласие на использование cookies. Подробнее. OK