many thanks
how to execute method and store the value in variable
Moderator: General Moderators
how to execute method and store the value in variable
hi, i was just wondering if i can store the value of the method in a variable. to make it clear, for examplpe i have a button with a method myMethod(), when i open a php page, that method is executed immediately even before clicking the button, and the value of that method will be stored inside a variable.
many thanks
many thanks
ok thank you. here's the method
and here's the generated value of that record
thanks.
Code: Select all
getlog();before generating that value, i need to click on the button to trigger the getlogs() method. what i need to do is that when the page is loaded first time, that value will be generated and store it to a variable without clicking the button.reports.php?tab=td&rpt=16&sort=monthly&sortmonth=&sortweek=&startdate=&enddate=
thanks.
Use the assignment operator to store the return value of a function or method in a variable.
see http://de2.php.net/manual/en/language.o ... gnment.php
see http://de2.php.net/manual/en/language.o ... gnment.php