Answer the question
In order to leave comments, you need to log in
How to see assembler input parameters?
Hello. There is a source code in C that calls a function in assembler, but how to get the passed arguments, for example int function(int*,int,int); through register variables I can catch only the first pointer argument, but what about the rest of the arguments. Often I hear through the "stack"! then in which variable should it be stored (its top)?
Answer the question
In order to leave comments, you need to log in
You take 5 projects and select 5 news for each project in a cycle and display them.
$query= $mysqli->query("select id, name from projects limit 5");
while($project = $query->fetch_assoc()){
$news_query = $mysqli->query("select * from news where `project_id` = {$project[id]} order by `pubdate` desc limit 5");
while($news = $news_query ->fetch_assoc()){
echo $news['title'];
}
}
Everything is possible with one request. See the answer in the comments to habrahabr.ru/post/44807 There, a similar task is described, only with a blog and comments. With solutions.
There is a source code in C that calls a function in assembler, but how to get the passed arguments,
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question