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 &
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
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
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
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.
]
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
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
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
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
9 matches
Mail list logo