SQL Query无法正常运行

时间:2014-05-31 05:23:02

标签: php mysql sql

我尝试运行以下代码。但是,没有发生任何事情。可能是sql查询不正确(最有可能是引号)。我无法弄清楚确切的问题。请帮忙。

<?php
 $server = 'localhost';
 $login='event';
 $pass='A1B1';
 $db='eventcar_db';
 $conndb=mysqli_connect($server,$login,$pass,$db) or die ("DB connection failed because:" . mysqli_error($conndb));

mysqli_query($conndb,"INSERT INTO `tbl_event` (`event_id`, `paypal_charges`, `tax`, `convences_charges`, `mem_id`, `category_id`, `category_links`, `event_name`, `event_friendly_url`, `event_date_start`, `event_time_start`, `event_date_end`, `event_time_end`, `event_type`, `country`, `city`, `address`, `url`, `event_listing`, `email_ids`, `event_ticketed`, `doing_ticket_through_us`, `ticket_type`, `ticket_url`, `total_tickets`, `min_tickets`, `maxt_tickets`, `ticket_price`, `name_of_account`, `account_number`, `account_type`, `bank_name`, `bank_address`, `ifsc_code`, `event_logo`, `event_details`, `organizer_name`, `organizer_logo`, `organizer_details`, `event_viewed`, `zipcode`, `event_url`, `facebook_url`, `youtube_url`, `twitter_url`, `status`, `post_date`, `most_popular`, `event_approval_status`) VALUES (NULL, '0', '0', '0', '0', '16', '16', 'Suraj Jagan live in Concert', 'suraj-jagan-live-in-concert', '2014-06-08', '7:30 PM', '2014-06-08', '9:30 PM', 'Offline', 'India', 'Ahmedabad', 'At B J Medical college, Civil Hospital, Ahmedabad, Gujarat, India.', '', 'Public', NULL, 'Yes', 'No', NULL, NULL, '', '', '', '', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'description', '', NULL, NULL, '0', NULL, 'http:/abc.com/event/xyz', '', '', '', '1', '2014-05-30', '0', '1');");
echo 6
echo mysqli_insert_id();

?>

0 个答案:

没有答案