我对骨架很陌生,但我想将它用于一个项目.该项目由4个div组成,最大宽度为1400px,我需要将它们与浏览器一起缩小.我不知道如何改变960px到1400px的标准十六列宽度以及与之相关的各种媒体查询.
任何帮助,将不胜感激.
我在将表单数据插入数据库时遇到问题.我可以连接到数据库,因为它不会引发错误,但没有插入任何信息.以下是我的代码,任何帮助将不胜感激.
<?php
// string checking
function isValid($str) {
if(!preg_match('/[^A-Za-z0-9.-]/', $str)) {
return true;
} else {
return false;
}
}
// Check for form submission
if(isset($_POST['submit'])){
// Get the POST data
$agree = $_POST['agree'];
$firstname = $_POST['firstname'];
$surname = $_POST['surname'];
$business = $_POST['business'];
$state = $_POST['state'];
$email = $_POST['email'];
// If the T&C box has been ticked
if($agree){
// Validate the POST data
$validationError = '';
// Name Validation
if($firstname == ''){
$validationError .= "Please enter your first name.\n";
} …Run Code Online (Sandbox Code Playgroud)