Re: [PHP-DB] Re: Problem with query

2013-06-25 Thread Jim Giner
On 6/25/2013 2:32 AM, OJFR wrote: Yeah, Jim, please explain what u mean by "Per the manual, associative arrays using string indices should always use ' ' around them. They work (as mentioned in the manual) but are wrong". As long as I remember I could use associative arrays in that way (ex. $_S

Re: [PHP-DB] Re: Problem with query

2013-06-25 Thread Toby Hart Dyke
The original post is here: http://news.php.net/php.db/48751 On 6/25/2013 1:02 PM, Michael Oki wrote: I'm sorry I've not been following the last three responses. In a nutshell, what "EXACTLY" does the poster of this issue want? On 25 June 2013 11:06, Toby Hart Dyke wrote: What Jim means is

Re: [PHP-DB] Re: Problem with query

2013-06-25 Thread Jim Giner
On 6/25/2013 6:06 AM, Toby Hart Dyke wrote: What Jim means is here in the manual: http://www.php.net/manual/en/language.types.array.php#language.types.array.donts In a nutshell: Always use quotes around a string literal array index. For example, /$foo['bar']/ is correct, while /$foo[bar]/ is

Re: [PHP-DB] Re: Problem with query

2013-06-25 Thread Michael Oki
I'm sorry I've not been following the last three responses. In a nutshell, what "EXACTLY" does the poster of this issue want? On 25 June 2013 11:06, Toby Hart Dyke wrote: > > What Jim means is here in the manual: > > http://www.php.net/manual/en/**language.types.array.php#** > language.types.ar

Re: [PHP-DB] Re: Problem with query

2013-06-25 Thread Toby Hart Dyke
What Jim means is here in the manual: http://www.php.net/manual/en/language.types.array.php#language.types.array.donts In a nutshell: Always use quotes around a string literal array index. For example, /$foo['bar']/ is correct, while /$foo[bar]/ is not. The reason is that without the quotes

RE: [PHP-DB] Re: Problem with query

2013-06-24 Thread OJFR
Yeah, Jim, please explain what u mean by "Per the manual, associative arrays using string indices should always use ' ' around them. They work (as mentioned in the manual) but are wrong". As long as I remember I could use associative arrays in that way (ex. $_SESSION['Cust_Num']). There's another

Re: [PHP-DB] Re: Problem with query

2013-06-23 Thread Richard Quadling
On 23 June 2013 21:37, Ethan Rosenberg, PhD wrote: > On 6/23/2013 2:31 PM, Ethan Rosenberg, PhD wrote: > >> Dear List - >> >> There is an error in my query, and I cannot find it. >> >> This fails: >> >> $_SESSION['Cust_Num'] = $_REQUEST['cnum']; >> $_SESSION['CustNum'] = $_REQUEST['cnum']; >> >>

Re: [PHP-DB] Re: problem in connecting to mysql from php

2011-06-13 Thread Richard Quadling
On 13 June 2011 15:28, C0mf0rtably Numb <08.kus...@gmail.com> wrote: > My php and apache are working fine together. I was doing good with php and > apache until I decided to work with mysql. I will have a look at all the > links you provided and see if gives me a solution. Thanks. > > On Mon, Jun 1

Re: [PHP-DB] Re: problem in connecting to mysql from php

2011-06-13 Thread Richard Quadling
On 13 June 2011 14:12, C0mf0rtably Numb <08.kus...@gmail.com> wrote: > Any help? > > On Mon, Jun 13, 2011 at 5:38 PM, C0mf0rtably Numb <08.kus...@gmail.com>wrote: > >> Hello everyone, >> >> I am in the process of learning php and I was trying to connect to a mysql >> database on my own computer(loc

Re: [PHP-DB] Re : Problem with PDO exceptions

2009-03-09 Thread Daniel Carrera
Neil Smith [MVP, Digital media] wrote: When you create your DB connection $db, follow the connection line directly after with this : $db->setAttribute(PDO::ATTR_ERRMODE , PDO::ERRMODE_EXCEPTION); The default is I believe PDO::ERRMODE_SILENT which is confusing to most people the first time.

Re: [PHP-DB] RE: Problem installing mssql extension

2006-01-25 Thread Frank M. Kromann
The MSSQL extension does not rely on MySQL in any way. The only required DLL is ntwdblib.dll. It would help if you could post any error messages or some sample code that shows your problem. The 'correct' installation is to copy ntwdblib.dll to windows\system32 on the system that runs the PHP scri

RE: [PHP-DB] Re: Problem with mysql_connect(...)

2005-09-20 Thread Dan
27;s not recommended. -Original Message- From: viraj [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 20, 2005 12:14 AM To: Dan Cc: Michael Louie Loria; php-db@lists.php.net Subject: Re: [PHP-DB] Re: Problem with mysql_connect(...) this is a dll issue; if you are running php5 on windows

Re: [PHP-DB] Re: Problem with mysql_connect(...)

2005-09-20 Thread viraj
this is a dll issue; if you are running php5 on windows! read this.. http://www.experts-exchange.com/Web/Web_Languages/PHP/PHP_Installation/Q_21077014.html ~viraj. On 9/19/05, Dan <[EMAIL PROTECTED]> wrote: > If this is a windows computer, you might want to try adding C:\PHP (or > whatever di

RE: [PHP-DB] Re: Problem with mysql_connect(...)

2005-09-19 Thread Dan
If this is a windows computer, you might want to try adding C:\PHP (or whatever directory your PHP resides) into the path. I read somewhere that this needs to be done for PHP5 and MySQL. Not sure if it was true but seemed to clear up the problems I was having getting the 2 to talk to either other

[PHP-DB] solved [Re: [PHP-DB] Re: Problem with mysql_fetch_array after first loop...]

2005-03-03 Thread Jeffrey Baumgartner
That was indeed the problem and of course I should have seen it myself! Thanks very much, Jochem. Jeffrey Jochem Maas wrote: Steve McGill wrote: "Jeffrey Baumgartner" <[EMAIL PROTECTED]> schreef in bericht news:[EMAIL PROTECTED] I've made a little programme that deletes expired records from databas

Re: [PHP-DB] Re: Problem with mysql_fetch_array after first loop...

2005-03-03 Thread Jochem Maas
Steve McGill wrote: "Jeffrey Baumgartner" <[EMAIL PROTECTED]> schreef in bericht news:[EMAIL PROTECTED] I've made a little programme that deletes expired records from database tables. The troublesome bit looks like this... $query = "SELECT ic FROM ic_ic WHERE date <= CURDATE()"; $resu

Re: [PHP-DB] Re: problem....

2004-06-23 Thread Philip Thompson
I may be incorrect, but I do not think that by "redefining" the variable $pic is destroying its old contents. If you are familiar with how programming works, you realize that the "stuff" on the right side of the "=" sign is evaluated first, and then assigned to the left side of the "=" sign. Be

Re: [PHP-DB] Re: problem....

2004-06-23 Thread Cole S. Ashcraft
Kim, Won't redefining the variable destroy the MySQL Resource, resulting in a resource invalid error, like he has? $pic = mysql_query($sql,$connection); //Defines variable $pic //Redefining variable, dumps old contents = //calling on an invalid MySQL Resource, because it doesn't exist mysql_fetch

Re: [PHP-DB] RE: Problem

2003-11-06 Thread CPT John W. Holmes
From: "Jeremy Shovan" <[EMAIL PROTECTED]> > All I did was rewrite it exactly the same as it was and the > parse error disappeared. I have never seen anything quite > like this before. Seen this before. It's either the editor or a copy and paste operation adding weird "invisible" characters. Major

RE: [PHP-DB] Re: problem with php and unixODBC

2002-08-21 Thread Andrew Hill
Marten, Look at the output of a phpinfo() when you have the putenv()'s - you can see that there are a couple of different environments here. Best regards, Andrew Hill Director of Technology Evangelism OpenLink Software http://www.openlinksw.com Universal Data Access & Virtuoso Universal Server

RE: [PHP-DB] Re: Problem with buttons

2002-01-02 Thread Rick Emery
Those who are new to PHP, mySQL, or both, come to this list looking for help. Some posters are tentative about posting questions for fear of looking ignorant, or even worse. Responses, such as Mr Ferger's below, do not help this situation. If you have a suggestion for a poster, please make it w

RE: [PHP-DB] Re: Problem with odbc_next_result

2001-09-12 Thread Andrew Hill
Daniel, What driver are you using? I'll check your code against another one for comparison's sake, and do some property queries. Actually, if you want to query the driver for it's features yourself, you can download a trial of ODBCScan from our site. Best regards, Andrew Hill Director of Techno

RE: [PHP-DB] Re: problem running stored MsSQL procedure

2001-07-11 Thread Michael Yevdokimov
So what is actually the problem with running sp in mssql? Mike -Original Message- From: Carpe Diem Support [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 11, 2001 3:32 PM To: Hugh Bothwell; [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: RE: [PHP-DB] Re: problem running stored MsSQL