Re: [PHP-DB] update problems

2001-04-27 Thread Russ Michell
If I have the right-end of the stick then this is what you want: $dropdown = " --choose one--"; while($row = mysql_fetch_array($result)) { $var = $row['yourcolumn']; $dropdown .= "$var"; }//end while loop $dropdown .= ""; Just replace the name of the column 'yourcolumn' and

[PHP-DB] configure with sybase-ct option

2001-04-27 Thread Lester June Cabrera
I tried to configure PHP4.0.2 with sybase-ct support. But I got this error when running "make install" In file included from internal_functions.c:33: /export/home/lester/php-4.0.2/ext/sybase_ct/php_sybase_ct.h:58: ctpublic.h: No such file or directory I used the following commands:

AW: [PHP-DB] configure with sybase-ct option

2001-04-27 Thread Stefan Siefert
Do you have the sybasect - libraries installed??? You need to have them installed in order to compile PHP succesfully! Also, if you have sybase-ct installed, specify the path with: --with-sybase-ct=/path/to/sybasectlibs Hope this helps, Stefan Siefert -Ursprungliche Nachricht- Von: Lest

Re: AW: [PHP-DB] configure with sybase-ct option

2001-04-27 Thread Lester June Cabrera
You mean I need to install the sybase-ct libraries before I configure PHP? Where can I get them? Thanks, Lester At 10:58 AM 4/27/01 +0200, Stefan Siefert wrote: >Do you have the sybasect - libraries installed??? You need to have them >installed in order to compile PHP succesfully! >Also, if yo

AW: AW: [PHP-DB] configure with sybase-ct option

2001-04-27 Thread Stefan Siefert
Normaly, they are shipped with the database, you try to connect to... but if you don't have them you could get them from: www.php.net/extra/ctlib-linux-elf.tar.gz Stefan Siefert -Ursprungliche Nachricht- Von: Lester June Cabrera [mailto:[EMAIL PROTECTED]] Gesendet: Freitag, 27. April 200

Re: AW: AW: [PHP-DB] configure with sybase-ct option

2001-04-27 Thread Lester June Cabrera
OK. But we're running on Solaris. At 11:11 AM 4/27/01 +0200, Stefan Siefert wrote: >Normaly, they are shipped with the database, you try to connect to... but if >you don't have them you could get them from: >www.php.net/extra/ctlib-linux-elf.tar.gz > >Stefan Siefert > >-Ursprungliche Nachri

AW: AW: AW: [PHP-DB] configure with sybase-ct option

2001-04-27 Thread Stefan Siefert
ok let's see take those: ftp://ftp.metalab.unc.edu/pub/Linux/ALPHA/freetds/freetds-0.51.tgz and compile them... in your configure script of php, you enter --with-sybase-ct=/your/freetds/installpath Greetings, Stefan Siefert -Ursprungliche Nachricht- Von: Lester June Cabrera [ma

[PHP-DB] Where can I find Oracle 7.3 driver for PHP4?

2001-04-27 Thread Dave Harbud
I believe the name of the file is php_oci73.dll, but I've been unable to find an address to download from. -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail

Re: [PHP-DB] Re: [PHP] How can this be done?

2001-04-27 Thread Kelvin
HI, assign another para. and set it up like this $somepara. = addslashes($line); than "insert into trivia(trivia) values ('$line'); that will work Kelvin. "Jack Dempsey" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > http://www.php.net/a

Re: [PHP-DB] Really embarassing newbie question...

2001-04-27 Thread Kelvin
Hi, Use this: $query="describe TableName"; $result=mysql_query($query) or die (mysql_error()); This is one good way to prevent update or delete or mass up the table without known. Kelvin. ""~BD~"" <[EMAIL PROTECTED]> wrote in message 02a601c0ced3$34cdd5a0$22041dd8@winbox">news:02a60

Re: [PHP-DB] I'm using mysql. How can i resolv this error?.

2001-04-27 Thread Kelvin
Hi Sample, $link = mysql_pconnect("localhost","login","pass") or die(mysql_error); if ($link && mysql_select_db("DBname")) { return($link) } Than.your Query here. Kelvin. ""hansol"" <[EMAIL PROTECTED]> wrote in message 9c8n9j$vcs$[EMAIL PROTECTED]">news:9c8n9j$vcs$[EMAIL PROTE

Re: [PHP-DB] Include File Syntax

2001-04-27 Thread Kelvin
Hi, This is a small example to connect the Database. and save as "dedb.inc" And Then, in your php. file Before you start any statement or query. put this on first. OK... Kelvin. ""James McLaughlin"" <[EMAIL PROTECTED]> wrote in message 000801c0ce20$9ab1e900$[EMAIL PROTECTED]">news:000801c

Re: [PHP-DB] file and mail

2001-04-27 Thread Kelvin
Hi Kancha, Try this one. $to=trim($staff[$x]); Kelvin. "kancha" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > Hi all > > I have a text file with email addresses. Each line contains one email > address. I read the file using file() function. Below i

[PHP-DB] Oracle 7 + ODBC + PHP4 + NT?

2001-04-27 Thread David Harbud
I've had no great joy in getting PHP4 to connect to Oracle using native drivers. Can anybody point me in the direction of php_odbc.dll and, ideally, instructions for getting connected via ODBC? If necessary, we could live with using PHP3, if this is easier. David Harbud Chase Information Te

RES: [PHP-DB] Oracle 7 + ODBC + PHP4 + NT?

2001-04-27 Thread Carlos Correa Goncalves
Hi, I´m using Oracle 7 + PHP4 + NT with OCI functions, without ODBC. It works fine and it works faster. Use the OCI functions (see the html help) with the TNS like it is in your tnsnames.ora file (C:\ORAWIN\NETWORK\ADMIN\TNSNAMES.ORA): Bye Carlos > - Mensagem original - > De:

[PHP-DB] MsSQL + PHP

2001-04-27 Thread Schajee Achmad
Hi, Where can I find the MsSQL DB-Libraries? Schajee

[PHP-DB] ibm db2

2001-04-27 Thread Mike Wright
Hi All, I've noticed that IBM is making its DB2 database available for Linux platforms. Does anyone know if there will be PHP support for it? Thank you, Mike Wright -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EM

RE: [PHP-DB] ibm db2

2001-04-27 Thread Andrew Hill
ODBC access to DB/2 works just fine via PHP. For a HOWTO on enabling ODBC in PHP, see www.iodbc.org. Best regards, Andrew -- Andrew Hill - OpenLink Software Director Technology Evangelism Universal Data Access Integration http://www.openlinksw.com > -Orig

[PHP-DB] Apache, PHP, MySQL

2001-04-27 Thread Robert Staph
I'm having a spot of trouble getting the php-mysql-4.0.1pl2-9.i386.rpm package to install. Its a Redhat 7.0 installation with MySQL 3.23.36-1 installed. I'm currently using MySQL with ICRADIUS0.17b so I know that MySQL is installed and working yet I get: rpm -i php-mysql-4.0.1pl2-9.i386.rpm