MCQs > IT & Programming > LAMP > What will be the value of, $num, if mytable contains 20 records out of which 10 have myprice=19, 5 have myprice=20 and 5 have myprice=2, before running the mysql_query? $resultSet=mysql_query('UPDATE mytable set myprice = 20 where myprice < 20'); $num=mysql_affected_rows();

LAMP MCQs

Based on the code given below, what will be the value of, $num, if mytable contains 20 records out of which 10 have myprice=19, 5 have myprice=20 and 5 have myprice=2, before running the mysql_query?

 $resultSet=mysql_query("UPDATE mytable set myprice = 20 where myprice < 20");
 $num=mysql_affected_rows();

Answer

Correct Answer: 10

Explanation:

Note: This Question is unanswered, help us to find answer for this one

LAMP Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

search

LAMP Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it