我是新来的,这是我在这里的第一个问题!我在 mysql 和 php 中遇到困难
<?php
echo "Hello World";
$con=mysql_connect('localhost:3306','dmail','*****','dhruv');
if(!$con)
{
echo "Failed to connect"; }
$name2 = 'name2';
$tel_no2 = 'tel_no2';
$email2 = 'email2';
$query2 = 'query2';
$car = 'car';
$city2 = 'city2';
$country2 = 'country2';
$date = 'date';
$query1 ="INSERT INTO 'booking' VALUES (name2, tel_no2, email2, city2, country2, car, date, query2)";
$query2 ="INSERT INTO 'booking' VALUES ('$name2', '$tel_no2', '$email2', '$city2', '$country2', '$car', '$date', '$query2')";
$update = mysql_query($query1,$con);
if(!$update)
{ echo "Failed to update"; }
>
它总是显示“更新失败”,任何帮助将不胜感激。谢谢。