[PHP-DB] storing query result in arrays: waste of memory?

2001-01-23 Thread Tyson Lloyd Thwaites
Hi all, I am writing an object-oriented program in PHP, and some of the child objects require similar data to their parents, but from different columns of the same table. Is it better to retrieve the whole table up-front and store it in a session array, or to run the queries seperately each time

Odp: [PHP-DB]

2001-01-23 Thread Jarek Zgoda
Od: "signup" <[EMAIL PROTECTED]> Temat: Re: [PHP-DB] > However, the answer about needing to define a PK before you can use it as a > FK being a limitation of SQL may have been a bit misleading (sorry, Jarek). > It is more of a building block of relational theory rather than a > limitation of S

[PHP-DB] Sweeping Stale Users from DB

2001-01-23 Thread John Starkey
What's the best or recommended way of sweeping users from MySQL on the hour or half hour or other? To keep things portable i was thinking about having each login sweep the db, so every is sweeping for everyone else? But that's kinda dumb. Then i came up with a cron job, but that will be admin dep

Re: [PHP-DB] Freetds/ODBC/Openlinks?

2001-01-23 Thread phobo
PHP has "built in" functions to talk to MYSQL - see www.php.net/mysql I'd say these are the fastest, more reliable and easiest way to access a MSSQL db. Siggy - Original Message - From: "Julio Cuz, Jr." <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, January 24, 2001 11:08

Re: [PHP-DB] moving

2001-01-23 Thread phobo
You could have a session variable which" When you order/pay/whatever an image, is set to "canorder=1"; When you download an image, canorder can only==1, and is set back to "canrdoer=0" Something like that can be improved upon vastly, but this is my immediate thought plan. Renaming files and stu

Re: [PHP-DB] moving

2001-01-23 Thread HDwebdev
On Tue, 23 Jan 2001 17:13:24 -0800, Bryan wrote: >Hey all... > >I have a site where people have to pay for the pictures. He is a professional >photographer and does not want >people stealing his work. When they download and image, they pay for it. The >problem with that is, if >I have image

[PHP-DB] moving

2001-01-23 Thread bryan
Hey all... I have a site where people have to pay for the pictures. He is a professional photographer and does not want people stealing his work. When they download and image, they pay for it. The problem with that is, if I have images named 001.jpg, 002.jpg, people can type that into the UR

[PHP-DB] apache + mssql

2001-01-23 Thread Thor M. Steindorsson
HELP! I need to access a database on a mssql server from a linux box, but the php doesn't recognize any of the mssql statements. Apparently mssql support was not included in the inital php installation (which came with Mandrake 7.2). I know there's the option of downloading the PHP source and co

[PHP-DB] Freetds/ODBC/Openlinks?

2001-01-23 Thread Julio Cuz, Jr.
Hi-- Bottom line: What's the most used way of talking to MSSQL from PHP 4? Freetds/ODBC/Openlinks/other? Julio Cuz, Jr. Riverside Community College [EMAIL PROTECTED] -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail

[PHP-DB] Include problem.

2001-01-23 Thread JJeffman
I am running PHP3.017(cgi) + Apache + MySQL on Windows98 SE. The include() and the getenv() functions are asking for a dial-up connection. Can somebody give me a hand ? Jayme. http://www.conex.com.br/jjeffman -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAI

Re: [PHP-DB] How to solve Orcale 8 Error: ORA-01036: illegal variable name/number??

2001-01-23 Thread Thies C. Arntzen
On Tue, Jan 23, 2001 at 04:57:02PM +0800, Koala wrote: > Here is the code: > $arr_var = Array(); > $arr_var[] = Array("KEY"=>'rec_id', "VALUE"=>'00', "LENGTH"=>-1);\ > .. > $stmt = OCIParse('DECLARE rec_id NUMBER(20); SELECT recNum INTO rec_id FROM > table WHERE recNum= 2 '); > .. > $n

[PHP-DB] Problem with php_interbase.dll

2001-01-23 Thread Alexey Freidman
I have the following problem with php 4: when I uncomment php_interbase.dll line in php.ini, I get the following message: Unable to load dynamic library 'c:php\extensions\php_interbase.dll' - A device attached to the system is not functioning. I get the same result when I try to use dl() function

[PHP-DB] WinNT 4.0 wrkst / Oracle 8.1.6 - succeed

2001-01-23 Thread Andris Jancevskis
Sorry for second mail: I use PHP v.4.0.3 cgi version on iis4.0 Hi, It may interested someone: I have succesfully connected to Oracle: use ORACLE 6i runtime connect to Oracle 8.1.6 from winnt4.0 workstation SP6 Code I use: full server description: Oracle8i Enterprise Edition Release 8.

[PHP-DB] WinNT 4.0 wrkst / Oracle 8.1.6 - succeed

2001-01-23 Thread Andris Jancevskis
Hi, It may interested someone: I have succesfully connected to Oracle: use ORACLE 6i runtime connect to Oracle 8.1.6 from winnt4.0 workstation SP6 Code I use: full server description: Oracle8i Enterprise Edition Release 8.1.6.0.0 - 64bit Production PL/SQL Release 8.1.6.0.0 - Production

[PHP-DB] RES: PHP4 / WinNT 4 / Oracle 7.3 via ODBC

2001-01-23 Thread Carlos Correa Goncalves
Hi all, Thanks a lot for the help!! I´ve reinstalled Oracle Cliente (version 8.1.5.0.0) and PHP 4.0.4pl1 and tried Jean-Christophe suggestion, with success: -- "); while(OCIFetch($result)) { $CC = OCIResult($result,1); $CCNome = OCIResult($result,2); echo('' . $CC . '' . $CC

[PHP-DB] Problem upgrading to 4.0.4

2001-01-23 Thread Mark Newnham
Platform: HPUX 10.20 Configuration: PHP4.0.1pl2 --with-iodbc --without-mysql --with-pdflib=/usr/local --without-gd --with-apache=../apache_1.3.14 Using Openlink MT ODBC driver against a PROGRESS database. Everything in the above configuration is working fine, but I have just attempted to

RE: [PHP-DB] PEAR DB testing volunteers needed

2001-01-23 Thread ryan . sinn
I could do some MSSQL 7 testing. signup <[EMAIL PROTECTED]> on 01/22/2001 03:38:22 PM To: [EMAIL PROTECTED] cc: Subject: RE: [PHP-DB] PEAR DB testing volunteers needed Hi Stig, > > Hi, > > This is an invitation to help testing PHP's bundled database abstraction > layer, DB. If you ar

[PHP-DB] Getting a date out of oracle

2001-01-23 Thread Kallin Per
Hi! I'm pretty new to PHP and now I got a problem with Date datatype and oracle. I can recive the date as a string with osiresult($stmt, "COLUMN_NAME") in the oracle date format (eg. '23-JAN-01') but I wold like to recive the whole date (eg. '2001-01-23 15:21:13'), that's the first problem. The se

Re: [PHP-DB] Oracle OCI8 and rowid

2001-01-23 Thread Thies C. Arntzen
On Mon, Jan 22, 2001 at 01:38:22PM -0800, signup wrote: > Hello, > does anyone know how to write te result of the following SQL statement (I have >problems with rowid): > > select rowid, field1 from table1 rowid is an opaque datatype in php. you cannot "output" it but only use it for fu

RE: [PHP-DB] PEAR DB testing volunteers needed

2001-01-23 Thread Andrew Hill
Why are these emails showing up now - I believe they were sent out a couple of months ago... ? Best regards, Andrew > -Original Message- > From: signup [mailto:[EMAIL PROTECTED]] > Sent: Monday, January 22, 2001 4:38 PM > To: [EMAIL PROTECTED] > Subject: RE: [PHP-DB] PEAR DB testing volu

Re: [PHP-DB] daisy chaining includes

2001-01-23 Thread php3
Addressed to: John Starkey <[EMAIL PROTECTED]> [EMAIL PROTECTED] ** Reply to note from John Starkey <[EMAIL PROTECTED]> Tue, 23 Jan 2001 02:02:46 -0700 (MST) > > I'm trying to clean up about 2000 lines of whacked out newbie code > i've created. Is there a way to daisy chain include

[PHP-DB] PHP OCI interface not working

2001-01-23 Thread signup
-BEGIN PGP SIGNED MESSAGE- Hi, Well, I've solved my problem with Thies's help It turned out to be a permissions problem: It was a (@#$%^) permissions problem on the root oracle directory. I have oracle installed in /home/oracle/OraHome1, and the permissions on /home/oracle was 700. O

Odp: [PHP-DB]

2001-01-23 Thread signup
Od: "Anthony Martin" <[EMAIL PROTECTED]> Temat: [PHP-DB] > I'm having trouble figuring out this referential logic. I'm writing a > rudimentary directory structure for dividing HTML sections from one another. > Right now, my tables have no referential integrity, except for ones > pertaining out

[PHP-DB] Forcing logout

2001-01-23 Thread signup
I have some problem authentication with PHP, how can I force a user to logout (pressing logout button) and clear credential info without displaying logon screen again. Right now when user click logout button then Logon screen appears again. Code (logout.php) : Can anyone help me. Thanks in a

Re: [PHP-DB] PEAR DB testing volunteers needed

2001-01-23 Thread signup
> Hi, > > This is an invitation to help testing PHP's bundled database abstraction > layer, DB. If you are interested in helping DB to become stable on > _your_ database platform, please reply to this message with what > database systems you have access to. > > Systems in particular interest ar

Re: [PHP-DB] Question about using php with Microsoft SQL server

2001-01-23 Thread signup
> Hello, I'm trying to use the mssql_connect function to connect to the > Microsoft SQL server with php4.0.3pl1 for window, but the return is "Fatal > error: Call to undefined function: mssql_connect()". And another mssql > function are also with the same result, but I have try use the mysql and >

Re: [PHP-DB]

2001-01-23 Thread signup
I was hoping someone would look at this situation first, and someone did. However, the answer about needing to define a PK before you can use it as a FK being a limitation of SQL may have been a bit misleading (sorry, Jarek). It is more of a building block of relational theory rather than a limi

RE: [PHP-DB]

2001-01-23 Thread signup
It helped a lot, actually. I already implemented an artificial PK, like your first example table. I too consider this as relational theory, and not a limitation. And I was just hoping there was a piece of logic I was missing, but it looks like there wasn't. Thanks for humoring me. Anthony -

[PHP-DB] Help Me Please ... it's urgent !!

2001-01-23 Thread signup
Hi ... My name is Dedy Wahyudi ... I follow your instruction at webmonkey site regarding PHP/MySQL Tutorial .. But there is some problem i'm having ... may be you can tell me "; print "  Type of Service:".$row['type']." "; print " Company Name:".$row['company'].""; print " Contact Pers

[PHP-DB] Oracle OCI8 and rowid

2001-01-23 Thread signup
Hello, does anyone know how to write te result of the following SQL statement (I have problems with rowid): select rowid, field1 from table1 Thanks in advance Benoit NOSS - ([EMAIL PROTECTED]) (Bureau 226) IAURIF, Service MSI, 15 rue Falguiere, 75740 PARIS Cedex 15 FRANCE Tel : (+33) 1 53 85 7

RE: [PHP-DB] PEAR DB testing volunteers needed

2001-01-23 Thread signup
Hi Stig, > > Hi, > > This is an invitation to help testing PHP's bundled database abstraction > layer, DB. If you are interested in helping DB to become stable on > _your_ database platform, please reply to this message with what > database systems you have access to. > > Systems in particular i

RE: [PHP-DB] Newbie - 2 tables one insert

2001-01-23 Thread Rubanowicz, Lisa
I realised I just sent my password out needless to say I am just about to change it. All the Best Lisa -Original Message- From: Rubanowicz, Lisa [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 23, 2001 1:54 PM To: [EMAIL PROTECTED] Subject: [PHP-DB] Newbie - 2 tables one insert Hi all

[PHP-DB] Newbie - 2 tables one insert

2001-01-23 Thread Rubanowicz, Lisa
Hi all, Could you please help me out on this one. I want to create a web site using two tables. 1. page_creation - Stores page_id and page_name to be shown on all navigation bars. 2. pages - Contains pg_id, page_id, etc etc. I want to do an insert into page_creation to create a new page and then p

[PHP-DB] Fout forwarding

2001-01-23 Thread Xsarus Internetdiensten
Geachte relatie,   Door een fout van een van onze medewerkers is wellicht naar u een bericht doorgestuurd dat u niet had mogen bereiken. Het betrof een bericht dat alleen bestemd was voor privérelaties van betreffende medewerker. Daarnaast was het bericht van een strekking die niet hoort bij

RE: [PHP-DB] daisy chaining includes

2001-01-23 Thread Cal Evans
I have a single include file that I put all my require_once commands in that are applicable to each page. Something like then at the top of each page I put: require_once("myincludes.php"); is that what you are looking for? Cal http://www.calevans.com -Original Message- From: John St

[PHP-DB] RC4 Encryption / Decryption Class

2001-01-23 Thread Mukul Sabharwal
Hi, I've attempted to add RC4 encryption / decryption facility in PHP. It's been tested on PHP4. It handles all the XORing and conversions while encrypting and decrypting also all urlencoding and decoding. It's been pretty fast also. I've written a tutorial on it, whatever it is : http://www.de

Re: [PHP-DB] More on trying to get started with Oracle

2001-01-23 Thread Stas Trefilov
PHP as apache module? -- Piloteers do it on the road -- 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]

Re: [PHP-DB] Getting started with Oracle

2001-01-23 Thread Stas Trefilov
Hello, John Coonrod! You wrote: (I > notice it refers to oracle_home, so I obviously need to > install some of the > oracle client software on my machine). Yes, that's right. Oracle client. -- Piloteers do it on the road -- PHP Database Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP-DB] Simple Addition Form

2001-01-23 Thread Stas Trefilov
What EXACTLY do you want accomplished? -- Piloteers do it on the road -- 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] Listing content as links.

2001-01-23 Thread neXus
Problem, upload selected htm files to server,delete selected files from server and create link table to these files, with desired link names. Idea is to do uploading and deleting files in admin site as well as define link names. And when user comes in he would see the link list. Any ideas / exa

[PHP-DB] daisy chaining includes

2001-01-23 Thread John Starkey
I'm trying to clean up about 2000 lines of whacked out newbie code i've created. Is there a way to daisy chain includes? I have about five includes in each header and I was thinking of making one include file and linking to that. And furthermore :} is there a way to include within a function if i

[PHP-DB] How to solve Orcale 8 Error: ORA-01036: illegal variable name/number??

2001-01-23 Thread Koala
Here is the code: $arr_var = Array(); $arr_var[] = Array("KEY"=>'rec_id', "VALUE"=>'00', "LENGTH"=>-1);\ .. $stmt = OCIParse('DECLARE rec_id NUMBER(20); SELECT recNum INTO rec_id FROM table WHERE recNum= 2 '); .. $num_rows = count($arr_var); for ($i=0; $i<$num_rows; $i++) { if (is