Msg#: 4618277 posted 4:29 am on Oct 22, 2013 (gmt 0)
I am developing a software for online test in PHP for mobile phones.While, running question.php in windows ,I am getting warning:select_mysql_db() expects parameter 2 to be resource ,boolean given in C://wamp/www/student/question.php on line 254. The line number 254 is $db_result = mysql_select_db($database, $con) in my PHP code. Also I am getting:warning mysql_fetch_assoc() expects parameter 1 to be resource ,boolean given in C://wamp/www/student/question.php on line 367.The line number 367 is $sqlArr = mysql_fetch_assoc($sqlQuer). My PHP code is given below.Any one please help me to solve this.Thanks in advance.