我尝试使用Jenkins(v2.7)管道发布到Artifactory(v4.5.1)实例。我脚本的摘录如下。问题似乎是" Artifactory"对象无法识别,并被视为字符串。有人可以建议问题是什么吗?
<?php
include 'config.php';
include 'crypt.php';
$username = $_POST['loginName'];
$email = $_POST['loginName'];
$password = crypt($_POST['loginPassword'], $salt);
$stmt = $conn->prepare('SELECT * FROM users WHERE ( username = ? or email = ? ) AND password = ?');
$stmt->bind_param('sss' , $username, $email, $password);
$stmt->execute();
$result = $stmt->get_result();
$row = $result->fetch_assoc();
$count = mysqli_num_rows($result);
?>
<html>
<head>
<title>Market</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link rel="stylesheet" href="css/style.css" type="text/css" />
</head>
<body>
<div id="content">
<?php
if ($count > 0) {
session_start();
$_SESSION['logged'] = true;
$_SESSION['username'] = $row['username'];
header("Refresh: 2.5; URL= index.php");
?>
<h1 align="center">Nice to see you again <?php echo $_SESSION['username'] ?>! </h1>
<?php
}
else {
?>
<h1 align="center"> Password or email/username is wrong! </h1>
<?php
header("Refresh: 2.5; URL= logreg.php");
}
?>
</div>
</body>
</html>
答案 0 :(得分:0)
我在语法上取得了成功:
<form action="address.php" method="POST">
<div id="list">
<input type="text" name="address" placeholder="Address">
<input type="text" name="suburb" placeholder="Suburb">
<input type="text" name="state" placeholder="State">
<input type="text" name="country" placeholder="Country">
<button id="addMore">Add Address</button>
</div>
</form>
如another question上所建议。但是,这可能是您的版本存在的问题,如上面the comment所述。