EZ Results
how to use multiple ezr instances?
Submitted by kaufman on Wed, 2006-05-03 13:18. EZ ResultsI'd like to display 2 or more sets of results, each from a different SQL statement. so far, I haven't had any problem with reusing the $ezr object after i've called $ezr-display:
$ezr->prep_sql($SQL_1);
$ezr->query_mysql($SQL_1);
$ezr->display();
$ezr->prep_sql($SQL_2);
$ezr->query_mysql($SQL_2);
$ezr->display();
My problem is that i'd like to register different functions for each SQL statement. when I do this:
$ezr->prep_sql($SQL_1);
$ezr->register_function('MyCoolFunction');
$ezr->query_mysql($SQL_1);
$ezr->display();
Help needed displaying rows
Submitted by solfer on Mon, 2006-05-01 18:51. EZ ResultsI have a simple DB table structure of 'Month' 'Week' 'Price'. If, for example I have 4 rows for Month 'January', and I want to output the following table structure from EZ Results:
[table]
[tr][td colspan=2]January[/td][/tr]
[tr][td]Week1[/td][td]Price[/td][/tr]
[tr][td]Week2[/td][td]Price[/td][/tr]
[tr][td]Week3[/td][td]Price[/td][/tr]
[tr][td]Week4[/td][td]Price[/td][/tr]
[/table]
I can see how simple it is to output the Week rows, but can't fathom out how to only display the Month row ONCE ONLY..?
Any help appreciated.
ezResults and MS SQL
Submitted by d3vkid on Thu, 2006-04-27 19:00. EZ ResultsDoes anyone have experience with ezResults and MS SQL? How would mssql_query look like is the main question? Anyone?
Checkboxes
Submitted by swifttide on Thu, 2006-04-20 14:27. EZ ResultsHi All.
I am using Ezresults to send me a table of information. Currently, the last column is a "Select" link that has the item id tied to it, so if i click select next to any of the table items, I can go to another screen and edit or view that item.
I now want to replace that with a checkbox. In this way (I am hoping), a user could check off 10 or 20 items, clikc submit, and I somehow would be able to cycle thru the page and grab all the items that were selected. But I am having no luck at all adding a checkbox with the itemid attached to it (it is pulled from a MySQL Db, and COL1 has the item id).
Navigation Images
Submitted by battalion on Tue, 2006-04-11 14:56. EZ ResultsHas anyone modified ez_results to work with images for the navigation links?
ezr->register('function') *very* confused
Submitted by sarah_h on Thu, 2006-04-06 18:11. EZ ResultsHi All,
I understand the principal behind the way to manipulate data before it's output. However, once I've made my function where do I put it!? I'm using one of JV's output templates BTW. Anyway I made a fuction and I tried placing it in my script which calls ezr and I tried popping it into the template itself but no luck, I can't get anything to show up (no errors, just not showing up). Would someone be kind enough to illustrate an example of where to put the function and a sample call etc.
Sarah
Persisting current page
Submitted by jsantari on Mon, 2006-04-03 02:30. EZ ResultsI have a EZ Results list display where I have placed my own edit link on each row display to allow me to edit the content of any row. However after I click on my link the list returns to page 1 when my edit for is displayed. How can I persist the current page so that the list display stays on the current page while I display the edit form and save any updates?
Jim
Fatal error:
Submitted by mironcaius on Thu, 2006-03-30 22:15. EZ ResultsFatal error: Call to a member function get_var() on a non-object in E:\www\work\actionstrategy\lib\ez_results.php on line 622
I keep getting this error, someone told me to try to use
Comment out the global ${$this->ez_sql_object};
Replace it with: $db = $this->ez_sql_object;
it worked the first time but then I have overwritten some files and keep getting this error.
Can plz someone help me.
Filtering Results via Drop Down Menus - Please help!
Submitted by ajj949 on Wed, 2006-03-29 16:30. EZ ResultsHi, I love using EZ results but I was wondering if any one could help me. I have a few drop down fields that I want to filter my results by. The value of the drop down selections is the ID of the field that I want to filter by. For instance, I want to be able to filter by Company and then maybe by Open POs and then by Date, etc.
My question is how do I make it so that I can build a query from these items and have the filterd results display in EZR? I think it would be easy if it were just one field but I have multiple fields to query by and some may not be used in each query. Can some one people point me in the right direction?
Bug when using ezresults without cookies
Submitted by carnalito on Sat, 2006-03-25 08:54. EZ ResultsHi,
in line 315 is the following code:
. '?BRSR=0'.$this->qs.'"'
wich runs on an (silent) error: the SID would not be added because there is no blank.
switch this to:
. '?BRSR=0'.$this->qs.'" '
and you are done.
Regards
carnalito
