我的数据库中有类似于下面的文本
this is my car
how are you,doing
how is your)health
this is not(working
Run Code Online (Sandbox Code Playgroud)
当我查询数据库时,我应该从这篇文章中得到最后的话。在这个例子中
1st row should return "car"
2nd row should return "doing"
3rd row should return "health"
4th row should return "working"
Run Code Online (Sandbox Code Playgroud)
关于如何获得这个的任何想法?
谢谢你的帮助
问候
基兰
我正在建立一个基于ajax的网站.对于基于Ajax的网站来说,DFP是一个很好的赚钱解决方案.同样在DFP中,您可以启用Adsense来展示广告(您可以参考以下链接).
http://support.google.com/dfp_sb/bin/answer.py?hl=en&answer=1670087
http://support.google.com/dfp_sb/bin/answer.py?hl=en&answer=112640
1)DFP: -您可以在ajax代码中使用它
2)Adsense: -您无法直接使用Ajax显示它(根据条款和条件)
但是我们可以在DFP广告管理系统中显示我正在使用ajax加载的Adsense吗?任何人使用这种方法或是否违反了广告意义上的条款和条件?
谢谢你们
我有以下代码
<form id="editProfileForm" class="form-horizontal span8" method="post">
<div class="control-group">
<label class="control-label" for="inputSubject">Subject</label>
<div class="controls">
<input type="text" id="inputSubject" class="span8" >
</div>
</div>
<div class="control-group">
<label class="control-label" for="inputTags">Tags</label>
<div class="controls">
<input type="text" id="inputTags" class="span3">
</div>
</div>
<div class="control-group">
<label class="control-label" for="inputAccess">access</label>
<div class="controls">
<input type="text" id="inputAccess" class="span3">
</div>
</div>
Run Code Online (Sandbox Code Playgroud)
我得到的形式如下 
有人可以建议我如何得到如下吗?谢谢你的帮助

我有两张表帖子和评论
邮政表
Post_id
Post_content
Run Code Online (Sandbox Code Playgroud)
评论表
comment_id
Comment
post_id
created_date
Run Code Online (Sandbox Code Playgroud)
一篇文章可以有多个评论或零评论
我的要求是使用左外连接获取帖子的最新评论.
我的意思是结果应该是具有以下列的帖子的一个记录.
post_id,post_content ,comment_id,comment
Run Code Online (Sandbox Code Playgroud)
简单来说,如果帖子存在,帖子应该与他们的最新评论相处.
(目前系统首先获得帖子,然后再次访问服务器以获取最新的评论显示,想到一次性获取它们,因为我们最初只显示一条评论...不确定什么应该是最好的方法如果想要显示多条评论..?)
谢谢
问候
基兰
我有一个CJuiDialog,下面是代码
<?php $this->beginWidget('zii.widgets.jui.CJuiDialog', array(
'id'=>'mymodal',
'options'=>array(
'title'=>'Your 10 seconds take you into ....',
'width'=>700,
'height'=>400,
'autoOpen'=>true,
'resizable'=>false,
'modal'=>true,
'closeOnEscape' => false,
),
)); ?>
Run Code Online (Sandbox Code Playgroud)
在这个对话框中,我有表格,并在下面提交按钮的形式
<?php echo CHtml::submitButton('Submit', array('onclick'=>'js:function(){ alert("test"); $(#mymodal).dialog("close");}',
)); ?>
Run Code Online (Sandbox Code Playgroud)
单击此按钮,我想关闭此对话框并提交表单.但是我在Button中编写的上述代码无效.任何语法错误?
我试过的其他方法是,我在对话框中使用按钮并能够使用关闭对话框
`js:function(){$(this).dialog("close")`
Run Code Online (Sandbox Code Playgroud)
但我无法在那里提交表格.所以采取了第一种方法.
任何人都可以帮我解决问题吗?
感谢致敬
基兰