|
|
An Extra Last Empty Field In An 'mysql_fetch_array' Result Array?
I seem to get an extra empty field in every 'mysql_fetch_array' command I issue. For example:
I have a simple table 'tblName':
ID Name 1 Jane 2 Joe 2 Doe
The following code:
$oCursor = mysql_query("SELECT ID from tblName WHERE Name='Jane'"); if (!$oCursor) { $bGo = false; } else { $aRow = mysql_fetch_array($oCursor); }
results in:
count($aRow) = 2;
$aRow[0] = 1; $aRow[1] = ''
Am I missing something, doing something wrong, a wrong PHP setting?
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
|
|
|