我正在尝试将图像引用附加到我的数据库中的列image1-4,而不是每次上传x3次图像并在phpmyadmin中随机引用。
<html>
<head>
<title>AngularJS First Application</title>
</head>
<body>
<h1>Sample Application</h1>
<div ng-app="app" ng-controller="studentController">
<p>
Enter your Name:<input type="text" ng-model="data">
</p>
<p>
Hello <span ng-bind="data"></span>!
</p>
<br />
<table border="1px">
<tr><th>Fisrt Name</th><th>Last Name</th><th>Full Name</th></tr>
<tr><td>{{student.firstName}}</td><td>{{student.lastName}}</td><td>{{student.fullName}}</td></tr>
<tr> <input type="button" value="Get Full Name" ng-click="getFullName()"/> </tr>
</table>
</div>
<script src="../angular.js"></script> <!--This is the angularJS libyrary file-->
<script src="JavaScript.js"></script> <!--This is your java script file-->
</body>
</html>
答案 0 :(得分:0)
你每次都在写同一张图片......
$upload_path = "uploads/$id.jpeg";
可能应该是
$upload_path = "uploads/$i.jpeg";