insert 插入问题
php吧
全部回复
仅看楼主
level 7
$sql = mysqli_query($link,"select * from list");
while($res = mysqli_fetch_array($sql)){
mysqli_query($link,"insert into list_new values($res[‘name‘],$res[’telno‘],null)");//把读取出的数据插入新表。
}
//报错:syntax error, unexpected ''
//上面的情况究竟能不能实现?
2014年07月04日 08点07分 1
level 7
我把$res['name']和$res['telno']的’‘去了,没有显示错误,但在新表没有显示有插入记录
2014年07月04日 08点07分 2
1