我一直在谷歌搜索过去几个小时,但我根本无法让我的阿帕奇开始.我的Skype没有运行,测试端口80显示它没有被任何东西使用.在此之前,我试图添加一个新的虚拟主机,但现在我已经恢复了所有更改的文件.无论如何调试为什么apache不会启动?
单击apache的启动/恢复服务也不会显示任何错误.
另外,以防万一,我正在运行Win7 64bit
我是php无脂肪框架的新手,我正在尝试弄清楚如何循环我的mysql查询结果,或者更好的是,将它作为一个关联数组(仅用于学习目的).
到目前为止我做了什么
while(!$users->dry()){
array_push($user_assoc,$users->cast());
$users->next();
}
Run Code Online (Sandbox Code Playgroud)
这有效,但我想知道是否有更好的方法来做到这一点?另外我如何设置错误处理程序?我的意思是如何检查查询是否有任何错误(即无脂肪等效mysql_error())?
我正在使用twitter bootstrap的选项卡导航,除此之外我使用的是jQuery dataTable.问题是我正在尝试扩大特定列,但无论我做什么,我都无法改变宽度.
我的桌子:
<table id="tbl_quantity" cellpadding="0" cellspacing="0" border="0" class="table table-striped table-bordered">
<!--thead section is required-->
<thead>
<tr>
<th data-class="expand" width="60">Quantity</th>
<th data-hide="phone,tablet">Type</th>
<th data-hide="phone,tablet">Price</th>
<th data-hide="phone,tablet">#/UM</th>
<th data-hide="phone,tablet">Text/Unit</th>
<th data-hide="phone,tablet">Text For Customer</th>
<th data-hide="phone,tablet">Weight(lb)</th>
<th data-hide="phone,tablet">Weight(kg)</th>
<th data-hide="phone,tablet">Sort Order</th>
<th data-hide="phone,tablet">Publish</th>
<th data-hide="phone,tablet">Action</th>
</tr>
</thead>
<!--tbody section is required-->
<tbody>
<tr>
<td>
<div class="form-group">
<input type="text" name="txt_ProdQty[]" class="txt_ProdQty form-control" placeholder="Ex: 10" required />
</div>
</td>
<td>
<div class="form-group">
<input type="text" name="txt_ProdQtyType[]" class="txt_ProdQtyType form-control" placeholder="Ex: stems" required/>
</div>
</td>
<td> …Run Code Online (Sandbox Code Playgroud)