I created a view using phpmyadmin. The view is querying elgg tables. When querying the view using MySQL Workbench or phpmyadmin results are returned but not when using php. I get a fatal error. Can get_data only fetch core tables and not views?
p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #c33720} p.p2 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #34bbc7} span.s1 {font-variant-ligatures: no-common-ligatures; color: #ce7924} span.s2 {font-variant-ligatures: no-common-ligatures; color: #34bbc7} span.s3 {font-variant-ligatures: no-common-ligatures; color: #000000} span.s4 {font-variant-ligatures: no-common-ligatures} span.s5 {font-variant-ligatures: no-common-ligatures; color: #d53bd3} span.s6 {font-variant-ligatures: no-common-ligatures; color: #c33720}
$thewire_relatioships_sql = "select * from custom_thewire_relationships";
$thewire_rows = get_data($thewire_relationships_sql);
$thewire_rows_string = print_r($thewire_rows,true);
elgg_dump($thewire_rows_string);
info@elgg.org
Security issues should be reported to security@elgg.org!
©2014 the Elgg Foundation
Elgg is a registered trademark of Thematic Networks.
Cover image by RaĆ¼l Utrera is used under Creative Commons license.
Icons by Flaticon and FontAwesome.
- Alejandro@dveloper
Alejandro - 1 like
You must log in to post replies.Long day. I had a typo. It is working correctly. Disregard guys. LOL.