Forum poświęcone PHP
Mam taki problem. Mam trzy pola z datami: data1,data2,data3 Jak teraz napisze zapytanie: SELECT 'data1: ' || data1 || ' data2: ' || data2 || ' data3 ' || data3 To jeśli istnieją wszystkie trzy daty to wpis sie pokazuje a jeśli nie ma jakiejkolwiek daty to wtedy nie pokazują się pozostałe. Co można na to poradzić ?
Tue,18 Nov 2008 11:59:42 +0100
Mój kod który wypisuje tabele według wybranej wartości kolumny w drugiej tabeli private void dataGridView1_CellClick(object sender, DataGridViewCellEventArgs e) { string Polaczenie; Polaczenie = "Password=northwind;User ID=northwind;" + "Initial Catalog=Northwind;" + "Data Source=.\SQLEXPRESS"; SqlConnection objConn = new SqlConnection(Polaczenie); objConn.Open(); string idKlienta = (string)(((DataGridView)sender)[0, e.RowIndex].Value); SqlDataAdapter daOrders = new SqlDataAdapter("Select * from Orders where CustomerID" + idKlienta, objConn); DataSet dsNorthwind = new DataSet("Northwind"); daOrders.FillSchema(dsNorthwind, SchemaType.Source, "Orders"); daOrders.Fill(dsNorthwind, "Orders"); DataTable tabOrders; tabOrders = dsNorthwind.Tables["Orders"]; DataView widok = new DataView(); widok.Table = tabOrders; this.dataGridView2.DataSource = widok; } wyskakuje mi błąd jak wybieram następny wiersz przy daOrders.FillSchema(dsNorthwind, SchemaType.Source, "Orders"); treści An expression of non-boolean type specified in a context where a condition is expected, near 'SET'.
Tue,18 Nov 2008 11:47:00 +0100
Mam kontener z position: relative, a w nim 2 divy z position: absolute. Muszę coś zrobić, żeby kontener rozciągał się na wysokość taką, jaką osiągną divy w nim. Jak to można zrobić? #kontener { position: relative; width: 100%; } #main-text { position: absolute; left: 0px; right: 300px; padding: 20px 12px 20px 12px; } #sidebar { position: absolute; right: 0px; width: 300px; top: 0px; bottom: 0px; }
Tue,18 Nov 2008 11:45:28 +0100
mam takie zadanie do zrobienia: (...) zdefiniuj klasę zagnieżdżoną Zalacznik o polu typ typu string i next typu wskaźnik do Zalacznik, następnie w klasie Wiadomosc dodaj pole zalaczniki (wskaźnik do Zalacznik), które będzie listą zalączników do wiadomości. (...) zdefiniuj metodę wypiszZalaczniki() przebiegającą listę i wypisującą kolejne jej elementy, wykorzystaj ją w metodzie wypisz() (....) i mam już klasę Zalacznik w klasie Wiadomosc, itp itd. (...) class Wiadomosc{ (...) class Zalacznik { (...) private: Zalacznik *next; (...) } (...) Zalacznik *zalaczniki // niby ma być to lista zalacznikow (...) } ja nie bardzo się łapie czy to tak ma wyglądać :/ oczywiście nie chce się to kompilować a błędu nie umiem rozwiązać ;/ ;/ mógłyb mi ktoś podsunąć jak należy to rozwiąząć? +ta funkcja co przebiega i wypisuje załączniki... //edit w konstruktorze klasy Wiadomosc dodałem coś takiego: zalaczniki=new Zalacznik; zalaczniki=Zalacznik::next ale znowuż wywala sie w klasie Zalacznik :/ // edit a czy nie lepiej było by zrobić coś a'la kolejka na wskaźnikach ?? i potem ją tylko wsadzić w te klasy?
Tue,18 Nov 2008 11:29:50 +0100
Jak połączyć button z tym że wybieram wiersz w DataGridView? Musze stworzyć okienko które by pokazywało zawartość całej zaznaczonej przeze mnie linijki w Datagridzie.
Tue,18 Nov 2008 11:22:01 +0100
Dodatek F. Configure options
- Spis treści
- List of core configure options
List of core configure options
Below is a partial list of configure options used by the PHP configure scripts when compiling in Unix-like environments. Most configure options are listed in their appropriate locations on the extension reference pages and not here. For a complete up-to-date list of configure options, run ./configure --help in your PHP source directory after running autoconf (see also the Installation chapter). You may also be interested in reading the GNU configure documentation for information on additional configure options such as --prefix=PREFIX.
Notatka: These are only used at compile time. If you want to alter PHP's runtime configuration, please see the chapter on Runtime Configuration.
Configure Options in PHP 4
Notatka: These options are only used in PHP 4 as of PHP 4.1.0. Some are available in older versions of PHP 4, some even in PHP 3, some only in PHP 4.1.0. If you want to compile an older version, some options will probably not be available.
Misc options
--enable-debugCompile with debugging symbols.
--with-layout=TYPESets how installed files will be laid out. Type is one of PHP (default) or GNU.
--with-pear=DIRInstall PEAR in DIR (default PREFIX/lib/php).
--without-pearDo not install PEAR.
--enable-sigchildEnable PHP's own SIGCHLD handler.
--disable-rpathDisable passing additional runtime library search paths.
--enable-libgccEnable explicitly linking against libgcc.
--enable-php-streamsInclude experimental PHP streams. Do not use unless you are testing the code!
--with-zlib-dir[=DIR]Define the location of zlib install directory.
--enable-trans-sidEnable transparent session id propagation. Only valid for PHP 4.1.2 or less. From PHP 4.2.0, trans-sid feature is always compiled.
--with-tsrm-pthreadsUse POSIX threads (default).
--enable-shared[=PKGS]Build shared libraries [default=yes].
--enable-static[=PKGS]Build static libraries [default=yes].
--enable-fast-install[=PKGS]Optimize for fast installation [default=yes].
--with-gnu-ldAssume the C compiler uses GNU ld [default=no].
--disable-libtool-lockAvoid locking (might break parallel builds).
--with-picTry to use only PIC/non-PIC objects [default=use both].
--enable-memory-limitCompile with memory limit support.
--disable-url-fopen-wrapperDisable the URL-aware fopen wrapper that allows accessing files via HTTP or FTP.
--enable-versioningExport only required symbols. See INSTALL for more information.
--with-imsp[=DIR]Include IMSp support (DIR is IMSP's include dir and libimsp.a dir). PHP 3 only!
--with-mck[=DIR]Include Cybercash MCK support. DIR is the cybercash mck build directory, defaults to /usr/src/mck-3.2.0.3-linux for help look in extra/cyberlib. PHP 3 only!
--with-mod-dav=DIRInclude DAV support through Apache's mod_dav, DIR is mod_dav's installation directory (Apache module version only!) PHP 3 only!
--enable-debuggerCompile with remote debugging functions. PHP 3 only!
--enable-versioningTake advantage of versioning and scoping provided by Solaris 2.x and Linux. PHP 3 only!
PHP options
--enable-maintainer-modeEnable make rules and dependencies not useful (and sometimes confusing) to the casual installer.
--with-config-file-path=PATHSets the path in which to look for php.ini, defaults to PREFIX/lib.
--enable-safe-modeEnable safe mode by default.
--with-exec-dir[=DIR]Only allow executables in DIR when in safe mode defaults to /usr/local/php/bin.
--enable-magic-quotesEnable magic quotes by default.
--disable-short-tagsDisable the short-form <? start tag by default.
SAPI options
The following list contains the available SAPI&s (Server Application Programming Interface) for PHP.
--with-aolserver=DIRSpecify path to the installed AOLserver.
--with-apxs[=FILE]Build shared Apache module. FILE is the optional pathname to the Apache apxs tool; defaults to apxs. Make sure you specify the version of apxs that is actually installed on your system and NOT the one that is in the apache source tarball.
--with-apache[=DIR]Build a static Apache module. DIR is the top-level Apache build directory, defaults to /usr/local/apache.
--with-mod_charsetEnable transfer tables for mod_charset (Russian Apache).
--with-apxs2[=FILE]Build shared Apache 2.0 module. FILE is the optional pathname to the Apache apxs tool; defaults to apxs.
--with-caudium=DIRBuild PHP as a Pike module for use with Caudium. DIR is the Caudium server dir, with the default value /usr/local/caudium/server.
--disable-cliAvailable with PHP 4.3.0. Disable building the CLI version of PHP (this forces --without-pear). More information is available in the section about Using PHP from the command line.
--enable-embed[=TYPE]Enable building of the embedded SAPI library. TYPE is either shared or static, which defaults to shared. Available with PHP 4.3.0.
--with-fhttpd[=DIR]Build fhttpd module. DIR is the fhttpd sources directory, defaults to /usr/local/src/fhttpd. No longer available as of PHP 4.3.0.
--with-isapi=DIRBuild PHP as an ISAPI module for use with Zeus.
--with-nsapi=DIRSpecify path to the installed Netscape/iPlanet/SunONE Webserver.
--with-phttpd=DIRNo information yet.
--with-pi3web=DIRBuild PHP as a module for use with Pi3Web.
--with-roxen=DIRBuild PHP as a Pike module. DIR is the base Roxen directory, normally /usr/local/roxen/server.
--enable-roxen-ztsBuild the Roxen module using Zend Thread Safety.
--with-servlet[=DIR]Include servlet support. DIR is the base install directory for the JSDK. This SAPI requires the java extension must be built as a shared dl.
--with-thttpd=SRCDIRBuild PHP as thttpd module.
--with-tux=MODULEDIRBuild PHP as a TUX module (Linux only).
--with-webjames=SRCDIRBuild PHP as a WebJames module (RISC OS only)
--disable-cgiDisable building CGI version of PHP. Available with PHP 4.3.0.
--enable-force-cgi-redirectEnable the security check for internal server redirects. You should use this if you are running the CGI version with Apache.
--enable-discard-pathIf this is enabled, the PHP CGI binary can safely be placed outside of the web tree and people will not be able to circumvent .htaccess security.
--with-fastcgiBuild PHP as FastCGI application. No longer available as of PHP 4.3.0, instead you should use
--enable-fastcgi.--enable-fastcgiIf this is enabled, the CGI module will be built with support for FastCGI also. Available since PHP 4.3.0
--disable-path-info-checkIf this is disabled, paths such as /info.php/test?a=b will fail to work. Available since PHP 4.3.0. For more information see the Apache Manual.
| Poprzedni | Spis treści | Następny |
| Debugger Protocol | Początek rozdziału | php.ini directives |