tellyphp Posted May 20, 2014 Share Posted May 20, 2014 I have a problem: I have some PHP code as show below and every time I add the code at the while loop which starts while($select_stmt->fetch()), I immediately get an error and my page did not display. I downloaded the Zend Studio IDE and at the same line it highlights an error which states "Multiple annotations found at this line. Syntax error unexpected ->, unexpected ')'. I have no clue how to resolve the error as I am new to PHP programming and the "Fix" option from the compiler offers no suggestions. See the attached code file code.txt Link to comment https://forums.phpfreaks.com/topic/288614-multiple-annotations-error-in-zend-studio-for-fetch-statement/ Share on other sites More sharing options...
kicken Posted May 21, 2014 Share Posted May 21, 2014 In your code, you are missing the $ on select_stmt in your while loop. You have: while (select_stmt->fetch()){ It should be: while ($select_stmt->fetch()){ Link to comment https://forums.phpfreaks.com/topic/288614-multiple-annotations-error-in-zend-studio-for-fetch-statement/#findComment-1480241 Share on other sites More sharing options...
tellyphp Posted May 23, 2014 Author Share Posted May 23, 2014 Thanks so much. I really overlooked that '$'. Telly Link to comment https://forums.phpfreaks.com/topic/288614-multiple-annotations-error-in-zend-studio-for-fetch-statement/#findComment-1480546 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.