$sql="INSERT INTO `tb1` (`id`, `connect`) VALUES (NULL, 'haha');"; $sql="INSERT INTO `tb2` (`id`, `connect2`) VALUES (NULL, 'haha2');";