[PHP-DB] Connecting MSSQL with PHP

2001-11-21 Thread leela devi
Hai Group, I'am to new PHP and I'am struck with connecting to MSSQL . I'am using PHP 4.0.6, PWS with MSSQL Server 7.0. I've followed the instructions given in the configuration file that came with the software. I've copied php_mssql.dll into my windows directory and it is there in the directo

[PHP-DB] Re: [PEAR-DEV] Re: Common DB Abstraction Layer: Re: [PEAR-DEV]Adoption of Metabase

2001-11-21 Thread Joao Prado Maia
On Wed, 21 Nov 2001, Manuel Lemos wrote: > > If we fixed these problems and more, we could talk about having > > a unified API. Otherwise for the Oracle OCI_ASSOC, I would prefer > > not to change it for speed, Manuel would want to provide an emulation > > layer, i would object because it's slow

Re: [PHP-DB] Need Help on "DHTML and PHP"

2001-11-21 Thread MrBaseball34
> > I wrote a program which retrieved Username from DB every 2 or 4= > second. Why every 2 or 4 seconds do you need to retrieve the username? The user is still the same in the session... -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For addi

[PHP-DB] Re: [PEAR-DEV] Re: Common DB Abstraction Layer: Re: [PEAR-DEV] Adoption of Metabase

2001-11-21 Thread Martin Jansen
On Wed, 21 Nov 2001 09:19:44 -0500 (EST), Joao Prado Maia wrote: >If PEAR::DB is not abstracting the database what is the purpose of such a >library ? To ease the life of lot's of programmers. - Martin -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECT

Re: [PHP-DB] Re: [PEAR-DEV] Re: Common DB Abstraction Layer: Re: [PEAR-DEV] Adoption of Metabase

2001-11-21 Thread Pierre-Alain Joye
On Wed, 21 Nov 2001 09:19:44 -0500 (EST) Joao Prado Maia <[EMAIL PROTECTED]> wrote: > > On Wed, 21 Nov 2001, Manuel Lemos wrote: > > > > If we fixed these problems and more, we could talk about having > > > a unified API. Otherwise for the Oracle OCI_ASSOC, I would prefer > > > not to change it

[PHP-DB] Re: Common DB Abstraction Layer

2001-11-21 Thread Tomas V.V.Cox
John Lim wrote: Hi John, > > > > > The only exit I see of the multi abstraction layers problems is trying > > to join all those communities and start a new development from the > > ground. The code is almost all written so only need to glue it to meet > > the specs of the new resultant layer. T

[PHP-DB] Re: Common DB Abstraction Layer: Re: [PEAR-DEV] Adoption of Metabase

2001-11-21 Thread Luc Saint-Elie
En réponse à Joao Prado Maia <[EMAIL PROTECTED]>: > Now for the $15,000 question: does anyone else agree with this ? If > PEAR::DB is not abstracting the database what is the purpose of such a > library ? Well I strongly need thoses $15 000 $ so What is the purpose ? As a "average php use

[PHP-DB] Re: Common DB Abstraction Layer:

2001-11-21 Thread Tomas V.V.Cox
Manuel Lemos wrote: > > Hello, > > John Lim wrote: > > Each designer has a different point of view, like Tomas has > > written a really excellent oci8 "select limit" emulation, but looking > > at the code, it's so complicated that i decided not to incorporate it > > in ADODB because I value simp

[PHP-DB] Re: [PEAR-DEV] Re: Common DB Abstraction Layer: Re: [PEAR-DEV] Adoption of Metabase

2001-11-21 Thread Alexander Merz
>Now for the $15,000 question: does anyone else agree with this ? If >PEAR::DB is not abstracting the database what is the purpose of such a >library ? a) unifed API You havn't to think about the name of the command to send a query, connecting... b) it offers helpful functionality I.e. don't care

Re: [PHP-DB] Persistent Connections

2001-11-21 Thread Joshua Hoover
According to the docs and everything I've seen with PHP and persistent connections, you don't have to close the connection since PHP will simply reuse. Joshua Hoover > Howdy--I have a question about persistent connections and their > behavior: > > Apache 1.3.2 / PHP 4.0.6 - as a module > Win2

[PHP-DB] Re: [PEAR-DEV] Re: Common DB Abstraction Layer: Re: [PEAR-DEV] Adoption of Metabase

2001-11-21 Thread Pierre-Alain Joye
> Well I strongly need thoses $15 000 $ so > > What is the purpose ? > As a "average php user/developper" I don_t really care about the "pure cross > plateform/database issue" but I do care about a standard, clean, secure ("my- > bugs-free") and easy way to use a database, and PEAR::BD + T

[PHP-DB] Checking inserts

2001-11-21 Thread Russ Michell
Hi all: I'm wondering what you guys use as your 'standard' method of checking for repeated inserts. (as opposed to having to cane the database with a 'select' statement when a check needs to be made..) I think I have to use mysql_affected_rows() and/or mysql_insert_id(), unfortunately I don

[PHP-DB] Re: Common DB Abstraction Layer: Re: [PEAR-DEV] Adoption of Metabase

2001-11-21 Thread Luc Saint-Elie
En réponse à Pierre-Alain Joye <[EMAIL PROTECTED]>: > This definition defines more a common interface to connect to a db, > execute queries, fetch the result and eventually gives errors reports > ;). Somehow yes (do I still win the $15,000 ???) > IMO, the need of a real abstraction layer is no

[PHP-DB] problems with mysql_close inside classes and functions

2001-11-21 Thread Matthias Pretzer
Hi there, we use a wrapper class to access a mysql db with php-4.0.6 running in Apache/Linux and mysql-3.23.40. We ran into the following problem: Assume the following test code (sorry - rather long): -[ test code ]-- reader,$this->writer); ( $this->writer = mysql_co

[PHP-DB] Re: [PEAR-DEV] Re: Common DB Abstraction Layer: Re: [PEAR-DEV]Adoption of Metabase

2001-11-21 Thread Joao Prado Maia
On Wed, 21 Nov 2001, Martin Jansen wrote: > On Wed, 21 Nov 2001 09:19:44 -0500 (EST), Joao Prado Maia wrote: > > >If PEAR::DB is not abstracting the database what is the purpose of such a > >library ? > > To ease the life of lot's of programmers. > I probably used a bad choice of words. What I

Re: [PHP-DB] Re: Common DB Abstraction Layer: Re: [PEAR-DEV] Adoption of Metabase

2001-11-21 Thread Pierre-Alain Joye
On Wed, 21 Nov 2001 16:14:04 +0100 (MET) Luc Saint-Elie <[EMAIL PROTECTED]> wrote: > En réponse à Pierre-Alain Joye <[EMAIL PROTECTED]>: > > > > This definition defines more a common interface to connect to a db, > > execute queries, fetch the result and eventually gives errors reports > > ;).

Re: [PHP-DB] Re: [PEAR-DEV] Re: Common DB Abstraction Layer: Re: [PEAR-DEV] Adoption of Metabase

2001-11-21 Thread Pierre-Alain Joye
> I probably used a bad choice of words. What I really meant was: What is > the objective of PEAR::DB as a database abstraction library ? To abstract > as much as possible like Metabase already does, or to provide a unified > API to databases and leave the implementation related to database specif

[PHP-DB] Re: Common DB Abstraction Layer: Re: [PEAR-DEV] Adoption of Metabase

2001-11-21 Thread l0t3k
John, in addition to the list you posted, there's - inconsistent/incomplete metadata support. it would be nice, for example if the MySQL extension would be more precise about a field type than "string", etc i tried hard and failed to describe why i'd want to start a C based DB library, an

Re: [PHP-DB] Newbie question - other way than insert statement?

2001-11-21 Thread Daniel Schwab
ok, thnx > No, but SQL is your friend *lol* greez daniel -- 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: [EMAIL PROTECTED]

[PHP-DB] Re: [PEAR-DEV] Re: Common DB Abstraction Layer:

2001-11-21 Thread Tomas V.V.Cox
On Wednesday 21 November 2001 16:24, Joao Prado Maia wrote: > On Wed, 21 Nov 2001, Martin Jansen wrote: > > On Wed, 21 Nov 2001 09:19:44 -0500 (EST), Joao Prado Maia wrote: > > >If PEAR::DB is not abstracting the database what is the purpose of > > > such a library ? > > > > To ease the life of lo

[PHP-DB] Intro to PEAR:DB

2001-11-21 Thread Paul Meagher
> >Now for the $15,000 question: does anyone else agree with this ? If > >PEAR::DB is not abstracting the database what is the purpose of such a > >library ? I would suggest that Alexander's list of reasons for using PEAR:DB should be written up in some introductory section to the manual for PEAR

[PHP-DB] Re: php/mysql error

2001-11-21 Thread Fred
The error indicates that the result resource is invalid. The result resource in your example is $rs. Either this is not the variable that you used when sending the query or something went wrong with the query. You should always add "or die(mysql_error) to the end of your mysql_query statements,

Re: [PHP-DB] PostgreSql query help....

2001-11-21 Thread GB Clark II
On Monday 19 November 2001 20:27, Vincent Ma wrote: > Hi everybody: > > I would like to ask why the error occur when retrieve current sequence > number. Eg. "select currval('student_id_seq')" is not working, and warning > prompt "student_id_seq.currval is not yet defined in this session". > > H

[PHP-DB] unixODBC Question/Problem

2001-11-21 Thread Eric Liedtke
I am running PHP/Apache. I have installed unixODBC and inlinks tds driver. I can succesfully connect and query an MS SQL db from the isql command line testing tool provided with unixODBC. I recompiled php with unixODBC support and it compiled and installed without a problem. So it was onto wri

[PHP-DB] Authenticate problem

2001-11-21 Thread Harpreet
Dear list members, I have login page which passes the user name to the next screen. If the user is correct i want to direct him to the actual application. If not right then i want to display a notlogged page. I am doing the following. http://192.168.200.98/frame_main.htm";); } else { header("

[PHP-DB] Problem with my Car DB

2001-11-21 Thread Lynn Geise
Can someone give me the code to make the db display 10 cars per page then make another page with the links below the car for the next page youc na see the car db here so far http://www.games-are-forever.com/phpadmin/cardisplay.php -- PHP Database Mailing List (http://www.php.net/) To unsubscri

[PHP-DB] Re: Problem with my Car DB

2001-11-21 Thread Fred
just add "LIMIT N,R" to your SELECT statement where N is the row you want to start with and R is the number of rows you want to fetch. The first row is 0 so if you want to fetch 10 cars per page make R 10 and make N a variable. Pass 0 to N on the first pass, then put links on your page for NEXT

[PHP-DB] Database help needed

2001-11-21 Thread Chris Payne
Hi there everyone, This may sound like an odd question and something that I should know, but ... I need to display results by amount - for example, for all properties which are either or between 450,000 and 500,000 (For example) - how using PHP and MySQL do I get it to display 450,000, 50,

RE: [PHP-DB] Database help needed

2001-11-21 Thread Beau Lebens
should be able to do something like SELECT whatever FROM whereever WHERE value<='50' AND value>='45' is that what you are looking for? // -Original Message- // From: Chris Payne [mailto:[EMAIL PROTECTED]] // Sent: Thursday, 22 November 2001 3:11 PM // To: [EMAIL PROTECTED] // Su

Re: [PHP-DB] Database help needed

2001-11-21 Thread Jason Wong
> This may sound like an odd question and something that I should know, > but ... > > I need to display results by amount - for example, for all properties > which are either or between 450,000 and 500,000 (For example) - how > using PHP and MySQL do I get it to display 450,000, 50,000 and al

[PHP-DB] Table Locking...

2001-11-21 Thread Ashley M. Kirchner
(PHP-DB folks, ignore this top question - unless you want to answer) Which type of DB/Table provides table locking while a process is altering data? I don't care for locking while using SELECTs, but I do need locking when something's being INSERTed or UPDATEd, so I won't get two process

[PHP-DB] Re: Newbie Question

2001-11-21 Thread Lee Willmann
Ok, I think I have the solution to your problem. Try using nl2br() on the data in that field.. Example: I have a message table that allows one user to send an instant message to another user on my site. There are several fields, one of which being a TEXT column (MySQL db). I use a simple textare