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)
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
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
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!
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
) 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
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
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
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
9 matches
Mail list logo