\r\n\r\nfetchroomcount,php\r\n--------------------------\r\n\r\n$romm = mysql_query(\"select * from roomnos where rooma_type ='$aroomtype'\");\r\nwhile($romm3=mysql_fetch_array($romm))\r\n {\r\n echo \"\";\r\n } \r\n exit;\r\n}\r\n?>\r\n\r\n\r\nerror: (roomtype values obtained in params in developer tools view\r\nbut in response payload the error displayed)\r\n\r\nfetchroomcount.php:10: Warning: '' (UnsetValue) is an unknown callback name\r\nfetchroomcount.php:10: Warning: Callable: 'Array' is not a valid callable argument\r\n\r\nform -----display\r\n-------------------\r\nroomtype : -select- (option - type1, type2, type3)\r\nbutton(room required) clicked\r\nroom number: -select- ( ype1 - 1,2,3,4 ; type2 - 1,2,3 ; type3; 1,2,3,4,5) - should be fetched from database without refresh on same page itself","answerCount":2,"upvoteCount":1,"suggestedAnswer":[{"@type":"Answer","text":"First of all where is your input with id roomtype? \r\nThis is wrong: $(\"SelRooms\").\r\nTry to use mysqli or pdo instead of mysql.\r\nhttp://php.net/manual/en/pdo.connections.php","upvoteCount":0},{"@type":"Answer","text":"