Re: [PHP-DB] Include File Syntax

2001-04-27 Thread Vlad
Hi Format of included files is the same as original .php file.:) When you include .php file it is the same as you copy that file in your main .php file in that place. This is my first time programming with PHP. I have seen include files in the beginning of a php block and wonder is there a

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 = form method=\post\ action=\somescript.php\ select name=\yourselect\ option value=\selected\--choose one--/option; while($row = mysql_fetch_array($result)) { $var = $row['yourcolumn']; $dropdown .= option

[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:

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

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

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]...

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

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 PROTECTED]... This

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 is a

[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

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): ?php putenv(ORACLE_SID=sidname);

[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:

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

[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

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

2001-04-27 Thread Beau Lebens
you need to use the addslashes() command which will escape the quote mark for you, so something like $query=insert into trivia (trivia) values (' . addslashes($line) . '); however, you will find that on a machine which is configured with magic_quotes_gpc turned on, you will end up with

[PHP-DB] How can this be done?

2001-04-27 Thread Subodh Gupta
Hi All, I created a table using the create command. create table trivia ( entry_id integer not null auto_increment, trivia text null ); Now I have a fle tvia.txt, the content of which are as follows: The average person's left hand does 56% of the typing. The longest one-syllable

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

2001-04-27 Thread Jack Dempsey
http://www.php.net/addslashes -jack Subodh Gupta wrote: Hi All, I created a table using the create command. create table trivia ( entry_id integer not null auto_increment, trivia text null ); Now I have a fle tvia.txt, the content of which are as follows: The