[PHP-DB] PDO::ATTR_TIMEOUT with unixODBC not working the way I expect?

2014-04-11 Thread Rob Crowell
mirror on github, I don't see this patch applied: https://github.com/php/php-src/blob/master/ext/pdo_odbc/odbc_driver.c#L339-L352 Does anyone have any experience or advice with how I could implement a database connection timeout without this patch? Thanks! --Rob

Re: [PHP-DB] Slooooow query in MySQL.

2007-07-23 Thread Rob Adams
Oid limit {l1}, {l2} Here is the query. I didn't know that it needed to have an ORDER clause in it for the limit to work properly. I'll probably order by h.listdate -- Rob "Stut" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] Chris wrote: Stut wrote:

[PHP-DB] Slooooow query in MySQL.

2007-07-19 Thread Rob Adams
I have a query that I run using mysql that returns about 60,000 plus rows. It's been so large that I've just been testing it with a limit 0, 1 (ten thousand) on the query. That used to take about 10 minutes to run, including processing time in PHP which spits out xml from the query. I dec

[PHP-DB] mysql ORDER BY problems

2006-06-18 Thread Rob W.
12 . 2 22 23 25 3 4 5 6 7 Is there a way with my mysql query so that I can list the numbers in correct order? Any help is appricated. - Rob

[PHP-DB] MySQLi Prepared Statements

2006-03-27 Thread Rob Hamilton
$stmt->bind_param($paramTypes, $params[0]); But it seems you cannot pass the array itself using the '&' operator. Cheers Rob Hamilton -- ___ Play 100s of games for FREE! http://games.mail.com/ -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DB] Finding a process in *nix

2006-03-20 Thread Rob W.
Heres what i'm trying to do. $proc=exec('ps aux | grep proc'); if ($proc != "") { echo "True"; } if ($proc == "") { echo "False"; } but some time's it show's the ps aux so I dont get a true reading. Anybody have a way that I might be able to extract this out of there to get a true reading

Re: [PHP-DB] Text file (rw) question...

2006-03-14 Thread Rob W.
Ah yes, that's true. I didnt realize that. Thanks for pointing that out. - Original Message - From: "Chris" <[EMAIL PROTECTED]> To: "Rob W." <[EMAIL PROTECTED]> Cc: Sent: Tuesday, March 14, 2006 9:02 PM Subject: Re: [PHP-DB] Text file (rw) questi

[PHP-DB] Text file (rw) question...

2006-03-14 Thread Rob W.
It's all fixed and works. If anybody is wondering how this turned out, here's the begining of the results. index.php "; if ($variable == "MaxUser") { echo "Max Users: "; } if ($variable == "Password") { echo "Password: "; } // echo "$variable $data"; } fclose($f);

Re: [PHP-DB] Text file (rw) question...

2006-03-14 Thread Rob W.
So how do I make it so it just set's the variable's that are sent in the $_POST because i wanna write it so that if the value isnt changed, it wont send the $_POST and wont update the config file.. - Original Message - From: "Chris" <[EMAIL PROTECTED]> To:

Re: [PHP-DB] Text file (rw) question...

2006-03-14 Thread Rob W.
Yeah, but will that just replace the data that is present already there? I dont wanna have duplicate entries in there or i'm affraid it wont read it. The origional code you gave worked but it just ran in a big loop. - Original Message - From: "Chris" <[EMAIL PROTE

Re: [PHP-DB] Text file (rw) question...

2006-03-14 Thread Rob W.
halt after it updates that line of code. - Original Message - From: "Chris" <[EMAIL PROTECTED]> To: "Rob W." <[EMAIL PROTECTED]> Cc: Sent: Tuesday, March 14, 2006 6:23 PM Subject: Re: [PHP-DB] Text file (rw) question... Rob W. wrote: That works,

Re: [PHP-DB] Text file (rw) question...

2006-03-14 Thread Rob W.
That works, but it just throws it in to a big loop and fills up the file, any suggestions? - Original Message - From: "Chris" <[EMAIL PROTECTED]> To: "Rob W." <[EMAIL PROTECTED]> Cc: Sent: Tuesday, March 14, 2006 5:54 PM Subject: Re: [PHP-DB] Tex

Re: [PHP-DB] Text file (rw) question...

2006-03-14 Thread Rob W.
t;Dwight Altman" <[EMAIL PROTECTED]> To: "'Rob W.'" <[EMAIL PROTECTED]>; Sent: Tuesday, March 14, 2006 9:13 AM Subject: RE: [PHP-DB] Text file (rw) question... How about posting your solution as well? Maybe someone will find it useful. -Original Mess

Re: [PHP-DB] Text file (rw) question...

2006-03-14 Thread Rob W.
Nevermind. I figured it out. - Original Message - From: "Rob W." <[EMAIL PROTECTED]> To: Sent: Tuesday, March 14, 2006 1:45 AM Subject: [PHP-DB] Text file (rw) question... I'm trying to figure out how to read specific data from a text file that is already writ

[PHP-DB] Text file (rw) question...

2006-03-13 Thread Rob W.
I'm trying to figure out how to read specific data from a text file that is already written. Example MaxUser=3D32 PortBase=3D8000 I want to be able to have php read them specific pieces of info so I can put them in to forms and update them via php. Any help would be appreciated.

[PHP-DB] Re: Amount of characters a variable is able to contain

2005-11-17 Thread Rob C
= @fopen("/tmp/inputfile.txt", "r"); if ($handle) { while (!feof($handle)) { $lineArray[] = fgets($handle, 4096); } fclose($handle); } That will get up to 4096 characters per line, and I'm sure increasing this isn't too complex :) Rob Ron Piggott wro

Re: [PHP-DB] [PDO] Number of rows found by Select

2005-11-09 Thread Rob C
t = $rows_array[0]; if (!is_null($limit) && $count > $limit) { $count = $limit; } } } catch (PDOException $e) { # todo } return $stmt; } Rob Rob C wrote: So would it be possible to write a select() function to handle the wierdness? I'm attempting to write one but I&#

Re: [PHP-DB] [PDO] Number of rows found by Select

2005-11-09 Thread Rob C
$rows_array = $rows->fetch(PDO::FETCH_NUM); $rows->closeCursor(); $count = $rows_array[0]; if (!is_null($limit) && $count > $limit) { $count = $limt; } } return $stmt; } Where am I going wrong here? Rob Micah Stevens wrote

[PHP-DB] [PDO] Number of rows found by Select

2005-11-08 Thread Rob C
l limitation that I'm not appreciating, if anyone can shed some light on this, I'd like to know. I'm new to both PDO and this mailing list, so please be gentle with me. I'm using PDO 1.0RC2, PHP 5.0.5 and MySQL 4.1.15. Rob -- PHP Database Mailing List (http://www.php.ne

RE: [PHP-DB] Letters loop

2005-05-27 Thread Rob Agar
t until it hits YZ. feck knows why :-/ hth (a bit) Rob -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DB] Connecting to MS Access DB in PHP, on Linux, Apache

2005-05-14 Thread rob
Anyone got any good websites or resources on how to connect to an access database and perform sql querrys etc, in Linux running apache? or if anyone has the connection strings required thanks in advance !! -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.ne

RE: [PHP-DB] quotes/private

2005-03-16 Thread Rob Agar
this You'll get this: Notice: Use of undefined constant something_not_defined - assumed 'something_not_defined' but if you change something_not_defined to a reserved word like private, you'll get a parse error as you found. > any > idea where I > could find a lis

[PHP-DB] display connection type - newbie

2005-02-20 Thread Rob Bills
Hello, I'm a newbie. I made a persistent connection, but I have to prove it's persistent for a class I'm in. So far I haven't found anything in the MySQL manual about it. Does anyone know what I can do? Thanks Rob -- PHP Database Mailing List (http://www.php.net/) To unsu

[PHP-DB] re: what is wrong with my code.. please help

2004-12-26 Thread Rob Cartier
o your lof files the rest should be a peice of cake Good luck Rob == Dear group, I am trying to query my db and print the results. when i execute my script, i am not getting any result except a blank page. can any one please help me what is going wro

Re: [PHP-DB] Can't conect with mysql_connect(), please help.

2003-10-14 Thread Rob
How can I run php from the command line? Thanks, Rob Gillen Clipart Downloads http://www.GifArt.com - Original Message - From: Tyler Lane To: Gabriel Peugnet Cc: [EMAIL PROTECTED] Sent: Tuesday, October 14, 2003 5:31 PM Subject: Re: [PHP-DB] Can't conect

Re: [PHP-DB] Hyperlinking to a new page

2003-10-09 Thread Rob
Sorry I made a little mistake in my reply. Here is the correct syntax for what I think will work for you... script.php?variable=1 or script.php?variable=1&variable=2 Thanks, Robert Gillen http://www.GifArt.com - Original Message - From: Rob To: Shiloh Madsen ; [E

Re: [PHP-DB] Hyperlinking to a new page

2003-10-09 Thread Rob
I believe what you want to do is just add the variable onto the URL, like this... script.php?variable or script.php?variable&variable Does that help? Thanks, Robert Gillen http://www.GifArt.com - Original Message - From: Shiloh Madsen To: [EMAIL PROTECTED] Sent: Thursday, O

RE: [PHP-DB] variable within regular expression

2003-04-04 Thread Rob Bryant
> -Original Message- > From: Robbie Staufer [mailto:[EMAIL PROTECTED] > Sent: Friday, April 04, 2003 3:59 PM > To: [EMAIL PROTECTED] > Subject: [PHP-DB] variable within regular expression > > > > I have a php query form in which the user input must be converted to a > regular expression bef

Re: [PHP-DB] print table truncated

2003-03-31 Thread rob . koch
Dan, It is more of a HTML-related question: Need to change the table width in percentage (%) rather than just numbers. HTH, -rob "Dan Liu" <[EMAIL PROTECTED]> 03/31/2003 01:17 PM To: <<[EMAIL PROTECTED]> cc: Subject:[PHP-

[PHP-DB] Re: check boxes and php

2003-03-27 Thread Rob Adams
only if id is all integers. $in_list = implode(", ", $_POST["del"]); $query = "delete from table where id in ($in_list)"; } else $query = "delete from table where id = {$_POST['del']}"; That should work, no javascript necessary. -- Rob &q

[PHP-DB] MySQL JOIN problem

2003-03-11 Thread Rob Day
in libinfo, where libinfo.lib_id = reportinfo.lib_id, that do not have an entry in reportinfo where reportinfo.quarter = 0. I don't care if there is an entry in reportinfo where quarter = 2. Can someone please help me construct this query? Thanks. -Rob P.S. I realize that this question has nothing

Re: [PHP-DB] Query Help...

2003-03-10 Thread Rob Bryant
> > You have an error in your SQL syntax near '"group"' at line 1 > Have you tried using backticks in your query? E.g., $query_groups = "SELECT name FROM `group`"; -- rob -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DB] heredoc and coding standards

2003-02-03 Thread Rob Day
line." That means no tabs, right? So is that just the way it is? Do I just need to not worry about my tabs for heredoc? Is there some way to maintain consistency without breaking my code? -Rob -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DB] another parse error

2003-01-23 Thread Rob Day
other script works just fine. Both of these scripts are in the same directory and the lsladmin_connection.inc file is there. The #! path is correct. I just can't seem to see it. Sorry to burden the list with another parse error. Thanks. -Rob #!/usr/bin/php Number of books purchased wit

RE: [PHP-DB] MySql Statement inside a function?

2002-10-18 Thread Rob Day
in function. rather you should return the results. hope that helps. -rob -Original Message- From: Dave Carrera [mailto:dave@;davecarrera.com] Sent: Friday, October 18, 2002 10:52 AM To: [EMAIL PROTECTED] Subject: [PHP-DB] MySql Statement inside a function? Hi All I have created a fun

RE: [PHP-DB] advise needed for 'authorized only' site

2002-09-23 Thread Rob Day
point. Another option if your application is somehow linear would be to make sure that the referring page is what you wanted it to be. -Rob -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Monday, September 23, 2002 10:14 AM To: PHP_DB Subject: [PHP-DB] advise neede

[PHP-DB] MySQL timestamp field update problem

2002-09-11 Thread Rob Day
for me to update some of the records in my table. But whenever I send an UPDATE, the timestamp changes. I would like for the timestamp value to remain unchanged. Is there a way to do this without reading the old value of the timestamp and reinserting with my UPDATE query? Thanks. -Rob -- PH

RE: [PHP-DB] Checkbox/mySQL issues

2002-08-15 Thread Rob Day
Stephanie, Take a look at this: Option 1 Option 2 Option 3 Look at the names of the checkboxes. If they are all the same and end with [] as above, PHP will toss them into an array. So in the script that processes the form you will have access to an array named $option_val. Hope that helps. -Rob

[PHP-DB] variables gone?

2002-05-29 Thread Rob Fraser
Dear All, I am probably doing something silly but I don't know what (story of my life). I have just upgraded to 4.2.1 and now all the variables I post in forms or in query strings are now coming up undefined errors and are in absent. I'm running PHP under IIS 4. What am I doing wrong? -- PHP Data

RE: [PHP-DB] Recommendation needed: a php/mySQL program to batch e-mail announcements

2002-04-30 Thread Rob Day
why not just use a mailing list manager (i.e. majordomo, ezmlm, etc.)? writing a web interface for users to subscribe/unsubscribe would be no big deal. -Original Message- From: Al [mailto:[EMAIL PROTECTED]] Sent: Monday, April 29, 2002 11:37 AM To: [EMAIL PROTECTED] Subject: [PHP-DB] Reco

RE: [PHP-DB] IP Address?

2002-04-19 Thread Rob Day
Thanks, Craig. That was exactly what I was looking for! -Rob -Original Message- From: Craig Vincent [mailto:[EMAIL PROTECTED]] Sent: Friday, April 19, 2002 2:35 PM To: Rob Day; [EMAIL PROTECTED] Subject: RE: [PHP-DB] IP Address? > How can I find out the IP address of the cli

[PHP-DB] IP Address?

2002-04-19 Thread Rob Day
also can't use server side includes. An upgrade to PHP4 is in the works, but I can't wait that long. How can I get a client's IP address with PHP3.014 and/or JavaScript? Thanks in advance. -Rob -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DB] mssql problems

2002-04-19 Thread Rob Fraser
was $close"); = I run IIS4, NT4 (SP6a) and SQL 7 on the same machine as its my development one, out of date maybe but you should see my clothes but PHP was test downloaded a month ago - any ideas from a white knight? best regards Rob -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DB] Re: php-db Digest 18 Mar 2002 18:40:25 -0000 Issue 1105

2002-03-18 Thread Rob Small
date("Y-m-d", strtotime("+2 years")) or $date_var=date("Y-m-d H:i", strtotime("+2 years")) if you wanted hours/minutes either example formats in a way that MySQL wants to see a date or datetime field (respectively) hope it helps, ~ Rob Small c0demonkey Fresno, CA -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP-DB] Re: parse error

2001-12-13 Thread Rob Day
-DB] Re: parse error you haven't shut your script with the ?> before starting your HTML, near as I can figure it Rob Day wrote: > I've written a small script that processes a form from a webpage and sends > the submitted data as an HTML e-mail that has the form all filled

[PHP-DB] parse error

2001-12-13 Thread Rob Day
t;no 359Answer "yes" if you want all postings to the list to be sent to 360 a moderator for approval before distribution to the list. Any help would be greatly appreciated. Thanks! Rob Day Web Team Leader Texas State

[PHP-DB] Re: Speeding up database access

2001-10-05 Thread Rob UK
I forgot to say, I am using Oracle OCI to access the database: : $sSQL = "select label, text from language_text where language = 'English'"; $stmt = OCIParse($conn,$sSQL); OCIExecute($stmt); $nrows = OCIFetchStatement($stmt,$results); -- PHP Database Mailing List (http://www.php.net/) To unsubsc

[PHP-DB] Speeding up database access

2001-10-05 Thread Rob\[UK\]
I am just starting out on a project that has to be multi-lingual. i.e. every word/sentence I output has to be translated. The user logs in, and I read the language they use, by looking at the user record. I then need to get the language translations from a database. I just "select label, text f

Re: [PHP-DB] Photo Album Schema

2001-08-21 Thread Rob Hardowa
Good point, but if you are prefixing you should really use a separator that you can later remove with a string function (or regexp if complex). 1_1family.jpg 11_family.jpg You can use a string function to remove everything up to the _ and call that your ID. If you do not use a separator, extr

[PHP-DB] Re: pear db and pgsql

2001-05-02 Thread rob caSSon
> i'm having a hell of a time figuring out how to connect to a postgresql > database using the pear db abstraction...here's some code snippets: RTFM (or a tutorial rather)...hate when people answer their own questions, but here goes: > $db = DB::connect("pgsql://username:password@localhost/audio

[PHP-DB] pear db and pgsql

2001-05-02 Thread rob caSSon
i'm having a hell of a time figuring out how to connect to a postgresql database using the pear db abstraction...here's some code snippets: with mysql (works fine): require_once('DB.php'); $db = DB::connect("mysql://username:password@localhost/audio"); if (DB::isError($db

[PHP-DB] PHP4 to PHP3 problem

2001-04-10 Thread Rob Griffiths
help me "back convert" this routine into something PHP3 likes, I'd be greatly appreciative! It runs fine in PHP4, so I know the code works (even if it's not the most elegant of examples). I'm not a developer by trade, and I've never used PHP3, so I'm not sure wha

[PHP-DB] Robust OO Shopping Cart 4 sale

2001-04-09 Thread Rob Wheeldon
Hello all, PHP\MySQL shopping cart for sale www.firegarden.com/cart/ still under development (good price if you buy now). Top notch OO coding garenteed. go to firegarden.com and click the email link for more info. Rob -- PHP Database Mailing List (http://www.php.net/) To unsubscribe

[PHP-DB] Soap in php

2001-04-09 Thread Rob Wheeldon
Anyone here know of a good php soap tutorial? I have tried the one at gigatrends, but had no luck -- 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 P

[PHP-DB] Sessions and MySQL

2001-03-20 Thread Rob Wheeldon
I am trying to implement session support with mysql. I am using session.set_save_handler but don't really have a great set of functions does anyone have some good ones? -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: