From: Alexey Morsov <samurai@ricom.ru> To: community@altlinux.ru Subject: Re: [Comm] Программирование на PHP. Date: Mon, 24 May 2004 10:41:43 +0400 Message-ID: <40B19927.1060007@ricom.ru> (raw) In-Reply-To: <40B18708.9090807@krasmail.ru> Shushenskoe USZN wrote: > Здравствуйте, Всем. > > Я только осваиваю сабж, в связи с чем просьба к знающим. > Помогите разобраться с формой для редактирования записи в таблице > postgreSQL`я (showedit.php). > Использую Apache+postgreSQL+php. > Showno.php отображает данные без содержимого в поле otmetka. > Из него вызывается showedit.php, в котором можно было бы внести исправления > и(или) проставить данные в поле otmetka. Но последний не отрабатывает, а > ошибку вывить я > не могу, т.к. не знаю как все это "живет". > ( Скрипты эти скачал из phpclub`а и пробую подогнать под свои условия.) Ну во-первых попробуй заменить: $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 ... $++; } А вообще посмотри доки к php - их есть и даже на русском и там все довольно прозрачно - просто у меня нет Postgres - у меня mysql - так что конкретикой помочь не смогу > > В аттаче -- мои PHP`шки. > > Заранее благодарю. > > > ------------------------------------------------------------------------ > > _______________________________________________ > Community mailing list > Community@altlinux.ru > http://lists.altlinux.ru/mailman/listinfo/community -- Всего наилучшего, Системный Администратор ЗАО "ИК "РИКОМ-ТРАСТ" Алексей Морсов http://www.ricom.ru http://www.fondmarket.ru
next prev parent reply other threads:[~2004-05-24 6:41 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 [this message] 2004-05-25 3:35 ` Shushenskoe USZN 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=40B19927.1060007@ricom.ru \ --to=samurai@ricom.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