aloha all -
i have a new commercial install of EE and i am attempting to access some mysql tables not part of the EE database through a php block in an EE template. (different mysql database but same database user as the EE database)
i am getting a Server Error when trying to update the template whenever i include the mysql keyword “FROM” inside of a php block. (php has been enabled for the template with input parsing). even if i remove “FROM” from the query string and place it anywhere within the php block and try to update the template i get the error. if i make the slightest change to “FROM” (like deleting any one of the letters or the whole word itself) the template updates normally saving the changes.
i searched the forums to no avail. can anyone point in a reasonable direction to figure this out?
just some extra info: the php code will execute and the query runs normally if i put the code in a separate .php file, upload to the server, and call the file from a browser.
thanks in advance for any assistance . . .
ric