我使用" serialize($array);" 将数据保存在我的数据库(mysql)中.此数据来自具有输入字段的表单.我想知道如果我a:4:{i:1;s:7:"fdsfdsf";i在表单字段中插入类似" "的内容会发生什么.可能会破坏我存储在数据库中的数据?谢谢!!
试图在Laravel中添加Google自动填充功能。我的代码如下:
<script type="text/javascript" src="http://maps.googleapis.com/maps/api/js?sensor=false&libraries=places"></script>
<script type="text/javascript">
google.maps.event.addDomListener(window, 'load', function () {
var places = new google.maps.places.Autocomplete(document.getElementById('txtPlaces'));
google.maps.event.addListener(places, 'place_changed', function () {
});
});
</script>
<span>Location:</span>
<input type="text" id="txtPlaces" style="width: 250px" placeholder="Enter a location" />
Run Code Online (Sandbox Code Playgroud)
它绝对可以在HTML / PHP文件中使用。html / php文件中的输出是这样的-
但是,当我想在Laravel中实现时,它根本无法工作。它显示以下错误。

您能帮我解决这个问题吗?