[PHP-DB] LO on postgreSQL HELP!

2001-03-20 Thread Patrick
Hallo! I'm trying to read lo objects (images) from postgreSQL using php's pg_loreadall() function with the intention of put them dirctly on a html document, but I can't. I also have problems about how to embed the result of the pg_loread() on a html document. Somebody can help me? Thak you very m

[PHP-DB] MS Access and MySQL

2001-03-12 Thread Patrick Schäfer
JOIN tbl_zuordnung_autoren_medien ON [tbl_autor].[autorenID]=[tbl_zuordnung_autoren_medien].[autorenID]) ON [tbl_medien].[medienID]=[tbl_zuordnung_autoren_medien].[medienID] WHERE ((([tbl_medien].[medientypID])='$medium')); Thanks, Patrick Patrick Schäfer magna moliri Projektmanagementgesellsch

[PHP-DB] PHP w/OOB

2001-03-30 Thread Patrick Brown
I have PHP compiled with OOB and Apache on one of my Linux bxes and it works great. My problem is that I need to run PHP w/ OOB on a second box as a stand alone app. Here is a sample script: #!/usr/local/bin/php Here is the error: X-Powered-By: PHP/4.0.4pl1 Content-type: text/html Warning:

RE: [PHP-DB] CSS versus Includes

2001-04-01 Thread Patrick Dunford
to duplicate code. Including a CSS :) -- ======= Patrick Dunford, Christchurch, NZ - http://pdunford.godzone.net.nz/ Now to him who is able to do immeasurably more than all we ask or imagine, according to his power that is at work within us, to him be glory in the church and in Christ Jesus throughout all g

RE: [PHP-DB] URL Problem

2004-04-21 Thread Lambert, Patrick
So it sounds like you need to examine the headers of the response (which sounds like it is a redirect)? Try PEAR's HTTP_Request (http://pear.php.net/package/HTTP_Request). p. > -- > From: Chris Payne > Sent: Wednesday, April 21, 2004 12:52 PM > To: [EMAIL PROTECTED] > Su

[PHP-DB] Re: [EMAIL PROTECTED] November 2, 2004

2004-11-01 Thread Patrick Donker
GH wrote: Greetings: This is just a friendly reminder that if you are registered in the United States to VOTE on November 2, 2004 (TOMORROW) Need to know where you vote? Please see the attached file (it is an image) that contains some information Do we care? Realy? Unlikely. Maybe you should s

[PHP-DB] Persistent Connections to Oracle databases

2004-11-11 Thread Patrick David
cts .= "" . $results["CREATED"][$i] . ""; $objects .= "" . $results["LAST_DDL_TIME"][$i] . ""; $objects .= "\n"; } return $objects; } ?> Web Administration Tool for ORACLE Databases http://esorclupg/backgrnd.gif&q

[PHP-DB] how to get consistent UTC from gmmktime (w/o dst-offset) ????

2002-03-26 Thread Patrick Sibenaler
hi. i'm storing events in a mysql-db, using epoch timestamps to pinpoint the exact date/time for an event. so far, I have been using localtime, being aware that there are inconsistencies in the number of epoch-seconds, when DST flips on and off. nevertheless, that works fine as long as you

Re: [PHP-DB] how to get consistent UTC from gmmktime (w/o dst-offset) ????

2002-04-02 Thread Patrick Sibenaler
actually works. anyone? (please cc:) greets, patrick./ DL Neil wrote: > > Hi Patrick, > [I have put this back on the list, because greater minds might come up > with a better explanation!?] > > There appears to be an issue with "gm" time functions. gmmk

Re: [PHP-DB] Mutiple inserts with one query?

2002-05-31 Thread Patrick Emond
;INSERT INTO your_table VALUES'; for ($i=0; $i<100; $i++) { if (!$first) $query .= ', '; $query .= ' (0,1,2,3)'; $first = false; } mysql_query($query); // only one insert statement Hope that helps, Patrick Emond - Original Message - From: "Leif K-

[PHP-DB] Can't get data back into the database

2002-08-21 Thread Patrick Kirk
n doesn't call PHP_SELF with the updated values. Thanks in advance. Apologies to anyone who is upset at the 9k attachment. Patrick DROP TABLE IF EXISTS people; CREATE TABLE people ( person_id tinyint(4) unsigned NOT NULL auto_increment, first_name varchar(30) NOT NULL, last_name va

Re: [PHP-DB] Can't get data back into the database

2002-08-21 Thread Patrick Kirk
contacts.php appears to have been chewed up ... fresh copy. -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DB] Can't get data back into the database

2002-08-21 Thread Patrick Kirk
Patrick Kirk said: Good Lord - its eaten contacts.php again! Contacts//  >Contacts /  ?grouping=> /   

Re: [PHP-DB] PreCaching Db into Variables Slows it down?!??

2002-09-11 Thread Patrick Latour
does not explain your time problem, but it is my 2 cents before you place to much stuff in global variables. Thanks and regards, Patrick - Original Message - From: "M1tch" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, September 11, 2002 8:36 PM Subject:

[PHP-DB] Current row of query

2002-09-26 Thread Patrick Lebon
Is there a mysql or array variable for the current row of a query array? I want to alternate background colours for each row of the query output so i need to know the current row number. Thanks -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.

Re: [PHP-DB] Current row of query

2002-09-26 Thread Patrick Lebon
$row with BG color of red; > } > else > { > printf $row with BG color of purple; > } > } > > HTH > -Brad > > Patrick Lebon wrote: > > > Is there a mysql or array variable for the current row of a query array? > > I want to alternate

Re: [PHP-DB] Current row of query

2002-09-26 Thread Patrick Lebon
Thanks for your help. As i said im quite new to php so all your help in simplifying my code has been appeciated. -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DB] export to csv file

2002-09-28 Thread Patrick Latour
- Original Message - From: "Diana Castillo" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, September 28, 2002 10:02 AM Subject: [PHP-DB] export to csv file > Hi, I want to export some fields on a regular basis from a table to a text > file, preferable to the users local com

[PHP-DB] Dynamic data from user file

2002-10-08 Thread John Patrick
Greetings: I currently am using the fgetcsv function to read in fields from a user-defined file. The delimited file is read and displayed just fine. Firstly, what I'm trying to accomplish: The MySQL database has a table with about 30 fields. The user-defined file may contain only some

[PHP-DB] Fatal error: Call to unsupported or undefined function mysql_connect()

2001-04-04 Thread Patrick Schäfer
is is line 7 of my script $select = mysql_select_db("intranet", $db); Thanks, Patrick -- 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] [BUG?] pg_fetch_array

2001-04-04 Thread Patrick Dunford
. The only reliable way I can see of being able to retrieve the data is to use numbered rather than fieldname references. It only seems to apply to a few fields and is without logic, since in some cases it does dereference correctly. --

RE: [PHP-DB] Fatal error: Call to unsupported or undefined functi on mysql_connect()

2001-04-04 Thread Patrick Dunford
t;mysql_select_db("intranet", $db); > or die ("Sorry something is wrong"); > >That what I use > >That really might be the problem.. > > >Learn how to put in debug stuff. It's easier to see your >mistakesI know I had a bunch... >

Re: [PHP-DB] Is Sybase supported on Windows?

2001-04-04 Thread Patrick Dunford
haven't found any dll named *sybase* for Windows. Is there any way of supporting >Sybase? There is a DLL in extensions calls php_sybase_ct.dll You either need to compile in support for sybase with PHP or dl a dynamic library. -- ===

[PHP-DB] [BUG] Associative arrays and Postgresql

2001-04-06 Thread Patrick Dunford
oblem with confusion of the names of the fields. I will try rewriting my query. -- ======= Patrick Dunford, Christchurch, NZ - http://pdunford.godzone.net.nz/ Do not be anxious about anything, but in everything, by prayer and pet

[PHP-DB] [BUG] DEFINITIVE: Postgresql Field Names with Underscores

2001-04-06 Thread Patrick Dunford
query specification, select duplicate field names individually and use the AS keyword to specify a name that doesn't have an underscore in it. 2. Change any table field names that have underscores to remove them. -- ====

[PHP-DB] Looking for info on PHP 4 & Ingres DB

2001-06-29 Thread Patrick Bui
Anyone have experience using Ingres with PHP & Ingres. I can't find any documentation on the area. -- 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

[PHP-DB] dba_open

2001-07-31 Thread Patrick Callihan
HI, I have compiled php4 with the following command: ./configure' '--with-mysql' '--with-apache=../apache_1.3.20' '--enable-track-vars' '--enable-tans-sid' '--enable-dba The function dba_open() does not work for me. I get the following error message: Fatal error: Call to undefined function: dba

[PHP-DB] Re: dba_open

2001-07-31 Thread Patrick Callihan
t open shared object file: No such file or directory in /home/pat/html I did a 'find / -name php_dba.so' and came up with nothing. Thanks in advance for any help. "Hugh Bothwell" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...

[PHP-DB] Re: dba_open

2001-08-01 Thread Patrick Callihan
line in the php.ini file and it now recognizes the dba_open() function call. Now it gives me this error message: Warning: driver initialization failed in db.php on line 6 and it does not open the database. Any and all help are greatly appreciated. Thanks, Patrick "Patrick Callihan&quo

[PHP-DB] Re: dba_open

2001-08-01 Thread Patrick Callihan
With the help of another friend, I now have it working. The problem was I needed to make the directory and file group apache and then give them both group write permission. It works! I thought I would post this in case someone else ran across the same problem. Patrick "Patrick Cal

[PHP-DB] Re: collecting a variable value from SQL*Plus

2001-10-03 Thread Patrick ONeill
Bona, You are trying to perform an SQL*PLUS command. I think you can only perform SQL commands with OCI. You can print a ref cursor in SQL*PLUS but you have to handle it differently with OCI. Look at the PHP reference manual for ocinewcursor. Good Luck, Pat [EMAIL PROTECTED] wrote: > Hi aga

Re: [PHP-DB] phpmyadmin user grants

2001-12-19 Thread Patrick Guillot
n during SELECTs. More informations on http://www.mysql.com/doc/G/R/GRANT.html Which version of phpMyAdmin are you using ? Patrick -- Patrick Guillot mailto:[EMAIL PROTECTED] - +33 (0)6 08 41 11 54 Online Development - Paanjaru http://www.paanjaru.com Riding the Shockwave in cyberspace, for no

[PHP-DB] Database Connection Properties

2002-01-06 Thread patrick gibson
ould be greatly appreciated. Thanks very much, Patrick ---| patrick gibson |---+ email: email @ patrickg.com url: http://patrickgibson.com/ + -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additio

Re: [PHP-DB] Database Connection Properties

2002-01-07 Thread patrick gibson
s there's not really any great way of protecting database connection information on a shared server? Patrick ---| patrick gibson |---+ email: email @ patrickg.com url: http://patrickgibson.com/ + -- PHP Database Mailing List (http://www.ph

Re: [PHP-DB] Database Connection Properties

2002-01-07 Thread patrick gibson
happen to be that root user. :) But it still is a shared server with other users each having access to the system. I've setup MySQL so that each user has access to only their database -- they cannot connect to any other database on the system. Patrick ---| patrick gibson |-

[PHP-DB] Help! SQL 2000 and cursors

2002-01-14 Thread Patrick Brown
I've been running a PHP4 script on a Linux server every day for quite a while now. All of a sudden, it stops working. The error message is: [ODBC SQL Server Driver][SQL Server]The cursor was not declared. What does this mean and how can I fix it? Nothing has changed as far as I know. Nobody else

[PHP-DB] Re: Help! SQL 2000 and cursors

2002-01-14 Thread Patrick Brown
I just tried installing MDAC 2.7 on my SQL Server, based on another user's recommendation. That didn't resolve the problem. Any other ideas? Thanks, Pat "Patrick Brown" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... >

Re: [PHP-DB] 1 query or 2 queries

2002-01-18 Thread Patrick Emond
whatever common element or key you have in both tables (this may be the title of the book, or a book ID, etc) - Patrick - Original Message - From: "George Pitcher" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, January 18, 2002 8:37 AM Subject: [PHP-DB] 1

Re: [PHP-DB] Resource id #2 ?

2002-01-18 Thread Patrick Emond
eq will be set to false, so checking that before using it as an array is a good idea) - Patrick - Original Message - From: "James Kupernik" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, January 18, 2002 12:05 PM Subject: [PHP-DB] Resource id #2

[PHP-DB] Cannot connect PostgreSQL 7.3.1. Using PHP thru...

2003-03-07 Thread Patrick LOK
I have the following setups: *PostgreSql 7.3.1 and MSSQL on Win2k server (A) *Apache 1.3.x + PHP 4.3.1.1(using CGI & loaded w/ php_pgsql.dll) + ODBC for PostgreSql v7.02.00.05 on Win2K server (B) I tried to use phppgadmin 2.4.2 and odbc for postgresql to connect PostgreSql in (A) but both connec

[PHP-DB] Re: Cannot connect PostgreSQL 7.3.1. Using PHP thru...

2003-03-07 Thread Patrick LOK
tcpip_socket is enabled! access to postgresql is granted; ip-address is added to pg_hba.conf - METHOD = trust ./pl "Patrick Lok" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I have the following setups: > *PostgreSql 7.3.1 and MSSQL on Win2k server (A)

Re: [PHP-DB] How to Connect remote DB server?

2003-03-12 Thread Patrick LOK
There is no firewall within the LAN environment. I tried the mssql_connect too using mssql_connect("testdb","sa","") but same error returned! Any idea? ./pl "Jason Wong" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On Wednesday

[PHP-DB] Re: [PHP] Re: [PHP-DB] How to Connect remote DB server?

2003-03-12 Thread Patrick LOK
ROTECTED] Possibly the db-server is accepting only localhost connections. Niklas -Original Message- From: Patrick LOK [mailto:[EMAIL PROTECTED] Sent: 12. maaliskuuta 2003 14:39 To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: [PHP] Re: [PHP-DB] How to Connect remote DB server? There is n

RE: [PHP-DB] Problem retrieving/updating data from InterBase

2003-03-19 Thread May, Patrick
for the field name, and I made use of the ibase_blob_info() function: $blob_data = ibase_blob_info( $row->METADATA ); $blob_hndl = ibase_blob_open( $row->METADATA ); $content= ibase_blob_get( $blob_hndl, $blob_data[0] )); ibase_blob_close( $blob_hndl); Hope this has some hints, Patrick May

[PHP-DB] How to Connect remote DB server?

2003-03-12 Thread Patrick LOK
It is possible to connect a remote db server using x_connect? e.g. a PostgreSQL in server PSQLDB, ip=192.168.0.100 and a MSSQL server MSSQLDB, ip=192.168.0.110 I tried pgsql_connect("psqldb","administrator","") & pgsql_connect("192.168.0.100","administrator","") but failed! Error is "Unab

RE: [PHP-DB] MySQL or Postgres

2003-03-24 Thread May, Patrick
has pointed me towards firebird / interbase: http://firebird.sourceforge.net/ ~ Patrick

[PHP-DB] BLOB in Oracle

2003-04-01 Thread Patrick Cossette
Hi, Using PHP 4.2.2 with Oracle 8. Can someone provide the code for reading a BLOB from a Oracle database? I cannot find it anywhere in the archives. Thank you. Patrick Cossette [EMAIL PROTECTED] -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

[PHP-DB] compling php against interbase rpm

2003-04-01 Thread May, Patrick
InterBase: binding (may take a while) [ext/interbase/tests/006.phpt] = And when I try to load the libphp4.so module, Apache silently dies. Any ideas? Thanks in advance, Patrick May

[PHP-DB] chat

2005-05-01 Thread Patrick Dunegan
Does anyone know where there is a good chat room with PHP developers? -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.308 / Virus Database: 266.11.0 - Release Date: 4/29/2005

[PHP-DB] pdo parameter in limit?

2006-12-14 Thread Patrick Felt
i'm running php "PHP Version 5.1.6-pl6-gentoo" and have run into a bit of a snag with pdo prepared statements and parameters. we use parameters in all our queries, but just recently tried to add limits to some of the queries so we can do paging. when attempting to add a parameter to the limit sec

[PHP-DB] using database without mysql installed

2008-10-24 Thread Patrick Price
r any help. Patrick

Re: [PHP-DB] using database without mysql installed

2008-10-25 Thread Patrick Price
I think I will have to use a second script on mysql server since (I forgot to mention) the database is replicated and that seems like the best option. Thanks for the help patrick On Sat, Oct 25, 2008 at 2:14 PM, Nitsan Bin-Nun <[EMAIL PROTECTED]> wrote: > Umm you can convert it to fi

[PHP-DB] db privileges

2009-01-06 Thread Patrick Price
t the problem and changed the db connection but I was wondering if there is a php function and/or mysql function that can be run from php to find out the privileges for a particular db connection. Any ideas? PHP Ver. 5.2.1 MySQL Ver. 5.0.27 on Linux Thanks patrick

Re: [PHP-DB] db privileges

2009-01-06 Thread Patrick Price
Hey Frank, I wasn't able to run the query: select * from mysql.user where concat(user, '@', host) like (select CURRENT_USER()) because I didn't have privileges to view the table, but I was able to root around the INFORMATION_SCHEMA table and find what I needed. thanks! pa

Re: [PHP-DB] Cannot print the data from database in the webpage

2009-02-13 Thread Patrick Price
ed from the database since that will affect the row values when you are assigning them to variables (ie- if the day is returned first in the array it should be " $day = $row[0]" ) Hope that helps Thanks patrick Sent from: Decatur Ga United States. On Sat, Feb 14, 2009 at 12:05 AM, S

Re: [PHP-DB] Parse error: syntax error, unexpected '>' in C:\wamp\www\new.php on line 38

2009-02-13 Thread Patrick Price
I believe your problem is that on line 33 you forgot your closing double quote in the echo statement. Thanks patrick Sent from: Decatur Ga United States. On Fri, Feb 13, 2009 at 10:02 PM, Sashikanth Gurram wrote: > Hi all, > > I have pasted the PHP code I wrote below. I do not know

[PHP-DB] Cant get Mysql stored procedure to work.

2009-07-13 Thread Patrick Moloney
I've had no success trying to execute any stored procedure from php. I'm just trying to follow the example for multi-query in the php manual, and have tried an example from Artfulsoftware.com. I have one input and one output parameter. I've simplified the stored procedure to always output one v

Re: [PHP-DB] Cant get Mysql stored procedure to work.

2009-07-13 Thread Patrick Moloney
Bastien Koert wrote: On Mon, Jul 13, 2009 at 11:52 AM, Patrick Moloney wrote: I've had no success trying to execute any stored procedure from php. I'm just trying to follow the example for multi-query in the php manual, and have tried an example from Artfulsoftware.com. I have one inp

Re: [PHP-DB] Cant get Mysql stored procedure to work.

2009-07-13 Thread Patrick Moloney
Bastien Koert wrote: On Mon, Jul 13, 2009 at 1:33 PM, Patrick Moloney wrote: Bastien Koert wrote: On Mon, Jul 13, 2009 at 11:52 AM, Patrick Moloney wrote: I've had no success trying to execute any stored procedure from php. I'm just trying to follow the example for multi-query

Re: [PHP-DB] Changing part of a query before displaying it

2009-07-15 Thread Patrick Price
print ' ' . $row['first_column'] . ' ' . $row['second_column'] . ' ' . $row['third_column']/60 . ' ' . $row['fourth_column'] . ' ' . $row['fifth_column&#x

Re: [PHP-DB] Changing part of a query before displaying it

2009-07-15 Thread Patrick Price
code to access that data in my code, whereas your code you wouldn't need to add any more code. Thanks patrick On Wed, Jul 15, 2009 at 1:40 PM, Don Collier wrote: > Would that work for multiple rows though? This is getting a varying number > of rows. > Patrick Price wrote: >

Re: [PHP-DB] 500 records (articles) - SELECT ALL or USE WHERE

2009-08-04 Thread Patrick Price
~90% decrease in reading data from the database. Performing aggregate mysql functions for most commented and etc are generally very fast and can be done much more quickly than retrieving the whole article, passing to php, storing to memory and then manipulating the data. Thanks patrick 2009/8

Re: [PHP-DB] Need Help in the below script

2009-09-04 Thread Patrick Price
need to be concerned about SQL injection attacks, you should always escape any data being used in a query. http://us.php.net/manual/en/security.database.sql-injection.php Hope this helps. Thanks, patrick On Fri, Sep 4, 2009 at 5:07 AM, nagendra prasad wrote: > Hi all, > > I am worki

Re: [PHP-DB] Storing images

2010-02-03 Thread Patrick Price
down weekly. I had to rewrite the entire image upload/retrieval system for their site to change it to folder based storage. Just my thoughts... Thanks patrick On Wed, Feb 3, 2010 at 8:02 AM, Phpster wrote: > Sure is. Save the data in a blob field. Lots of examples on the net on how &

Re: [PHP-DB] mysql_close()

2010-02-20 Thread Patrick Price
According to php.net, if you don't specify a link iedentifier it closes the last nonpersistent connection.   http://us3.php.net/mysql_close Patrick -- Sent from my Palm Pre Ron Piggott wrote: Does mysql_close() close all open database connections? How would I specify which connecti

Re: [PHP-DB] Broken query

2010-07-11 Thread Patrick Price
How is the last mailing date variable set? Have you tried printing out the queries that are run when it is run manually and when it is run as a cron to find any differences? -patrick On Jul 11, 2010 8:23 AM, "Ron Piggott" wrote: I am trying to write a query to select a trivia quest