2 MySQL插入语句,只运行第一个

时间:2014-10-28 13:11:15

标签: php mysql

我搜索了高低,找不到任何解决这个问题的方法。显然我的第一个插入语句运行正常,我可以看到数据库中的更改。即使脚本完成,第二个也无法更新数据库。任何帮助将不胜感激。提前谢谢。

"INSERT INTO propertyInfo (
                                        districtNumber,
                                        primaryProperty,
                                        platBookPage,
                                        giftedDate,
                                        purchaseDate,
                                        retiredDate,
                                        yearBuilt,
                                        Affiliation,
                                        purchasePrice,
                                        primaryZone,
                                        primaryLandUse,
                                        propertyType,
                                        squareFootage,
                                        soldDate,
                                        soldPrice,
                                        lotSizeSqFt,
                                        iudb,
                                        zoningLandUse,
                                        enterpriseZone,
                                        zoningCode,
                                        florida,
                                        georgia,
                                        Description,
                                        Land,
                                        Development,
                                        acres,
                                        tax,
                                        Name,
                                        granter
                                    )
                            VALUES  (
                                        '$district_number',
                                        '$primary_property',
                                        '$plat_book_page',
                                        '$gifted_date',
                                        '$purchase_date',
                                        '$retired_date',
                                        '$year_built',
                                        '$affiliation',
                                        '$purchase_price',
                                        '$primary_zone',
                                        '$primary_land_use',
                                        '$property_type',
                                        '$square_footage',
                                        '$sold_date',
                                        '$sold_price',
                                        '$lot_size_sqft',
                                        '$iudb',
                                        '$zoning_land_use',
                                        '$enterprise_zone',
                                        '$zoning_code',
                                        '$florida',
                                        '$georgia',
                                        '$description',
                                        '$land',
                                        '$development',
                                        '$acres',
                                        '$tax',
                                        '$name',
                                        '$granter'
                                    )";

    $pinksql = "INSERT INTO address (`address`, `address2`, `city`, `state`, `zipCode`, `subDivision`) VALUES ('$address', '$address2', '$city', '$state', '$zip_code', '$sub_division')";

0 个答案:

没有答案