Re: [PHP] error message

2006-04-27 Thread cybermalandro cybermalandro
I am running an old version of PHP for winblows 4.3.8. I cannot upgrade to
4.4.2 yet.  I rebooted the web server and the box.  I am not doing any
exception handling.  I want the errors to be writtent to a log but instead
they keep showing in the browser.  Is there something I am missing? I did
set display_errors to off in the php.ini file.

Thanks,

cybm

On 4/26/06, Jason Barnett [EMAIL PROTECTED] wrote:

 Let's not open an error report just yet... there are already too many
 bugs in the database!  A snippet of the relevant code would be nice
 though.

 Perhaps your odbc_errormsg($conn) is being echo'd to stdout?  Or you are
 using those fun Exception beasts?


 On 4/26/06, chris smith [EMAIL PROTECTED] wrote:

  On 4/27/06, cybermalandro cybermalandro [EMAIL PROTECTED] wrote:
  I have set in display_errors = off on my php.ini but I can still see
 ODBC
  related error messages when I try to duplicate an ODBC error. Am I
 missing
  something to turn this off?

 Can you produce a small test case? Maybe post a bug report:
 http://bugs.php.net

 --
 Postgresql  php tutorials
 http://www.designmagick.com/

 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php





[PHP] error message

2006-04-26 Thread cybermalandro cybermalandro
I have set in display_errors = off on my php.ini but I can still see ODBC
related error messages when I try to duplicate an ODBC error. Am I missing
something to turn this off?

Thanks!


Re: [PHP] error message

2006-04-26 Thread cybermalandro cybermalandro
Yes,
Yes and
Yes although I am not running apache I am running IIS.

On 4/26/06, Richard Lynch [EMAIL PROTECTED] wrote:

 On Wed, April 26, 2006 4:08 pm, cybermalandro cybermalandro wrote:
  I have set in display_errors = off on my php.ini but I can still see
  ODBC
  related error messages when I try to duplicate an ODBC error. Am I
  missing
  something to turn this off?

 Does ?php phpinfo();? reflect your changes to php.ini?
 Does that output indicate you are changing the correct php.ini?
 Did you restart Apache?

 --
 Like Music?
 http://l-i-e.com/artists.htm





[PHP] Array Question

2006-03-29 Thread cybermalandro cybermalandro
So, I have an array that looks like this


rray(3) {
  [0]=
  array(8) {
[line]=
string(1) 1
[ponbr]=
string(5) 34474
[emt]=
string(3) yes
[qty]=
string(1) 5
[price]=
string(2) 19
[shipdate]=
string(8) 11/06/07
[tracking]=
string(17) 1
[approved]=
string(4) true
  }
  [1]=
  array(8) {
[line]=
string(1) 1
[ponbr]=
string(5) TEST1
[emt]=
string(3) yes
[qty]=
string(1) 5
[price]=
string(2) 19
[shipdate]=
string(8) 12/04/06
[tracking]=
string(9) 123123123
[approved]=
string(4) true
  }
  [2]=
  array(8) {
[line]=
string(1) 2
[ponbr]=
string(5) TEST1
[emt]=
string(3) yes
[qty]=
string(1) 5
[price]=
string(2) 12
[shipdate]=
string(8) 12/04/06
[tracking]=
string(12) 123123123123
[approved]=
string(4) true
  }
}


I want to see if the array[ponbr]  values matched then pick this array and
construct another one with the matched arrays so I can get something like
this

  [0]=
  array(8) {
[line]=
string(1) 1
[ponbr]=
string(5) TEST1
[emt]=
string(3) yes
[qty]=
string(1) 5
[price]=
string(2) 19
[shipdate]=
string(8) 12/04/06
[tracking]=
string(9) 123123123
[approved]=
string(4) true
  }
  [1]=
  array(8) {
[line]=
string(1) 2
[ponbr]=
string(5) TEST1
[emt]=
string(3) yes
[qty]=
string(1) 5
[price]=
string(2) 12
[shipdate]=
string(8) 12/04/06
[tracking]=
string(12) 123123123123
[approved]=
string(4) true
  }

What is the best way to do this efficiently?

Thanks for your input!


[PHP] Re: Array Question

2006-03-29 Thread cybermalandro cybermalandro
Well I don't want have to specify $val['ponbr'] == 'TEST1' I want to say if
($val['ponbr'] == repeated value) then $resultArray[$key] = $val;

In other words I want to go through the array matched the values of ponbr
that repeat or are the same so if they match then I put the results in
another array.  Does this make sense? sorry I have difficulties with arrays
still.

thnx for your input

On 3/29/06, M. Sokolewicz [EMAIL PROTECTED] wrote:

 cybermalandro cybermalandro wrote:

  So, I have an array that looks like this
 
 
  rray(3) {
[0]=
array(8) {
  [line]=
  string(1) 1
  [ponbr]=
  string(5) 34474
  [emt]=
  string(3) yes
  [qty]=
  string(1) 5
  [price]=
  string(2) 19
  [shipdate]=
  string(8) 11/06/07
  [tracking]=
  string(17) 1
  [approved]=
  string(4) true
}
[1]=
array(8) {
  [line]=
  string(1) 1
  [ponbr]=
  string(5) TEST1
  [emt]=
  string(3) yes
  [qty]=
  string(1) 5
  [price]=
  string(2) 19
  [shipdate]=
  string(8) 12/04/06
  [tracking]=
  string(9) 123123123
  [approved]=
  string(4) true
}
[2]=
array(8) {
  [line]=
  string(1) 2
  [ponbr]=
  string(5) TEST1
  [emt]=
  string(3) yes
  [qty]=
  string(1) 5
  [price]=
  string(2) 12
  [shipdate]=
  string(8) 12/04/06
  [tracking]=
  string(12) 123123123123
  [approved]=
  string(4) true
}
  }
 
 
  I want to see if the array[ponbr]  values matched then pick this array
 and
  construct another one with the matched arrays so I can get something
 like
  this
 
[0]=
array(8) {
  [line]=
  string(1) 1
  [ponbr]=
  string(5) TEST1
  [emt]=
  string(3) yes
  [qty]=
  string(1) 5
  [price]=
  string(2) 19
  [shipdate]=
  string(8) 12/04/06
  [tracking]=
  string(9) 123123123
  [approved]=
  string(4) true
}
[1]=
array(8) {
  [line]=
  string(1) 2
  [ponbr]=
  string(5) TEST1
  [emt]=
  string(3) yes
  [qty]=
  string(1) 5
  [price]=
  string(2) 12
  [shipdate]=
  string(8) 12/04/06
  [tracking]=
  string(12) 123123123123
  [approved]=
  string(4) true
}
 
  What is the best way to do this efficiently?
 
  Thanks for your input!
 
 $resultArray = array();
 foreach($array as $key=$val) {
 if($val['ponbr'] === 'TEST1') {
 $resultArray[$key] = $val;
 }
 }

 $resultArray will contain the output you specified; pretty quick IMO.

 - tul



[PHP] Array Question again

2006-03-29 Thread cybermalandro cybermalandro
Let me try this again.  I want to take an array that may look like this

array(2) {

  [0]=
  array(8) {
[line]=
string(1) 1
[ponbr]=
string(5) TEST1
[emt]=
string(3) yes
[qty]=
string(1) 5
[price]=
string(2) 19
[shipdate]=
string(8) 12/04/06
[tracking]=
string(9) 123123123
[approved]=
string(4) true
  }
  [1]=
  array(8) {
[line]=
string(1) 2
[ponbr]=
string(5) TEST1
[emt]=
string(3) yes
[qty]=
string(1) 5
[price]=
string(2) 12
[shipdate]=
string(8) 12/04/06
[tracking]=
string(12) 123123123123
[approved]=
string(4) true
  }
}

if array['ponbr'] has the same value for all the arrays I want to
merge then to get.  Hope this make sense, I appreciate any input you
can give me to do this efficiently.


array(1) {

  array(8) {
[line]=
string(1) 1
[ponbr]=
string(5) TEST1
[emt]=
string(3) yes
[qty]=
string(1) 5
[price]=
string(2) 19
[shipdate]=
string(8) 12/04/06
[tracking]=
string(9) 123123123
[approved]=
string(4) true
[line]=
string(1) 2
[emt]=
string(3) yes
[qty]=
string(1) 5
[price]=
string(2) 12
[shipdate]=
string(8) 12/04/06
[tracking]=
string(12) 123123123123
[approved]=
string(4) true
  }
}





Thanks,

cybm


[PHP] another simple array question

2005-11-18 Thread cybermalandro cybermalandro
I have an array with indexes 0 to 4 and I want to delete an element of the
array if the index is equals 4. I want to delete the variable key and value.
What is the best way to do so?

foreach ($values as $key = $val){

if ($key == 0) {
//
}
if ($key == 3) {
//
}
if ($key == 4) {
//delete value from array

}
}

Thanks!


[PHP] arrays question

2005-11-11 Thread cybermalandro cybermalandro
I have this that looks like this

array(3) {
  [0]=
  array(2) {
[0]=
string(1) 1
[1]=
string(1) 2
  }
  [1]=
  array(2) {
[0]=
string(3) 492
[1]=
string(3) 211
  }
  [2]=
  array(2) {
[0]=
string(2) 11
[1]=
string(2) 20
  }
}

I want to loop through so I can get and print 1,492,11 and
2,211,20 What is the best way to do this? I suck with arrays and
I can't get my looping right.

Thanks for your help anybody!


[PHP] PROGRESS SQL_CUR_USE_ODBC

2005-10-04 Thread cybermalandro cybermalandro
I am connecting to a PROGRESS DB through the MERANT ODBC driver, When I have
the 4th parameter SQL_CUR_USE_ODBC as shown, my queries return nothing but
if I have the 4th parameter as lower case it returns my query results but
with a PHP error complainning
*Notice*: Use of undefined constant sql_cur_use_odbc - assumed
'sql_cur_use_odbc'

Wtf? I don't get it, most of the documentation from people connecting to
PROGRESS do have the 4th parameter uppercase can someone help me out ?

Thanks!