From: Shushenskoe USZN <szn59@krasmail.ru>
To: community@altlinux.ru
Subject: Re: [Comm] Программирование на PHP.
Date: Tue, 25 May 2004 11:35:49 +0800
Message-ID: <40B2BF15.3080502@krasmail.ru> (raw)
In-Reply-To: <40B19927.1060007@ricom.ru>
Alexey Morsov пишет:
> Shushenskoe USZN wrote:
...............
> Ну во-первых попробуй заменить:
> $i = 0;
> while ($i < $num) {
> $row = pg_fetch_array($sql_result, $i);
> на:
> $i=0;
> while ($row = pg_fetch_array($sql_result, $i, PGSQL_ASSOC)) {
> echo $row["your_field"] // зачем заводить новые переменные?
> echo ...
> $++;
> }
Мне же надо, чтобы эти данные отображались в хтмл-форме, тогда
будет, наверное,
так ?
$i = 0;
while ($row = pg_fetch_array($sql_result, $i, PGSQL_ASSOC)) {
echo "<TR>
<TD>"echo $row["date_in"]"</TD>
<TD>"echo $row["sender"]"</TD>
<TD>"echo $row["name_file"]"</TD>
<TD>"echo $row["date_out"]"</TD>
<TD>"echo $row["number_out"]"</TD>
<TD>"echo $row["opisanie"]"</TD>
<TD><a
href=\"showedit.php?nn=$nn&date_in=$date_in&number_out=$number_out&opisanie=$opisanie&sender=$sender&date_out=$date_out&otmetka=$otmetka&name_file=$name_file\">Edit</a></TD>
</TR>
";
$i++;
}
Но и это не работает. Что не правильно ?
> А вообще посмотри доки к php - их есть и даже на русском и там все
> довольно прозрачно - просто у меня нет Postgres - у меня mysql - так что
> конкретикой помочь не смогу
Доки в основном на английском, а те что на русском, поверхностны.
(Читал на www.php.net/manual/ru...)
Собираюсь приобрести книгу о PHP, видел на www.books.ru две:
1. Профессиональное PHP программирование, 2-е издание
Аргерих Л., Чой В., Коггсхол Д., Эгервари К., Сколло К.
2. Разработка WEB- приложений на PHP и PostgreSQL: Руководство
разработчика и администратора
Гешвинде Э., Шенинг Г.
Пока не выбрал . Может кто посоветует, какая лучше ?
--
Астапкевич Владислав
Заведующий отделом ИТО
Шушенское УСЗН e-mail: szn59@krasmail.ru
-----------------------------
next prev parent reply other threads:[~2004-05-25 3:35 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-05-24 5:24 Shushenskoe USZN
2004-05-24 6:41 ` Alexey Morsov
2004-05-25 3:35 ` Shushenskoe USZN [this message]
2004-05-25 4:10 ` StDog
2004-05-25 4:14 ` StDog
2004-05-25 4:51 ` crux
2004-05-25 6:03 ` Shushenskoe USZN
2004-05-26 6:44 ` Alexey Morsov
2004-05-27 6:37 ` Shushenskoe USZN
2004-05-27 7:18 ` Alexey Morsov
2004-05-28 3:17 ` Shushenskoe USZN
2004-05-28 6:07 ` Alexey Morsov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=40B2BF15.3080502@krasmail.ru \
--to=szn59@krasmail.ru \
--cc=community@altlinux.ru \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
ALT Linux Community general discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
public-inbox-index community
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.community
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git