Jump to content

Use of labels in mysqli_fetch_array


ameliabob

Recommended Posts

I recently upgrade to mysql 5.6.12 and php 5.4.16 and now my retrievals don't allow the same labels to be used.

 

i.e.

 

 

Array ( [0] => 7NAMTQ [userID] => 7NAMTQ [1] => WhatIf [profileName] => WhatIf [2] => 83 [marketToView] => 83 [3] => 2009-02-21 [dateStarted] => 2009-02-21 [4] => 2011-07-01 [lastDateUsed] => 2011-07-01 [5] => 3 [riskPC] => 3 [6] => 30000 [cashValue] => 30000 [7] => 30470 [acctValue] => 30470 [8] => 30000 [marginAvailable] => 30000 [9] => 2100 [marginUsed] => 2100 [10] => 0.75 [stopPC] => 0.75 [11] => 0.75 [stop1PC] => 0.75 [12] => Y [followGaps] => Y [13] => 0.75 [addonPC] => 0.75 [14] => 6 [lastCompletedAction] => 6 [15] => 127 [oiFilter] => 127 [16] => 57 [accesses] => 57 [17] => Y [moveStops] => Y [18] => P [profileType] => P [19] => N [showZeroQty] => N [20] => 30000 [yesterdaysValue] => 30000 )	1										( ! ) Notice: Undefined index: dateLastUsed in C:wampwwwtestcomsumcomsumFunctions.php on line 97											Call Stack											#							Time							Memory							Function							Location											1							0.0020							149584							{main}( )							..comsumProcess.php:0											2							0.0720							200136							LogIn( )							..comsumProcess.php:17			

 

This is generated from where the line $uDate = $r[dateLastUsed]; is line 97

 

            $r = mysqli_fetch_array($result);print_r($r);

 

Have I missed a documentation change??

 

Bob

 

 

 

 

 

[/codebox]

 

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...