zen new new
我只需要从我的问答中抽出5个结果,我如何能够这样做? 我试图解释自己:
$var = $db->query($sql);
while($rows = $var->fetch()) {
$msg = loop from 1 to 5 ;
}
return $this->view->msg = $msg;
希望你们能理解我的问题,我已经知道,判决不是正确写的,而是让自己理解。
增 编
zen new new
我只需要从我的问答中抽出5个结果,我如何能够这样做? 我试图解释自己:
$var = $db->query($sql);
while($rows = $var->fetch()) {
$msg = loop from 1 to 5 ;
}
return $this->view->msg = $msg;
希望你们能理解我的问题,我已经知道,判决不是正确写的,而是让自己理解。
增 编
Maybe something like this might help get you on your way?
$var = $db->query($sql);
for($i = 0; $i<5; $i++) {
$row = $var->fetch()) {
$msg = loop from 1 to 5 ;
}
return $this->view->msg = $msg;
考虑在您的发言中使用<条码>LIMIT 5。 如果你告诉服务器,你只需要5个结果,那么情况就更糟。 否则的话,如果只有4个例外,你可能会陷入一个无效的例外。
泽斯德邮局在名称被定为具有外国性质(如“保”)和 com(”)的物品时,就放弃了一种例外(因为邮局(邮局)退回假)。 重新提出以下守则。
I have a Zend Framework application that is making use of jQuery UI. In my controllers, I am setting error/success messages with the FlashMessenger helper like this: // ExampleController.php $this-&...
I am going to be builiding a site like ebay - with all the features of ebay. Please note my payment method is limited to paypal. What would be the best PHP framework to use to build this quickly, ...
我把我的用心从使用QQL转向MySQL。 它与凯科特合作,现在不工作,因为我已经改变,使用MySQL。 这里的错误信息是:
Is it possible to redirect the browser to nth step in the onepage checkout? If so, how would one go about doing it? I m working on a payment module and have a sort of "cancel" action that i would ...
Hey guys - here s a question on Zend Framework or better on MVC in general: I am asking myself for a quiet a long time now, if it is a good idea to push business objects (User, Team, etc.) to my ...
I m trying to create the same solutions as below, but using a simple MySQL query (instead of the static version used below where the words/tags are implemented in the code). The name of the MySQL ...
I hope that this is a quick question to answer. I am developing a form using Zend_Form, I have a number of Zend_Dojo_Form_Element_Textboxs to add to this form dynamically. These are added from rows ...