What will happen if the following code is executed?
$resultSet = mysql_query("SELECT fname, lname FROM customers")
for ($nIndex = 0; $nIndex < mysql_num_rows($resultSet) ; $nIndex++)
{
if (!mysql_data_seek($resultSet, $nIndex))
{
echo "Cannot seek to row $nIndex\n";
continue;
}
if(!($row = mysql_fetch_object($resultSet)))
continue;
echo "$row->fname $row->lname<br />\n";
}
Correct Answer: The fnames and lnames of all the customers will be printed
Explanation:
Note: This Question is unanswered, help us to find answer for this one
More LAMP MCQ Questions