Fanda wrote:
> how to solve this problem:
>
> If I write a repository for each entity, article and autor for
> example, article is composed of autor and some other things, then I
> want to select some articles:
>
> $articles = $articleRepo->findLast(10);
> foreach ($articles as $article) {
>
foreach ($articles as $author => $article) {
echo("author".$i." =".$author."article=".$article);
}
I think. I could be corrected. Not to mention, did you mean to spell your
function like this? getAutor? Or did you mean getAuthor?
HTH,
Best,
Karl
Sent from losPhone
On Nov 20, 2011, at 8:24
Hi,
how to solve this problem:
If I write a repository for each entity, article and autor for example, article
is composed of autor and some other things, then I want to select some articles:
$articles = $articleRepo->findLast(10);
foreach ($articles as $article) {
// echo article content
I would guess that:
$data = mysql_fetch_assoc(mysql_query("select * from some_table limit 1"));
would be faster than:
$pointer = mysql_query("select * from some_table limit 1");
$data = mysql_fetch_assoc($pointer);
but I'm not sure, php may optimize this. Anyone know the answer?
I'm taking ove
on 1/21/03 6:16 AM, Baumgartner Jeffrey at [EMAIL PROTECTED]
appended the following bits to my mbox:
> 1. If I am creating a web page with numerous PHP calls to an MySQL database
> is it more efficient to have lots of small blocks of php in an html page or
> is it better to have just one or two bi
A couple of questions of efficiency, please:
1. If I am creating a web page with numerous PHP calls to an MySQL database
is it more efficient to have lots of small blocks of php in an html page or
is it better to have just one or two big blocks of PHP with the html code
being delivered via echo st