我有下表:
| campaign_id | source_id | clicked | viewed |
----------------------------------------------
| abc | xxx | 0 | 0 |
| abc | xxx | 1 | 0 |
| abc | xxx | 1 | 1 |
| abc | yyy | 0 | 0 |
| abc | yyy | 1 | 0 |
| abc | yyy | 1 | 1 |
| abc | yyy | 0 | 0 |
Run Code Online (Sandbox Code Playgroud)
我需要以下输出:
xxx > Total: 3 // …Run Code Online (Sandbox Code Playgroud) 如何更改下面元素的位置
<div style="z-index:101; position: absolute; left: 0px; top: 324px; width: 20px; height:450px; padding: 0px; border: 0px;" id="wrapper" >Content</div>
Run Code Online (Sandbox Code Playgroud)
至"左:100px;顶部:100px;"
我不需要复杂的功能,只需要一个简单的解决方案.
谢谢你的帮助 :)
我的mysql插入语句有问题.我有一个表单,正确地向插入文件提交utf-8字符(我检查了POST变量).
现在,当我在我的数据库中查看INSERT时,没有变音符号,而是问号.
错误必须在insert语句之前.
如果我从我的数据库输出(手动输入)内容,则会正确显示变音符号.
// echo $_POST["title"];
// outputs correctly with special chars: "Some german title with umlaute ä ö ü"
mysql_query("INSERT INTO videos (youtube_hash, title, description, category, created) VALUES ('".mysql_real_escape_string($_POST["hash"])."', '".mysql_real_escape_string($_POST["title"])."', '".mysql_real_escape_string($_POST["desc"])."', '".mysql_real_escape_string($_POST["cat"])."', '".time()."')") or die(mysql_error());
// database entry looks like this: "Some german title with umlaute ? ? ?"
Run Code Online (Sandbox Code Playgroud)
我希望有人可以帮助我:)
编辑:
htmlentities()完成了这项工作!
我想把焦点放在我网站上的文本字段中.有两个问题:
这是我想要关注的文本字段的HTML代码()
<div class="UIComposer_InputShadow"><textarea placeholder="Discuss this event" onfocus="window.UIComposer && UIComposer.focusInstance("c4d1cd73d90f2f8884818513");" name="status" id="c4d1cd73d90f2f8884818513_input" title="Discuss this event" class="UIComposer_TextArea DOMControl_placeholder">Discuss this event</textarea></div>
Run Code Online (Sandbox Code Playgroud)
注意,"c4d1cd73d90f2f8884818513_input"和c4d1cd73d90f2f8884818513是随机生成的值.
如果有人能帮我解决这个问题会很棒,
非常感谢!;)
格尔茨,
卡米洛
我需要有5个这样的变量:
$time1 = "The time now -5 minutes";
$time2 = "The time now -10 minutes";
$time3 = "The time now -20 minutes";
$time4 = "The time now -30 minutes";
$time5 = "The time now -40 minutes";
Run Code Online (Sandbox Code Playgroud)
所以假设它是上午9点,$ time1应该是"上午8:55"
如果有人能帮我解决这个问题会很棒:)
提前感谢每一个提示,
卡米洛