Re: [PHP] function returns no value

2008-04-21 Thread Ali Reza Sajedi
using $result->fields["fa"] did solve the problem. thanks very much Thijs - Original Message - From: "Thijs Lensselink" <[EMAIL PROTECTED]> To: Sent: Monday, April 21, 2008 2:48 PM Subject: Re: [PHP] function returns no value Quoting Ali Reza Sajedi &

Re: [PHP] function returns no value

2008-04-21 Thread Thijs Lensselink
The result is there, however, it couldn't be printed. Any ideas? Regards Ali - Original Message - From: Nathan Nobbe To: Ali Reza Sajedi Cc: php-general@lists.php.net Sent: Monday, April 21, 2008 12:42 AM Subject: Re: [PHP] function returns no value On Sun, Apr 20, 2008 at 4:5

Re: [PHP] function returns no value

2008-04-21 Thread Ali Reza Sajedi
7;t be printed. Any ideas? Regards Ali - Original Message - From: Nathan Nobbe To: Ali Reza Sajedi Cc: php-general@lists.php.net Sent: Monday, April 21, 2008 12:42 AM Subject: Re: [PHP] function returns no value On Sun, Apr 20, 2008 at 4:51 PM, Ali Reza Sajedi <[EMAIL PROTECTED]> wr

Re: [PHP] function returns no value

2008-04-20 Thread Liran Oz
Can't really know without the rest of the code. Check if the function really returns and not Dying (Add some messege like: die("help me I'm dying"); ). Also use print_r or something like to see what's inside the fields array. it is possible that it's an associative array and you are using the w

Re: [PHP] function returns no value

2008-04-20 Thread Nathan Nobbe
On Sun, Apr 20, 2008 at 4:51 PM, Ali Reza Sajedi <[EMAIL PROTECTED]> wrote: > Hello, > > with the following call I try to print a string out of DB > > echo $allg->translate($db, $lang, 14, "auth/authCallback", 4); > > function translate () should do a DB querry and returns the requested > string.

RE: [PHP] Function returns

2004-01-12 Thread Jonathan Wilkes
] Subject: RE: [PHP] Function returns Shawn McKenzie wrote: > Maybe a dumb question, but as good coding practice, should all functions > return something even if they don't need to??? > > Example: > > function do_it() > { >echo "hi"; > } > > --or

RE: [PHP] Function returns

2004-01-12 Thread Mark Cubitt
Shawn McKenzie wrote: > Maybe a dumb question, but as good coding practice, should all functions > return something even if they don't need to??? > > Example: > > function do_it() > { >echo "hi"; > } > > --or-- > > function do_it() > { >return echo "hi"; > } > > Also, if they do other th

Re: [PHP] Function returns

2004-01-12 Thread Burhan Khalid
Shawn McKenzie wrote: Maybe a dumb question, but as good coding practice, should all functions return something even if they don't need to??? Example: function do_it() { echo "hi"; } --or-- function do_it() { return echo "hi"; } Also, if they do other things but really don't return anythin

Re: [PHP] Function returns an array of objects...

2003-02-27 Thread Tom Rogers
Hi, Friday, February 28, 2003, 4:24:54 PM, you wrote: AS> so i have a function that creates objects (with member variables) and AS> pushes those objects onto the array. after adding all of the objects, AS> the function then returns the array... AS> i'm having trouble accessing the members of ea