Hello,
I seem to get an extra empty field in every 'mysql_fetch_ar ray' 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("SE LECT ID from tblName WHERE Name='Jane'");
if (!$oCursor)
{
$bGo = false;
}
else
{
$aRow = mysql_fetch_arr ay($oCursor);
}
results in:
count($aRow) = 2;
$aRow[0] = 1;
$aRow[1] = '';
Am I missing something, doing something wrong, a wrong PHP setting?
Thanks,
Marcel Brekelmans
I seem to get an extra empty field in every 'mysql_fetch_ar ray' 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("SE LECT ID from tblName WHERE Name='Jane'");
if (!$oCursor)
{
$bGo = false;
}
else
{
$aRow = mysql_fetch_arr ay($oCursor);
}
results in:
count($aRow) = 2;
$aRow[0] = 1;
$aRow[1] = '';
Am I missing something, doing something wrong, a wrong PHP setting?
Thanks,
Marcel Brekelmans
Comment