昨天我从一个表中删除了一个名为'systeem_eisen'的列.现在,当我点击'产品'表格中的phpMyAdmin时,我收到错误消息:
#1054 - column 'systeem_eisen' in 'order clause'
我无法打开表'产品'.但我的网站仍然有用(他还使用了表'产品').
但是当我导出表'产品'并且我看到代码时,我看不到'systeem_eisen'这个词.
有人能帮我吗,
谢谢advange.
我想打开一个文件夹并从命令行自动选择一个文件:
>> explorer C:\Windows\system32\selected_file.txt
Run Code Online (Sandbox Code Playgroud)
Windows资源管理器打开后,C:\Windows\system32我要selected_file.txt自动突出显示。Windows命令提示符可能吗?
我想禁用标签父级的下一个元素:
HTML:
<span>
<input type="checkbox" onchange="disableInput(this)">
</span>
<input type="text" />
<!-- When checkbox changed, disable inputfield -->
Run Code Online (Sandbox Code Playgroud)
JavaScript:
<script>
function disableInput(element){
element.parentNode.nextSibling.disabled = true;
}
</script>
Run Code Online (Sandbox Code Playgroud)
这不起作用。有人能帮我吗?
我是新手 AJAX,我想学习如何验证表单.假设,我有一个带有两个输入字段的表单.当我点击提交时,我想用PHP脚本检查页面.
当验证成功时,我想重定向到action="submitForm.php".当一个或多个字段根据validation.php我想留在页面上无效并在字段旁边显示错误消息时.
最好的方法是什么?
<html>
<head>
</head>
<body>
<form action="submitForm.php" action="POST">
<input type="text" name="username" />
<input type="password" name="password" />
<input type="submit" name="submit" />
</form>
</body>
</html>
Run Code Online (Sandbox Code Playgroud)
submitForm.php:
<?php
echo $_POST["username"];
echo "<br />";
echo $_POST["password"];
?>
Run Code Online (Sandbox Code Playgroud) 我有一个名为例如的虚拟主机http://www.example.com.当我使用FTP将文件放在那里时,我只能访问该public_html文件夹.在我想要使用的那个文件夹中Laravel.
这可能吗?因为没有terminal,我不能使用ssh.因此,我认为安装composer不是一个选择.
谢谢,
我想制作一个存储的程序,phones如:
Brand: Samsung
Type: Galaxy S3
Price: 199.95
Ammount: 45
-------------------
Brand: LG
Type: Cookie
Price: 65.00
Ammount: 13
-------------------
etc, etc, etc,
Run Code Online (Sandbox Code Playgroud)
这样做的最佳做法是什么?
在php我应该做的:
$phones = array(
array(
array("Brand" => "Samsung"),
array("Type" => "Galaxy S3"),
array("Price" => 199.95),
array("Ammount" => 45)
),
array(
array("Brand" => "LG"),
array("Type" => "Cookie"),
array("Price" => 65.00),
array("Ammount" => 13)
)
)
Run Code Online (Sandbox Code Playgroud)
这也是可能的C#,因为我不知道有多少电话在列表中去,和数据类型是不同的:string,decimal,int.我不知道,因为你必须使用什么lists,structs,objects,classes等进一步.
提前致谢!
我的产品页面上有一个列表.
现在我的列表是一列宽,所有产品都在彼此之下.
关键是我希望产品有两列宽.我正在使用bootstrap.
<ul class="list-group product-select product-item">
# This is one item
<li class="list-group-item product-item">
<div class="media">
<a class="pull-left" href="#">
<img class="media-object" src="product_images/image.gif" alt="...">
</a>
<div class="media-body">
<h4 class="media-heading product-item-heading">
<small><strike>€29,99</strike></small> €24,99
<span class="label label-default product-item-stock text-right">
+100 stock
</span>
</h4>
<h2 class="product-item-title">
Product title
</h2>
</div>
</div>
</li>
# Ending item one
</ul>
Run Code Online (Sandbox Code Playgroud) //include.php
define('OPTION_0', 'Essence of population');
define('OPTION_1', 'Passport request/extend');
define('OPTION_2', 'Request logging concession');
//form.php
<select name="sort">
<option value="0"><?php echo(O_0) ?></option>
<option value="1"><?php echo(O_1) ?></option>
<option value="2"><?php echo(O_2 ?></option>
</select>
//show.php
extract($_POST); //The variable $sort has the value 1,2 or 3
echo("This is your choice");
echo(OPTION_ . $sort); //I want to use de constant e.g. OPTION_2
Run Code Online (Sandbox Code Playgroud)
我想回应匹配常量的值.所以当我在form.php中选择第二个值时,它给$ sort值1现在我想使用常量OPTION_1.
有人能帮我吗?
我有一个<div id="inputform">,div其中有多个<input type="text">.我如何计算<input>字段数?
html ×4
php ×4
javascript ×2
jquery ×2
ajax ×1
arrays ×1
batch-file ×1
c# ×1
cmd ×1
composer-php ×1
constants ×1
css ×1
database ×1
explorer ×1
input ×1
input-field ×1
laravel ×1
list ×1
object ×1
phpmyadmin ×1
post ×1
sql ×1
struct ×1
terminal ×1
validation ×1
variables ×1
web-hosting ×1