|
View Poll Results: Выбери свой создательський Веб-Микс? | |||
HTML or/and DHTML | 141 | 62.39% | |
MySQL or/and PostgreeSQL or txtSQL | 72 | 31.86% | |
JAVA Script | 80 | 35.40% | |
JAVA | 53 | 23.45% | |
PHP | 98 | 43.36% | |
ASP | 18 | 7.96% | |
Perl | 25 | 11.06% | |
VBScript | 18 | 7.96% | |
Другой статический язык программирования | 21 | 9.29% | |
Другой динамический язык программирования | 37 | 16.37% | |
Multiple Choice Poll. Ті, хто голосували: 226. You may not vote on this poll |
|
Опції теми | Опції перегляду |
26-05-2007, 19:25 | #911 |
Юзер
|
А кто может сказать алгоритм автоматической работы с Вебмани? Какие должны быть требования, может кто делал подобное?
__________________
GoD Я переконаний, що, на моє глибоке переконання, без сумніву! (c) Ющенко |
27-05-2007, 02:14 | #912 | |
Читатель
|
Цитата:
Request received, continuing process. 100 Continue 101 Switching Protocols 102 Processing (WebDAV) * 2xx Success The action was successfully received, understood, and accepted. 200 OK Standard response for HTTP successful requests. 201 Created 202 Accepted 203 Non-Authoritative Information (since HTTP/1.1) 204 No Content 205 Reset Content 206 Partial Content 207 Multi-Status (WebDAV) The message body that follows is an XML message and can contain a number of separate response codes, depending on how many sub-requests were made. * 3xx Redirection The client must take additional action to complete the request. 300 Multiple Choices 301 Moved Permanently This and all future requests should be directed to another URI. 302 Found This is the most popular redirect code, but also an example of industrial practice contradicting the standard. HTTP/1.0 specification (RFC 1945) required the client to perform a temporary redirect (the original describing phrase was "Moved Temporarily"), but popular browsers implemented it as a 303 See Other. Therefore, HTTP/1.1 added status codes 303 and 307 to disambiguate between the two behaviors. However, majority of Web applications and frameworks still use the 302 status code as if it were the 303. 303 See Other (since HTTP/1.1) The response to the request can be found under another URI using a GET method. 304 Not Modified Indicates the request URL has not been modified since last requested. Typically, the HTTP client provides a header like the If-Modified-Since header to provide a time with which to compare against. Utilizing this saves bandwidth and reprocessing on both the server and client. 305 Use Proxy (since HTTP/1.1) Many HTTP clients (such as Mozilla and Internet Explorer) don't correctly handle responses with this status code. 306 Switch Proxy No longer used. 307 Temporary Redirect (since HTTP/1.1) In this occasion, the request should be repeated with another URI, but future requests can still be directed to the original URI. In contrast to 303, the original POST request must be repeated with another POST request. * 4xx Client Error The request contains bad syntax or cannot be fulfilled. 400 Bad Request 401 Unauthorized Similar to 403 Forbidden, but specifically for use when authentication is possible but has failed or not yet been provided. See basic authentication scheme and digest access authentication. 402 Payment Required The original intention was that this code might be used as part of some form of digital cash or micropayment scheme, but that has not happened, and this code has never been used. 403 Forbidden The request was a legal request, but the server is refusing to respond to it. Unlike a 401 Unauthorised response, authenticating will make no difference. 404 Not Found 405 Method Not Allowed 406 Not Acceptable 407 Proxy Authentication Required 408 Request Timeout 409 Conflict 410 Gone Indicates that the resource requested is no longer available and will not be available again. This should be used when a resource has been intentionally removed; however, in practice, a 404 Not Found is often issued instead. 411 Length Required 412 Precondition Failed 413 Request Entity Too Large 414 Request-URI Too Long 415 Unsupported Media Type 416 Requested Range Not Satisfiable 417 Expectation Failed 422 Unprocessable Entity (WebDAV) (RFC 2518) The request was well-formed but was unable to be followed due to semantic errors. 423 Locked (WebDAV)(RFC 2518) The resource that is being accessed is locked 424 Failed Dependency (WebDAV) (RFC 2518) The request failed due to failure of a previous request (e.g. a PROPPATCH). 425 Unordered Collection Defined in drafts of WebDav Advanced Collections but not yet implemented. 426 Upgrade Required (RFC 2817) The client should switch to TLS/1.0. 449 Retry With A Microsoft extension: The request should be retried after doing the appropriate action. * 5xx Server Error The server failed to fulfill an apparently valid request. 500 Internal Server Error 501 Not Implemented 502 Bad Gateway 503 Service Unavailable 504 Gateway Timeout 505 HTTP Version Not Supported 506 Variant Also Negotiates (RFC 2295) 507 Insufficient Storage (WebDAV) 509 Bandwidth Limit Exceeded
__________________
А ссоци аци я реги ональных. Би бл и отечных кон сор ци умов Я верю в чесность президента,и в неподкупность постовых, в заботу банков о клиентах, в русалок верю, в домовых |
|
28-05-2007, 12:23 | #913 |
Фанат
Реєстрація: Jan 2007
Повідомлення: 469
|
как делать постраничную навигацию?у меня в базе 100 записей, нужно чтобы они выводились 10 на 1 страницу
|
28-05-2007, 17:04 | #914 |
Фанат
Реєстрація: Jan 2007
Повідомлення: 469
|
что тут неправильно, пожалуйста ответьте
PHP код:
|
29-05-2007, 17:03 | #915 | |
Гигант мысли
|
Цитата:
$sql=mysql_query("SELECT * FROM gb"); $count_rec=mysql_num_rows($sql); $total_page=ceil($count_rec/$gb_max_rec); if(!isset($gb_page) or $gb_page>$total_page) { $gb_page=1; } $first_rec=($gb_max_rec*$gb_page)-$gb_max_rec; // 2 if(mysql_num_rows($sql)==0) { print "База порожня."; } $sql=mysql_query("SELECT * FROM gb ORDER BY id DESC LIMIT $first_rec,$gb_max_rec"); while($row=mysql_fetch_array($sql)) { print " <table border=0 width=100% title='Номер запису $row[id]'> <tr><td width=20% valign=top bgcolor=F8EFC2 class=font> <span title='Автор'>Автор : <b>".$row["name"]."</b></span><br> <span title='Дата'>Дата : ".$row["date"]."</span><br>"; print "</td><td valign=top bgcolor=FFFAE1>".smiles_replace($row["text"])."</td></tr> </table> <br> "; } if($count_rec!=0) { print "<br><br><br>Сторінка : <b>$gb_page</b> з <b>$total_page</b><br>"; if($gb_page!=1) print "<a href='?mod=$mod&gb_page=1' title='Перша сторінка'><<</a> ... "; $back_page=$gb_page-1; $next_page=$gb_page+1; if($back_page!=0){print " <a href='?mod=$mod&gb_page=$back_page' title='Попередня сторінка'> $back_page</a>";} print " <b>$gb_page </b>"; $ttotal_page=$total_page+1; if($next_page!=$ttotal_page){print " <a href='?mod=$mod&gb_page=$next_page' title='Наступна сторінка'>$next_page</a> ";} if($gb_page!=$total_page) print " ... <a href='?mod=$mod&gb_page=$total_page' title='Останя сторінка : $total_page'> >></a>"; print "<br><br>Загальна кількість записів : <b>$count_rec</b>"; ?> короче подрихитуешь под себя.... |
|
29-05-2007, 17:05 | #916 |
Гигант мысли
|
тож вопрос есть...
есть БД в ней , предположим, тоже 100 записей. как сделать, что б все записи выводились не в один столбик, а в несколько (2,3 или больше) ? |
29-05-2007, 21:09 | #917 |
Читатель
|
Ну.. мабуть робиш таблицю (хтмл, себто, не в БД), потім читаєш відповідь на запит до БД: перші 50 в ліву половину таблиці, решту — праворуч.
__________________
Перегляд-А : моя програмка для обліку вашої колекції аніме! Незабаром в новому випуску зображення до аніме. Мій блоґ про моделювання: Клей і пластмаса |
29-05-2007, 22:32 | #918 | |
Гигант мысли
|
Цитата:
вот на пример: мне нужно выводить данные в 20 столбиков. эт нужно для каждого писать свой SQL - запрос....потом, если я делаю всякие там хрени, фон и кантики и тд. , и захочу изменить фон, то мне прийдется менять его всех 20 запросах... ПыСы. еще вопрос.... как сделать, что б данные выводили в столбик (один) , форматировались таблицей и, что б у записей фон чередовался... например. одна запись с серым фоном, а следующая с темно-серым, потом опять просто с сеерым, и потом с темно-серым и тд. |
|
30-05-2007, 00:10 | #919 |
Читатель
|
БД взагалі ніякого відношення немає до того, як виглядає сама сторінка, на якій зображені ці дані. СКуЛ нічого ж не малює, вже після того як ти отримав відповідь на запит маєш сам потурбуватися про те, як відображати результати (тобто кількість стовпчиків, фон, малюночки).
__________________
Перегляд-А : моя програмка для обліку вашої колекції аніме! Незабаром в новому випуску зображення до аніме. Мій блоґ про моделювання: Клей і пластмаса |
30-05-2007, 02:52 | #920 |
Гигант мысли
|
Кто в У нас в Виннице или хотя б Украине занимается дизайном форумов? За деньги естественно.
|
|
|